/*
 * ==========================================================================
 * TercihÖncesi — Global Shared Stylesheet
 * ==========================================================================
 * Bu dosya tüm sayfalar tarafından paylaşılan temel stilleri içerir.
 * Sayfalara özel layout CSS'i her sayfanın kendi <style> bloğunda kalır.
 *
 * İçerik:
 *   1. CSS Değişkenleri (Design Tokens)
 *   2. Reset & Base
 *   3. Navigasyon — Desktop
 *   4. Navigasyon — Mobile (Hamburger + Overlay)
 *   5. Dark Mode Toggle Butonu
 *   6. Ortak Yardımcı Stiller
 * ==========================================================================
 */

/* ==========================================================================
   1. CSS DEĞİŞKENLERİ — Tek yetkili renk ve boyut kaynağı
   ========================================================================== */
:root {
  /* Ana Renkler */
  --accent:        #4F46E5;   /* İndigo — marka ana rengi */
  --accent-hover:  #4338CA;
  --accent-light:  rgba(79, 70, 229, 0.10);
  --accent2:       #F59E0B;   /* Amber — ikincil vurgu */

  /* Arka Plan */
  --bg:       #F8FAFC;
  --surface:  #FFFFFF;
  --surface2: #F1F5F9;
  --border:   #E2E8F0;

  /* Tipografi */
  --text:       #0F172A;
  --text-muted: #475569;
  --text-dim:   #64748B;

  /* Cam Efekti */
  --glass:        rgba(255, 255, 255, 0.80);
  --glass-border: rgba(255, 255, 255, 0.30);

  /* Gölge Sistemi */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);

  /* Köşe Yarıçapı */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
}

/* Karanlık Mod — Tek yetkili dark tema tanımı */
[data-theme="dark"] {
  --accent:        #6366F1;
  --accent-hover:  #818CF8;
  --accent-light:  rgba(99, 102, 241, 0.15);

  --bg:       #0B0F1A;
  --surface:  #161B2E;
  --surface2: #1E253A;
  --border:   #2D364D;

  --text:       #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim:   #64748B;

  --glass:        rgba(22, 27, 46, 0.80);
  --glass-border: rgba(255, 255, 255, 0.05);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 12px 25px -5px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.50);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:    var(--bg);
  color:         var(--text);
  font-family:   'DM Sans', sans-serif;
  font-weight:   400;
  line-height:   1.6;
  overflow-x:    hidden;
  transition:    background 0.4s ease, color 0.4s ease;
  display:       flex;
  flex-direction: column;
  min-height:    100vh;
}

/* ==========================================================================
   3. NAVİGASYON — Desktop
   ========================================================================== */
nav {
  position:         fixed;
  top:              0;
  left:             0;
  right:            0;
  z-index:          1000;
  padding:          12px 40px;
  display:          flex;
  justify-content:  space-between;
  align-items:      center;
  background:       var(--surface);
  backdrop-filter:  blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:    1px solid var(--border);
  transition:       background 0.3s ease, border-color 0.3s ease;
}

.logo {
  display:     flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height:        36px;
  width:         auto;
  display:       block;
  border-radius: 4px;
}

.nav-links {
  display:     flex;
  gap:         28px;
  align-items: center;
}

.nav-link {
  color:           var(--text);
  text-decoration: none;
  font-weight:     500;
  font-size:       0.95rem;
  transition:      color 0.2s ease;
  display:         flex;
  align-items:     center;
  gap:             6px;
  white-space:     nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color:       var(--accent) !important;
  font-weight: 700;
}

/* Tema değiştirme butonu */
.theme-btn {
  background:    none;
  border:        none;
  cursor:        pointer;
  font-size:     1.2rem;
  margin-left:   8px;
  padding:       4px;
  border-radius: var(--radius-sm);
  transition:    transform 0.2s ease;
  line-height:   1;
}

.theme-btn:hover {
  transform: scale(1.15) rotate(10deg);
}

/* ==========================================================================
   4. NAVİGASYON — Hamburger & Mobile Overlay
   ========================================================================== */

/* Hamburger butonu — varsayılan olarak GİZLİ (desktop) */
.hamburger {
  display: none !important;
}

/* Mobile nav overlay — varsayılan olarak GİZLİ */
.mobile-nav {
  display: none !important;
}

