/* ===================================
   DEVLET ARAZİLERİ İŞLEM TÜRLERİ
   Design System & Full Styles
   AYDINLIK TEMA: BEYAZ, AÇIK DENİZ MAVİSİ, BAYRAK KIRMIZISI
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors: Açık Deniz Mavisi, Beyaz ve Bayrak Kırmızısı Odaklı Aydınlık Tema */
  --bg-body: #e6f2fb; /* Açık deniz mavisi (Çok hafif, göz yormayan pastel mavi) */
  --sidebar-bg: #ffffff; /* Bembeyaz yan menü (Aydınlık) */
  --content-bg: #e6f2fb;
  
  --card-bg: rgba(255, 255, 255, 0.85); /* Beyaz glassmorphism kart */
  --card-bg-hover: rgba(255, 255, 255, 1);
  --card-border: rgba(2, 132, 199, 0.15); /* Hafif mavi sınır */
  --card-border-hover: rgba(227, 10, 23, 0.4); /* Kırmızı hover */

  --accent-red: #E30A17; /* Bayrak Kırmızısı */
  --accent-red-hover: #b80712;
  --accent-blue: #0284c7; /* Koyu Deniz Mavisi (İkonlar / Vurgular için) */
  --text-white: #ffffff;

  --text-primary: #334155; /* Göz yormayan koyu gri/mavi metin rengi */
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #0f172a; /* Çok koyu lacivert/gri başlıklar */

  --glow-red: rgba(227, 10, 23, 0.15);
  
  --gradient-hero: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%); /* Deniz mavisi gradient hero */
  --gradient-red: linear-gradient(135deg, #E30A17 0%, #ff3b30 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.9));

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --sidebar-width: 280px;
  --content-padding: 40px;
  --card-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(227, 10, 23, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

::selection { background: var(--accent-red); color: var(--text-white); }

/* SIDEBAR */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(2, 132, 199, 0.1); /* Hafif mavi çizgi */
  z-index: 1000; display: flex; flex-direction: column; overflow-y: auto;
  transition: transform var(--transition-normal);
  box-shadow: 4px 0 24px rgba(0,0,0,0.03); /* Açık temada hafif gölge boyut katar */
}

.sidebar-header { padding: 28px 24px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 6px; }
.sidebar-logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.sidebar-logo-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-heading); }
.sidebar-logo-text span { color: var(--accent-blue); }
.sidebar-subtitle { font-size: 0.7rem; color: var(--accent-red); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

.sidebar-search { padding: 16px 20px; }
.sidebar-search-input {
  width: 100%; padding: 10px 14px 10px 38px;
  background: rgba(2, 132, 199, 0.04); border: 1px solid rgba(2, 132, 199, 0.1);
  border-radius: var(--border-radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.85rem; outline: none; transition: var(--transition-fast);
}
.sidebar-search-input:focus {
  border-color: var(--accent-red); background: #ffffff; box-shadow: 0 0 0 3px rgba(227, 10, 23, 0.1);
}
.sidebar-search-input::placeholder { color: var(--text-muted); }

.sidebar-search-wrapper { position: relative; }
.sidebar-search-wrapper::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; pointer-events: none; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.sidebar-nav-label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; padding: 12px 12px 8px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 2px 0;
  border-radius: var(--border-radius-sm); color: var(--text-secondary); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition-fast);
  position: relative; border: 1px solid transparent;
}
.sidebar-nav-item:hover { background: rgba(2, 132, 199, 0.05); color: var(--accent-blue); }
.sidebar-nav-item.active { background: var(--glow-red); color: var(--accent-red); font-weight: 600; border-color: rgba(227,10,23,0.1); }

/* Kırmızı aktif işareti */
.sidebar-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--accent-red); border-radius: 0 4px 4px 0;
}

.sidebar-nav-item .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.sidebar-footer-text { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* MAIN CONTENT */
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; position: relative; }

/* HERO */
.hero { position: relative; padding: 80px var(--content-padding) 60px; background: var(--gradient-hero); overflow: hidden; border-bottom: 1px solid rgba(2, 132, 199, 0.1); }
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%); pointer-events: none; animation: heroGlow 8s infinite alternate;
}
@keyframes heroGlow { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.1) translate(20px, -20px); } }

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2); padding: 6px 16px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.hero h1 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; line-height: 1.15; color: var(--text-heading); margin-bottom: 16px; letter-spacing: -0.02em; }
.hero h1 .gold { color: var(--accent-red); } /* Bayrak kırmızısı vurgu */
.hero-description { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; max-width: 600px; margin-bottom: 28px; font-weight: 500; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--accent-red); }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

