/* =============================================================================
   main.css — Temel tasarım sistemi
   Palet: sıcak kırık beyaz zemin, koyu finans yeşili, ölçülü altın vurgu.
   Tipografi: tek aile (IBM Plex Sans) + tabular rakamlar.
   ========================================================================== */

:root {
    /* Yüzeyler */
    --bg:        #F6F3EC;
    --paper:     #FFFFFF;
    --paper-2:   #FBF9F4;
    --paper-3:   #F1EDE4;

    /* Metin */
    --ink:       #20231F;
    --ink-2:     #70746E;
    --ink-3:     #9A9D96;
    --ink-inv:   #F2EFE7;

    /* Çizgiler */
    --line:      #DDD8CD;
    --line-2:    #E8E4DA;

    /* Finans yeşili */
    --green:     #1F513A;
    --green-2:   #265C42;
    --green-3:   #3E8163;
    --deep:      #16221B;

    /* Vurgu */
    --gold:      #B9975B;
    --gold-2:    #C9A961;
    --bronze:    #A2744A;

    /* Durum */
    --amber:     #97701F;
    --amber-bg:  #FAF3E2;
    --red:       #93332A;
    --red-bg:    #FBEDEB;

    /* Ölçü */
    --wrap:      1240px;
    --radius:    10px;
    --radius-sm: 7px;
    --field:     48px;

    --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --- Sıfırlama ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "tnum" 1, "lnum" 1;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* --- Yerleşim ------------------------------------------------------------ */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.page { padding-bottom: 56px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--deep);
    color: var(--ink-inv);
    padding: 12px 18px;
    z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Başlık (header) ----------------------------------------------------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 66px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    color: var(--ink);
    text-decoration: none;
    flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1;
}

.brand-sub {
    font-size: 12.5px;
    color: var(--ink-2);
    letter-spacing: 0.01em;
    padding-left: 9px;
    border-left: 1px solid var(--gold);
    line-height: 1;
}

.site-nav { margin-left: auto; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--ink-2);
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb li + li::before {
    content: "›";
    margin-right: 7px;
    color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }

/* --- Sayfa başlığı ------------------------------------------------------- */
.page-head { padding: 20px 0 24px; }

h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.14;
}

.page-lead {
    margin: 0;
    max-width: 66ch;
    font-size: 16.5px;
    color: var(--ink-2);
    line-height: 1.62;
}

/* --- İçerik tipografisi -------------------------------------------------- */
.prose { max-width: 72ch; }

.prose h2 {
    margin: 44px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.prose p {
    margin: 0 0 16px;
    line-height: 1.72;
}

.prose ul, .prose ol {
    margin: 0 0 18px;
    padding-left: 20px;
}
.prose li { margin-bottom: 8px; line-height: 1.65; }

.prose strong { font-weight: 600; }

.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Formül kutusu */
.formula {
    margin: 20px 0;
    padding: 18px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-sm);
    font-size: 16px;
    line-height: 1.7;
}
.formula code {
    font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 15px;
    color: var(--green);
}
.formula dl { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); }
.formula dt { float: left; clear: left; font-weight: 600; color: var(--ink); margin-right: 8px; }
.formula dd { margin: 0 0 4px; }

/* Bilgi notu */
.note {
    margin: 20px 0;
    padding: 14px 16px;
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.6;
}
.note strong { color: var(--ink); }

/* --- Genel tablo --------------------------------------------------------- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
}

table.data caption {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}

table.data th,
table.data td {
    padding: 11px 14px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--line-2);
}
table.data th:first-child,
table.data td:first-child { text-align: left; }

table.data thead th {
    background: var(--paper-3);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}

table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data tfoot td {
    font-weight: 600;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}
table.data .num { font-variant-numeric: tabular-nums; }
table.data .muted { color: var(--ink-2); }

/* --- Butonlar ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--green);
    color: #fff;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.btn:hover { background: var(--green-2); text-decoration: none; }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-secondary:hover { background: var(--paper-2); border-color: var(--ink-3); }

.btn-ghost {
    background: transparent;
    border-color: rgba(242, 239, 231, .28);
    color: var(--ink-inv);
    min-height: 42px;
    font-size: 14px;
}
.btn-ghost:hover { background: rgba(242, 239, 231, .09); border-color: rgba(242, 239, 231, .45); }

.btn-block { width: 100%; }

/* --- Bölüm başlıkları ---------------------------------------------------- */
.section { margin-top: 44px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.018em;
}

.section-head p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-2);
}

/* --- SSS ----------------------------------------------------------------- */
.faq {
    border-top: 1px solid var(--line);
}
.faq details {
    border-bottom: 1px solid var(--line);
}
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 0;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid var(--ink-2);
    border-bottom: 1.5px solid var(--ink-2);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq-body {
    padding: 0 0 18px;
    max-width: 72ch;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.7;
}
.faq .faq-body p { margin: 0 0 12px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --- İlgili araçlar ------------------------------------------------------ */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tool-grid a {
    display: block;
    padding: 16px 18px;
    background: var(--paper);
    color: var(--ink);
    transition: background-color .14s ease;
}
.tool-grid a:hover { background: var(--paper-2); text-decoration: none; }
.tool-grid .tool-name { display: block; font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.tool-grid .tool-desc { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* --- Hesaplama hakkında / kaynaklar -------------------------------------- */
.about-calc {
    margin-top: 44px;
    padding: 22px 24px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.about-calc h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}
.about-calc p {
    margin: 0 0 12px;
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 76ch;
}
.about-calc ul {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 14.5px;
    color: var(--ink-2);
}
.about-calc li { margin-bottom: 6px; }
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
}

/* --- Yasal uyarı --------------------------------------------------------- */
.disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-2);
}

/* --- Reklam alanları ----------------------------------------------------- */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-3);
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    overflow: hidden;
}
.ad-top      { min-height: 100px; margin: 20px 0 0; }
.ad-result   { min-height: 250px; margin: 32px 0 0; }
.ad-content  { min-height: 250px; margin: 36px 0; }
.ad-footer   { min-height: 250px; margin: 40px 0 0; }
.ad-sidebar  { min-height: 600px; }

/* --- Güven barı ---------------------------------------------------------- */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 14px;
    padding: 12px 2px 0;
    font-size: 13.5px;
    color: var(--ink-2);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 7px; }
.trust-bar span::before {
    content: "";
    width: 7px;
    height: 11px;
    border-right: 1.5px solid var(--green-3);
    border-bottom: 1.5px solid var(--green-3);
    transform: rotate(42deg);
    margin-top: -3px;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    margin-top: 56px;
    background: var(--deep);
    color: #C8CCC5;
    padding: 44px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-brand .brand-mark { color: var(--ink-inv); font-size: 20px; }
.footer-brand .brand-sub { color: #9AA79E; border-left-color: var(--gold); }
.footer-about {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #9AA79E;
    max-width: 34ch;
}

.footer-col h3 {
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-inv);
    letter-spacing: 0.005em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #C8CCC5; font-size: 14px; }
.footer-col a:hover { color: var(--gold-2); text-decoration: none; }

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(242, 239, 231, .12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #8E9A91;
}

/* --- 404 ----------------------------------------------------------------- */
.error-page {
    padding: 64px 0 40px;
    max-width: 60ch;
}
.error-code {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 10px;
    font-variant-numeric: tabular-nums;
}
.error-page h1 { margin-bottom: 14px; }
.error-page p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 24px; }

/* --- Hareket tercihi ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