/* Mobil viewport'ta hamburger GÖSTER */
@media (max-width: 768px) {
  nav {
    height:          64px !important;
    padding:         0 20px !important;
    display:         flex !important;
    align-items:     center !important;
    justify-content: flex-start !important;
    box-sizing:      border-box !important;
    position:        fixed !important;
    top:             0 !important;
    left:            0 !important;
    right:           0 !important;
    z-index:         1000 !important;
  }

  /* Logo ortalanır */
  .logo {
    position:  absolute !important;
    left:      50% !important;
    top:       50% !important;
    transform: translate(-50%, -50%) !important;
    display:   flex !important;
    align-items: center !important;
    z-index:   1050 !important;
  }

  .logo img {
    height: 28px !important;
    width:  auto !important;
  }

  /* Desktop nav linkleri gizle */
  .nav-links {
    display: none !important;
  }

  /* Hamburger butonu — sol üst */
  .hamburger {
    display:         flex !important;
    align-items:     center !important;
    gap:             6px !important;
    position:        absolute !important;
    left:            16px !important;
    top:             50% !important;
    transform:       translateY(-50%) !important;
    z-index:         1100 !important;
    background:      none !important;
    border:          none !important;
    cursor:          pointer !important;
    color:           var(--text) !important;
    font-size:       1.05rem !important;
    font-weight:     800 !important;
    letter-spacing:  1px !important;
    text-transform:  uppercase !important;
    padding:         4px 0 !important;
  }

  /* Mobile nav full-screen overlay */
  .mobile-nav {
    display:         flex !important;
    position:        fixed !important;
    top:             0 !important;
    left:            0 !important;
    width:           100% !important;
    height:          100dvh !important;
    background:      rgba(248, 250, 252, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index:         2000 !important;
    flex-direction:  column !important;
    align-items:     center !important;
    justify-content: center !important;
    padding:         20px !important;
    gap:             14px !important;
    box-sizing:      border-box !important;

    /* Başlangıç durumu — kapalı (JS .active ekler) */
    opacity:         0;
    visibility:      hidden;
    transform:       translateY(-12px);
    transition:      opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
  }

  [data-theme="dark"] .mobile-nav {
    background: rgba(11, 15, 26, 0.98) !important;
  }

  /* .active sınıfı JS tarafından eklenir */
  .mobile-nav.active {
    opacity:    1 !important;
    visibility: visible !important;
    transform:  translateY(0) !important;
  }

  /* Mobile nav linkleri */
  .mobile-nav-link {
    font-family:     'Bebas Neue', sans-serif !important;
    font-size:       1.8rem !important;
    color:           var(--text) !important;
    text-decoration: none !important;
    padding:         10px 16px !important;
    width:           100% !important;
    max-width:       290px !important;
    text-align:      center !important;
    border-radius:   12px !important;
    display:         block !important;
    box-sizing:      border-box !important;
    letter-spacing:  1px !important;
    transition:      color 0.2s ease, background 0.2s ease !important;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    background: rgba(79, 70, 229, 0.12) !important;
    color:      var(--accent) !important;
  }

  .mobile-nav-link.active {
    color:       var(--accent) !important;
    font-weight: 700 !important;
  }

  /* Tema kutusu (mobile menü içi) */
  .mobile-theme-box {
    margin-top:      20px !important;
    padding:         12px 20px !important;
    background:      var(--surface2) !important;
    border-radius:   14px !important;
    width:           100% !important;
    max-width:       290px !important;
    display:         flex !important;
    justify-content: space-between !important;
    align-items:     center !important;
    border:          1px solid var(--border) !important;
    box-sizing:      border-box !important;
  }
}

/* ==========================================================================
   5. ORTAK YARDIMCI STİLLER
   ========================================================================== */

.page-wrapper,
.container,
main {
  padding-top: 72px; /* nav yüksekliği */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto !important;
}

/* Genel kart stili (sayfalar override edebilir) */
.card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       24px;
  transition:    box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow:    var(--shadow-md);
  border-color:  var(--accent);
  transform:     translateY(-4px);
}

/* Rozet / Etiket */
.badge {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  font-size:     0.7rem;
  font-weight:   800;
  padding:       4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-accent  { background: var(--accent-light); color: var(--accent); }
.badge-success { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.badge-danger  { background: rgba(239, 68, 68, 0.12);  color: #EF4444; }

/* Bölüm başlığı bileşeni */
.section-label {
  font-size:      0.75rem;
  font-weight:    800;
  color:          var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom:  12px;
}

.section-title {
  font-family:  'Bebas Neue', sans-serif;
  font-size:    clamp(2.5rem, 6vw, 4.5rem);
  line-height:  0.95;
  color:        var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size:     1.05rem;
  color:         var(--text-muted);
  max-width:     520px;
  margin-bottom: 48px;
}

/* Navigasyon Vurgulu Link Stili (Shadcn UI Temelli) */
.nav-link.highlight {
  background:     rgba(245, 158, 11, 0.08) !important;
  color:          #D97706 !important;
  border:         1px solid rgba(245, 158, 11, 0.2) !important;
  padding:        6px 14px !important;
  border-radius:  99px !important;
  font-weight:    700 !important;
  transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-theme="dark"] .nav-link.highlight {
  background:     rgba(245, 158, 11, 0.15) !important;
  color:          #F59E0B !important;
}

.nav-link.highlight:hover {
  background:     rgba(245, 158, 11, 0.18) !important;
  transform:      translateY(-1px) !important;
  box-shadow:     0 4px 12px rgba(245, 158, 11, 0.15) !important;
}

/* Aydınlık Modda Tüm Sayfaların ve Kartların Kontrast Garantisi */
[data-theme="light"] {
  --bg: #F8FAFC !important;
  --surface: #FFFFFF !important;
  --surface2: #F1F5F9 !important;
  --border: #E2E8F0 !important;
  --text: #0F172A !important;
  --text-muted: #475569 !important;
  --text-dim: #64748B !important;
}

[data-theme="light"] body,
[data-theme="light"] .content-layout,
[data-theme="light"] .main-content,
[data-theme="light"] .grid-container,
[data-theme="light"] .dept-grid {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

[data-theme="light"] .verdict-card,
[data-theme="light"] .info-block,
[data-theme="light"] .yorum-card,
[data-theme="light"] .tab,
[data-theme="light"] .faq-item,
[data-theme="light"] .net-group,
[data-theme="light"] .nets-modern-panel,
[data-theme="light"] .comparison-summary,
[data-theme="light"] .dept-card,
[data-theme="light"] #blog-content-body {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] p,
[data-theme="light"] .page-desc,
[data-theme="light"] #mezun-aciklama,
[data-theme="light"] .yorum-text,
[data-theme="light"] .faq-answer,
[data-theme="light"] .dept-desc {
  color: #475569 !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .uni-name,
[data-theme="light"] .verdict-val,
[data-theme="light"] .info-block-value,
[data-theme="light"] .net-value,
[data-theme="light"] .dept-title {
  color: #0F172A !important;
}
