/* ==========================================================================
   istanbultrafik.com.tr - Kurumsal, Minimalist, Mobile-First Stil Dosyası
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --brand-navy: #0f172a;
  --brand-accent: #0284c7;
  --brand-accent-hover: #0369a1;
  --border-color: #e2e8f0;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Üst Bölüm (Header) */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

/* Minimalist Ana Sayfa Karşılama Alanı */
.minimal-hero {
  padding: 84px 0 96px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-box {
  max-width: 740px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.65;
}

/* ==========================================================================
   Ana Sayfa Uygulama İndirme Butonları (Birebir İstenen CSS Kodu)
   ========================================================================== */
.homepage-app-downloads {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px auto;
}

.homepage-app-downloads .app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 165px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  transition: transform .2s ease, filter .2s ease;
}

.homepage-app-downloads .app-download-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.homepage-app-downloads .app-download-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.homepage-app-downloads .app-download-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.homepage-app-downloads .app-download-btn small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.homepage-app-downloads .app-download-btn strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.homepage-app-downloads .google-play {
  background: #0c121c;
  border: 1px solid #334155;
}

.homepage-app-downloads .google-play small {
  color: #94a3b8;
}

.homepage-app-downloads .google-play .blue {
  fill: #00d2ff;
}

.homepage-app-downloads .google-play .green {
  fill: #00f076;
}

.homepage-app-downloads .google-play .yellow {
  fill: #ffc900;
}

.homepage-app-downloads .google-play .red {
  fill: #ff3a44;
}

.homepage-app-downloads .app-store {
  background: #007aff;
  border: 1px solid #007aff;
  color: #ffffff;
}

.homepage-app-downloads .app-store small {
  color: #dbeafe;
}

@media (max-width: 400px) {
  .homepage-app-downloads {
    gap: 10px;
  }

  .homepage-app-downloads .app-download-btn {
    min-width: 145px;
    padding: 10px 12px;
  }

  .homepage-app-downloads .app-download-btn strong {
    font-size: 15px;
  }
}

