/* ==========================================================================
   Akgün Mali Müşavirlik — site stili
   Bootstrap 5.3 üzerine. Modül özel stilleri assets/css/modules/*.css içinde.
   ========================================================================== */

:root {
  --brand-950: #081a2c;
  --brand-900: #0b2239;
  --brand-800: #0e2a47;
  --brand-700: #14395f;
  --brand-600: #174a7e;
  --brand-500: #2563a6;
  --brand-100: #e3ecf6;
  --brand-50:  #f1f6fb;
  --accent:     #c9a14a;
  --accent-600: #b08a36;
  --accent-100: #f6eedb;
  --ink:    #1b2433;
  --ink-2:  #3b4658;
  --muted:  #667085;
  --border: #e3e8ef;
  --bg:     #f5f7fb;
  --surface: #ffffff;
  --success: #15803d;
  --danger:  #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow:    0 10px 30px rgba(14, 42, 71, .08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, .14);

  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 23, 74, 126;
  --bs-link-color: var(--brand-600);
  --bs-link-color-rgb: 23, 74, 126;
  --bs-link-hover-color: var(--brand-800);
  --bs-link-hover-color-rgb: 14, 42, 71;
  --bs-body-color: var(--ink);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius-sm);
}

html { scroll-behavior: smooth; }
body { background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--brand-900); font-weight: 700; letter-spacing: -.01em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid rgba(201, 161, 74, .7); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--brand-800); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Butonlar ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn i { margin-right: .35rem; }
.btn-primary { --bs-btn-bg: var(--brand-600); --bs-btn-border-color: var(--brand-600); --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700); --bs-btn-active-bg: var(--brand-800); --bs-btn-active-border-color: var(--brand-800); --bs-btn-disabled-bg: var(--brand-600); --bs-btn-disabled-border-color: var(--brand-600); }
.btn-outline-primary { --bs-btn-color: var(--brand-600); --bs-btn-border-color: var(--brand-600); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--brand-950); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.text-accent { color: var(--accent-600) !important; }
.bg-brand { background: var(--brand-800) !important; color: #fff; }

/* ---------- Üst bar ---------- */
.topbar { background: var(--brand-950); color: rgba(255, 255, 255, .78); font-size: .82rem; padding: 7px 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent); margin-right: 4px; }
.topbar .list-inline-item:not(:last-child) { margin-right: 1.1rem; }
.topbar-portal { background: var(--accent); color: var(--brand-950) !important; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.topbar-portal i { color: var(--brand-950); }

/* ---------- Header / menü ---------- */
.site-header { background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(14, 42, 71, .05); }
.site-header .navbar { padding: 10px 0; }
.navbar-brand { color: var(--brand-900); }
.navbar-brand:hover { text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--brand-900); letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.navbar-toggler { border: 1px solid var(--border); color: var(--brand-800); padding: 8px 12px; font-size: 1.1rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201, 161, 74, .35); }
.site-header .nav-link { color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: .55rem .65rem !important; border-radius: 8px; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-header .nav-link { font-size: .88rem; padding: .5rem .5rem !important; } .brand-name { font-size: 1.02rem; } }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--brand-700); background: var(--brand-50); text-decoration: none; }
.site-header .nav-link.active { color: var(--brand-700); }
.site-header .nav-link.active::after:not(.dropdown-toggle) { content: none; }
.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: .92rem; color: var(--ink-2); white-space: normal; }
.dropdown-item i { color: var(--brand-500); width: 1.25em; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--brand-50); color: var(--brand-800); text-decoration: none; }
@media (min-width: 1200px) {
  .dropdown-mega { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
  .dropdown-mega.show { display: grid; }
  .dropdown-mega .dropdown-divider-wrap { grid-column: 1 / -1; }
  .site-header .dropdown:last-child .dropdown-menu, .site-header .dropdown-menu-end { right: 0; left: auto; }
}
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; padding: 10px 0; }
  .dropdown-menu { box-shadow: none; border: 0; background: var(--bg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(201, 161, 74, .22), transparent 60%), linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgba(201, 161, 74, .12); border: 1px solid rgba(201, 161, 74, .35); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-text { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 20px; backdrop-filter: blur(6px); }
.hero-panel-title { font-weight: 700; margin-bottom: 14px; color: #fff; }
.hero-panel-title i { color: var(--accent); }
.hero-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-shortcuts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgba(255, 255, 255, .95); color: var(--brand-800); border-radius: 12px; padding: 14px 8px; font-size: .82rem; font-weight: 600; min-height: 92px; transition: transform .15s ease, box-shadow .15s ease; }
.hero-shortcuts a i { font-size: 1.35rem; color: var(--brand-600); }
.hero-shortcuts a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
@media (max-width: 575.98px) { .hero { padding: 48px 0 56px; } .hero-shortcuts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sayfa başlık bandı ---------- */
.page-hero { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; padding: 36px 0 40px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0; }
.page-hero .lead { color: rgba(255, 255, 255, .8); font-size: 1rem; margin-top: 8px; }
.page-hero .breadcrumb { margin-bottom: 10px; font-size: .85rem; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb a { color: var(--accent); }

/* ---------- Bölümler ---------- */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-muted { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 4px; }
.section-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0; }
.section-link { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.section-link i { font-size: .8em; margin-left: 4px; }

/* ---------- Kartlar ---------- */
.card-soft { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-soft .card-header, .panel-head { background: transparent; border-bottom: 1px solid var(--border); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-title .panel-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1rem; }
.panel-body { padding: 8px 20px 16px; }
.panel-foot { border-top: 1px solid var(--border); padding: 12px 20px; font-size: .88rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.content-meta { color: var(--muted); font-size: .88rem; }

/* Haber/akış listesi (Resmî Gazete, GİB, duyurular) */
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list > li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.feed-list > li:last-child { border-bottom: 0; }
.feed-date { flex-shrink: 0; width: 54px; text-align: center; background: var(--brand-50); border-radius: 10px; padding: 6px 4px; line-height: 1.1; color: var(--brand-700); }
.feed-date .d { display: block; font-size: 1.2rem; font-weight: 800; }
.feed-date .m { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 600; }
.feed-body { min-width: 0; }
.feed-title { color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.35; display: block; }
.feed-title:hover { color: var(--brand-600); }
.feed-meta { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.badge-soft { background: var(--brand-50); color: var(--brand-700); font-weight: 600; border-radius: 6px; }
.badge-accent { background: var(--accent-100); color: #7a5b17; font-weight: 600; border-radius: 6px; }

/* Kutucuk (tile) ızgarası: hızlı linkler, hesaplamalar */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--ink); height: 100%; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; color: var(--ink); }
.tile-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.15rem; }
.tile:hover .tile-icon { background: var(--brand-600); color: #fff; }
.tile-title { font-weight: 700; font-size: .95rem; color: var(--brand-900); display: block; line-height: 1.3; }
.tile-desc { font-size: .82rem; color: var(--muted); display: block; margin-top: 2px; line-height: 1.35; }
.tile-ext { margin-left: auto; color: #98a2b3; font-size: .75rem; }

/* Hizmet kartı */
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: 100%; transition: box-shadow .15s ease, transform .15s ease; display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: var(--accent); font-size: 1.4rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .92rem; flex-grow: 1; }

/* İçerik tipografisi (CMS) */
.content-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.content-body h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
.content-body h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.content-body h4 { font-size: 1.05rem; margin: 1.2em 0 .5em; }
.content-body > :first-child { margin-top: 0; }
.content-body ul, .content-body ol { padding-left: 1.3rem; }
.content-body li { margin-bottom: .35em; }
.content-body blockquote { border-left: 4px solid var(--accent); background: var(--accent-100); padding: 12px 18px; border-radius: 0 10px 10px 0; color: var(--ink); }
.content-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.content-body th, .content-body td { border: 1px solid var(--border); padding: 8px 12px; vertical-align: top; }
.content-body th { background: var(--brand-50); color: var(--brand-900); }
.content-body img { border-radius: 10px; }
.content-body iframe { max-width: 100%; border: 0; border-radius: 10px; }

/* Bilgi tabloları */
.table-info { --bs-table-striped-bg: var(--brand-50); margin: 0; font-size: .93rem; }
.table-info thead th { background: var(--brand-800); color: #fff; font-weight: 600; border-color: var(--brand-700); white-space: nowrap; vertical-align: middle; }
.table-info td { vertical-align: middle; }
.table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: auto; background: var(--surface); }
.table-wrap .table { margin-bottom: 0; }

/* Uyarı notları */
.note { display: flex; gap: 12px; border-radius: 12px; padding: 14px 16px; font-size: .92rem; background: var(--brand-50); color: var(--ink-2); border: 1px solid var(--brand-100); }
.note i { color: var(--brand-600); margin-top: 3px; }
.note-warning { background: #fff8e6; border-color: #f5e0a8; }
.note-warning i { color: #b7791f; }

/* Boş durum */
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: #c3cad5; margin-bottom: 10px; display: block; }

/* Formlar */
.form-control, .form-select { border-radius: 10px; border-color: #d4dbe5; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(37, 99, 166, .15); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Sekme/filtre çipleri */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); text-decoration: none; }
.chip.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* Kenar menü (alt sayfalar) */
.side-nav { position: sticky; top: 96px; }
.side-nav .list-group-item { border-color: var(--border); font-size: .92rem; color: var(--ink-2); }
.side-nav .list-group-item i { color: var(--brand-500); width: 1.3em; }
.side-nav .list-group-item.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.side-nav .list-group-item.active i { color: var(--accent); }
.side-nav .list-group-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.side-nav .list-group-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); color: #fff; padding: 40px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }

/* 404 */
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; color: var(--brand-100); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, .72); padding-top: 56px; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-sub { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.footer-title { color: #fff; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-muted { color: rgba(255, 255, 255, .55); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.footer-social a:hover { background: var(--accent); color: var(--brand-950); }
.footer-disclaimer { margin-top: 36px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .6); }
.footer-disclaimer i { color: var(--accent); }
.footer-bottom { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .84rem; }
.footer-legal .list-inline-item:not(:last-child) { margin-right: 1rem; }

/* Başa dön */
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand-700); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 1030; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-600); }

/* Çerez bildirimi */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; background: var(--brand-900); color: rgba(255, 255, 255, .9); padding: 16px 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); font-size: .9rem; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-inner { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { min-width: 96px; }
@media (max-width: 767.98px) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: stretch; } .cookie-actions .btn { flex: 1; min-width: 0; } }

/* Yazdırma */
@media print {
  .topbar, .site-header, .site-footer, .cookie-banner, .back-to-top, .page-hero .breadcrumb, .no-print, .btn { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 12px; }
  .page-hero h1 { color: #000; }
  .section { padding: 0; }
  .content-card, .card-soft { border: 0; box-shadow: none; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.token-missing { background: #fff3cd; color: #7a5b17; border-radius: 4px; padding: 0 4px; font-size: .9em; }