/* SECTIONS */
.section-header { padding: 48px var(--content-padding) 24px; }
.section-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--text-heading); position: relative; display: inline-block; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--gradient-red); border-radius: 2px; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 0 var(--content-padding) 40px; }
.category-card {
  position: relative; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-radius); padding: 28px 24px; cursor: pointer; transition: all var(--transition-normal); backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
}
.category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-red); border-radius: var(--card-radius) var(--card-radius) 0 0; opacity: 0; transition: opacity var(--transition-normal); }
.category-card:hover { background: var(--card-bg-hover); border-color: var(--card-border-hover); transform: translateY(-5px); box-shadow: 0 12px 30px rgba(227, 10, 23, 0.08); }
.category-card:hover::before { opacity: 1; }

.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.card-icon {
  width: 50px; height: 50px; background: rgba(2, 132, 199, 0.05); border: 1px solid rgba(2, 132, 199, 0.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: var(--transition-normal);
}
.category-card:hover .card-icon { background: rgba(227, 10, 23, 0.08); border-color: rgba(227, 10, 23, 0.2); transform: scale(1.08); }

.card-number { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; color: var(--accent-blue); background: rgba(2, 132, 199, 0.08); padding: 4px 10px; border-radius: 20px; }
.category-card:hover .card-number { background: var(--accent-red); color: white; }

.card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; line-height: 1.3; }
.card-arrow { position: absolute; bottom: 24px; right: 24px; color: var(--accent-blue); font-size: 1.2rem; transition: var(--transition-normal); font-weight: bold; opacity: 0; transform: translateX(-10px); }
.category-card:hover .card-arrow { opacity: 1; transform: translateX(0); color: var(--accent-red); }

/* CATEGORY DETAIL SECTIONS (ACCORDIONS) */
.category-section { padding: 0 var(--content-padding) 32px; scroll-margin-top: 80px; }
.category-section-header { display: flex; align-items: center; gap: 16px; padding: 24px 0 16px; border-bottom: 2px solid rgba(2, 132, 199, 0.1); margin-bottom: 20px; }
.category-section-icon { width: 54px; height: 54px; background: var(--accent-blue); color: var(--text-white); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2); }
.category-section-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--text-heading); }

.accordion-list { display: flex; flex-direction: column; gap: 8px; }
.accordion-item { background: var(--color-white); border: 1px solid var(--card-border); border-radius: var(--border-radius-sm); overflow: hidden; transition: var(--transition-fast); box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.accordion-item:hover { border-color: rgba(227, 10, 23, 0.3); }

.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px;
  background: none; border: none; color: var(--text-heading); font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left; transition: var(--transition-fast);
}
.accordion-trigger .trigger-left { display: flex; align-items: center; gap: 12px; }
.accordion-trigger .trigger-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); flex-shrink: 0; transition: var(--transition-fast); }
.accordion-item:hover .trigger-dot, .accordion-item.open .trigger-dot { background: var(--accent-red); box-shadow: 0 0 8px rgba(227, 10, 23, 0.4); }
.accordion-trigger .trigger-chevron { font-size: 0.8rem; color: var(--text-muted); transition: transform var(--transition-normal); }
.accordion-item.open .trigger-chevron { transform: rotate(180deg); color: var(--accent-red); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-content-inner { padding: 0 20px 20px 40px; color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.footer { padding: 40px var(--content-padding); text-align: center; }
.footer-divider { height: 1px; background: rgba(2, 132, 199, 0.1); margin-bottom: 24px; }
.footer-text { font-size: 0.9rem; color: var(--text-muted); }
.footer a { color: var(--text-primary); font-weight: 600; text-decoration: underline; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; background: var(--accent-red); color: var(--text-white); border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition-normal); z-index: 99; box-shadow: 0 4px 15px rgba(227, 10, 23, 0.3); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-red-hover); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(227, 10, 23, 0.4); }

/* MOBILE */
.mobile-header { display: none; }
.mobile-overlay { display: none; }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: var(--color-white); border-bottom: 1px solid rgba(2, 132, 199, 0.1); z-index: 1001; align-items: center; justify-content: space-between; padding: 0 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--text-heading); border-radius: 2px; transition: var(--transition-fast); }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .mobile-logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-heading); }
  .mobile-logo span { color: var(--accent-red); }
  .hero { padding-top: 100px; }
  .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); z-index: 999; }
  .mobile-overlay.active { display: block; }
}
.hidden { display: none !important; }
