/* ==========================================================================
   EHLİYET KODLARI - Modern, SEO Odaklı Bilgi Platformu Stilleri
   Sıfır Dış Bağımlılık (No CDN / No Google Fonts - Saf Sistem Fontları)
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --brand-primary: #0284c7;
  --brand-hover: #0369a1;
  --brand-light: #e0f2fe;
  --accent-teal: #0d9488;
  --accent-teal-light: #ccfbf1;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 4px rgba(2, 132, 199, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1140px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--brand-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Üst Menü / Navbar
   ========================================================================== */
.site-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--brand-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-primary);
  background-color: var(--brand-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   Hero & Büyük Arama Alanı (Ana Sayfa)
   ========================================================================== */
.hero-section {
  padding: 48px 0 36px 0;
  background: linear-gradient(180deg, #f0f9ff 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px auto;
}

/* Arama Kutusu Bileşeni */
.search-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
  overflow: hidden;
}

.search-input-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-focus), var(--shadow-lg);
}

.search-icon-box {
  padding-left: 20px;
  padding-right: 12px;
  display: flex;
  align-items: center;
  color: var(--brand-primary);
}

.search-input {
  width: 100%;
  height: 68px;
  border: none;
  outline: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  padding-right: 20px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 1.05rem;
}

.clear-search-btn {
  position: absolute;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
}

.clear-search-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Anlık Arama Sonuç Paneli */
.search-results-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
  display: none;
}

.search-results-header {
  padding: 12px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus {
  background-color: var(--brand-light);
}

.result-code-badge {
  display: inline-block;
  background: var(--text-main);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-right: 14px;
  min-width: 65px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.result-content {
  flex: 1;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.result-category {
  font-size: 0.82rem;
  color: var(--text-light);
}

.result-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-results-msg {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
}

.no-results-msg svg {
  margin: 0 auto 12px auto;
  color: #94a3b8;
}

/* Popüler Hızlı Kodlar */
.popular-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popular-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.code-pill strong {
  color: var(--brand-primary);
}

.code-pill:hover {
  border-color: var(--brand-primary);
  background: var(--brand-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   İçerik Bölümleri ve Kartlar
   ========================================================================== */
.section {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px auto;
}

.section-badge {
  display: inline-block;
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Izgara Düzeni (Grid) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.code-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.code-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-code {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

.card-cat-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ==========================================================================
   Bilgilendirme / SEO Metin Blokları
   ========================================================================== */
.info-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.info-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.info-box p {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* SSS (FAQ) Akordeon */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--brand-primary);
}

.faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Kod Detay Sayfası Özel Stilleri
   ========================================================================== */
.breadcrumbs {
  padding: 18px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumbs span.current {
  color: var(--text-main);
  font-weight: 600;
}

.detail-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-code-badge {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-category-badge {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0 6px 0;
  line-height: 1.25;
}

.detail-source-desc {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-main);
}

.content-block {
  margin-bottom: 28px;
}

.content-block h2,
.content-block h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.content-block p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.seo-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Reklam Alanları (AdSense İçin Hazırlık)
   ========================================================================== */
.ad-slot {
  margin: 28px 0;
  background: #fdfdfd;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ad-slot span.ad-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   Blog Stilleri
   ========================================================================== */
.blog-article {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 32px 0 14px 0;
}

.blog-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 10px 0;
}

.blog-article p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.blog-article ul, .blog-article ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.blog-article li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Alt Bilgi (Footer) & Yasal Bildirim
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   Mobil ve Duyarlı Tasarım (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    gap: 10px;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-input {
    height: 56px;
    font-size: 1.05rem;
  }

  .detail-card, .blog-article {
    padding: 22px;
  }

  .detail-code-badge {
    font-size: 2rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