.hero-cta-wrap {
  margin-top: 8px;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 10px;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary-cta:hover {
  background: var(--brand-accent);
  transform: translateY(-1px);
}

/* Haberler Bölümü (/haberler) */
.news-hub {
  padding: 40px 0 64px;
}

.news-hub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--brand-navy);
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 340px;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.search-form button {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-navy);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.category-pills .pill {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.category-pills .pill.active,
.category-pills .pill:hover {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cat-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-card-title {
  font-size: 18px;
  line-height: 1.38;
  margin: 0 0 10px;
}

.news-card-title a {
  color: var(--brand-navy);
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--brand-accent);
}

.news-card-summary {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Haber Detay Sayfası (/haberler/{slug}) */
.article-detail {
  padding: 32px 0 64px;
}

.article-container {
  max-width: 780px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.article-title {
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1.22;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 8px 0 14px;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 18px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-cover {
  margin: 0 0 28px;
}

.article-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.article-cover figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: right;
}

.article-update-notice {
  background: #f0f9ff;
  border-left: 4px solid var(--brand-accent);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 22px;
}

.article-content {
  font-size: 18px;
  line-height: 1.78;
  color: #1e293b;
}

.article-content h2 {
  font-size: 23px;
  color: var(--brand-navy);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 19px;
  color: var(--brand-navy);
  margin: 26px 0 10px;
  line-height: 1.35;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: underline;
}

.article-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.share-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--brand-navy);
  color: #fff;
}

.related-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.section-heading {
  font-size: 22px;
  margin: 0 0 20px;
}

/* Sayfalama */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

.page-link.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

/* Alt Bölüm (Footer) */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 600px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* 2026 responsive visual refresh */
:root {
  --bg-primary: #f7f9fc;
  --bg-subtle: #eef3f8;
  --text-main: #0d1a2c;
  --text-secondary: #33465f;
  --text-muted: #6b7c91;
  --brand-navy: #0d1a2c;
  --brand-accent: #fd3b16;
  --brand-accent-hover: #d92b0c;
  --border-color: #dde6ef;
  --radius-md: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 10px 30px rgba(13, 26, 44, .06);
  --shadow-lg: 0 24px 70px rgba(13, 26, 44, .13);
}

html { scroll-behavior: smooth; }
body { background: var(--bg-primary); overflow-x: hidden; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(253, 59, 22, .3); outline-offset: 3px;
}
.container { max-width: 1240px; padding-inline: clamp(18px, 4vw, 32px); }

.site-header { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 rgba(13, 26, 44, .06); }
.header-inner { min-height: 80px; flex-wrap: nowrap; }
.brand-logo { width: min(270px, 44vw); }
.brand-logo img { display: block; width: 100%; height: auto; }
.main-nav { gap: 8px; }
.main-nav a { border: 0; border-radius: 999px; padding: 10px 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-accent); background: #fff1ed; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-color); border-radius: 12px; background: #fff; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--brand-navy); transition: .2s ease; }

.modern-hero { position: relative; padding: clamp(64px, 8vw, 96px) 0; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(253,59,22,.1), transparent 36%), linear-gradient(135deg, #fff 0%, #f3f7fb 70%); border-bottom: 1px solid var(--border-color); }
.modern-hero::before { content: ""; position: absolute; width: 440px; height: 440px; left: -260px; bottom: -320px; border: 70px solid rgba(13,26,44,.04); border-radius: 50%; }
.hero-grid { position: relative; display: block; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; color: var(--brand-accent); background: #fff0eb; border: 1px solid #ffd5c9; border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.hero-title { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.055em; margin: 0 auto 24px; max-width: 880px; }
.hero-description { max-width: 720px; margin: 0 auto; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-primary-cta, .btn-secondary-cta { min-height: 52px; padding: 0 22px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; text-decoration: none; }
.btn-primary-cta { background: var(--brand-accent); box-shadow: 0 12px 24px rgba(253,59,22,.22); }
.btn-primary-cta:hover { background: var(--brand-accent-hover); }
.btn-secondary-cta { color: var(--brand-navy); background: #fff; border: 1px solid var(--border-color); }

.homepage-app-downloads { justify-content: center; margin: 24px 0 0; gap: 10px; }
.homepage-app-downloads .app-download-btn { min-width: 178px; min-height: 58px; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.homepage-app-downloads .app-download-btn .store-icon { display: block; width: 28px; height: 28px; overflow: visible; }
.homepage-app-downloads .app-download-btn .apple-icon { width: 29px; height: 29px; color: #fff; transform: none; }
.homepage-app-downloads .app-download-btn small { font-size: 11px; }
.homepage-app-downloads .app-download-btn strong { font-size: 17px; letter-spacing: -.02em; }
.homepage-app-downloads .app-store { background: #087cf0; }

.home-latest { padding: clamp(60px, 8vw, 96px) 0; }
.section-header-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-header-row .eyebrow { border: 0; background: transparent; padding: 0; }
.section-header-row h2 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.section-header-row > a { color: var(--brand-accent); font-weight: 750; text-decoration: none; }

.news-hub, .article-detail { padding-top: clamp(34px, 6vw, 64px); }
.news-card { border: 0; box-shadow: var(--shadow-sm); }
.news-card:hover { box-shadow: 0 20px 44px rgba(13,26,44,.12); transform: translateY(-5px); }
.news-card-body { padding: 21px; }
.article-container { max-width: 860px; }
.article-cover img { border-radius: 22px; box-shadow: var(--shadow-sm); }
.article-content { font-size: clamp(17px, 2vw, 19px); }
.search-form input, .search-form button { min-height: 46px; }
.search-form input:focus { border-color: var(--brand-accent); outline: 3px solid rgba(253,59,22,.12); }
.site-footer { background: #eaf0f6; padding-top: 52px; }
.footer-brand img { width: min(250px, 75vw); height: auto; display: block; }

@media (max-width: 900px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 20px; background: #fff; box-shadow: 0 18px 30px rgba(13,26,44,.12); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .brand-logo { width: min(230px, 68vw); }
  .hero-title { font-size: clamp(38px, 12vw, 54px); }
  .hero-actions > a { width: 100%; }
  .homepage-app-downloads { display: grid; grid-template-columns: 1fr; width: 100%; }
  .homepage-app-downloads .app-download-btn { width: 100%; min-width: 0; }
  .section-header-row { align-items: start; flex-direction: column; }
  .news-hub-header, .search-form { align-items: stretch; max-width: none; }
  .article-meta-bar { flex-direction: column; }
}
