/* ==========================================================================
   Anı Kapsülü — site.css  (ortak)
   Tokenlar · fontlar · nav · footer · butonlar · yasal sayfalar · 404
   Landing'e özel her şey landing.css içinde.
   ========================================================================== */

@font-face {
    font-family: 'Gloock';
    src: url('../fonts/gloock.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Onest';
    src: url('../fonts/onest-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Gece — düğün gecesinin mürdüm karanlığı */
    --gece:        #22112A;
    --gece-2:      #321A3B;
    --gece-3:      #4A2B53;
    --gece-line:   rgba(248, 241, 239, .14);

    /* Tül — açık zemin */
    --tul:         #F8F1EF;
    --tul-2:       #F1E6E4;
    --kagit:       #FFFCFB;
    --hat:         #E6D7D8;
    --hat-koyu:    #CDB8BB;

    /* Mürekkep — metin */
    --ink:         #22112A;
    --ink-2:       #5B4760;
    --ink-3:       #8A7688;
    --ink-ters:    #F8F1EF;
    --ink-ters-2:  rgba(248, 241, 239, .72);

    /* Marka */
    --gul:         #BE185D;
    --gul-koyu:    #9D1450;
    --gul-acik:    #F2C9D8;
    --mum:         #F3B562;   /* mum ışığı: canlı işaretler, yıldızlar */

    --font-display: 'Gloock', 'Georgia', serif;
    --font-body:    'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap:   1180px;
    --gutter: clamp(20px, 4vw, 48px);
    --r-hap:  999px;
    --r-md:   22px;
    --r-sm:   12px;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--tul);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--gul); color: #fff; }

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 300;
    background: var(--gece);
    color: var(--ink-ters);
    padding: 10px 16px;
    border-radius: var(--r-hap);
    text-decoration: none;
    font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: var(--r-hap);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 560;
    letter-spacing: -.005em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
.btn-gul          { background: var(--gul); color: #fff; }
.btn-gul:hover    { background: var(--gul-koyu); }
.btn-gece         { background: var(--gece); color: var(--ink-ters); }
.btn-gece:hover   { background: var(--gece-3); }
.btn-cizgi        { border-color: var(--hat-koyu); color: var(--ink); background: transparent; }
.btn-cizgi:hover  { border-color: var(--ink); }
.btn-cizgi-ters   { border-color: var(--gece-line); color: var(--ink-ters); background: transparent; }
.btn-cizgi-ters:hover { border-color: var(--ink-ters); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ── Nav: yüzen kapsül ─────────────────────────────────────── */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 28px);
    max-width: 1180px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 8px 22px;
    background: rgba(255, 252, 251, .9);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(34, 17, 42, .08);
    border-radius: var(--r-hap);
    box-shadow: 0 10px 30px -18px rgba(34, 17, 42, .45);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1;
    letter-spacing: -.01em;
    flex-shrink: 0;
}
.nav-logo img { width: auto; object-fit: contain; }
.nav-logo-mark {
    width: 30px; height: 18px;
    border-radius: var(--r-hap);
    border: 1.5px solid var(--gul);
    position: relative;
    overflow: hidden;
}
.nav-logo-mark::after {
    content: "";
    position: absolute;
    inset: 0 50% 0 0;
    background: var(--gul);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: var(--r-hap);
    text-decoration: none;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--tul-2); }
.nav-links .nav-sep { width: 1px; height: 22px; background: var(--hat); margin: 0 6px; }
.nav-links a.btn-gece { color: var(--ink-ters); padding: 0 20px; }
.nav-links a.btn-gece:hover { background: var(--gece-3); color: var(--ink-ters); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 0;
    border-radius: var(--r-hap);
    background: var(--tul-2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav { padding: 6px 6px 6px 18px; border-radius: 28px; flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px 4px 10px;
        margin: 0;
    }
    .nav.is-open .nav-links { display: flex; }
    .nav-links a { min-height: 48px; font-size: 16px; }
    .nav-links .nav-sep { width: auto; height: 1px; margin: 6px 10px; }
    .nav-links a.btn-gece { justify-content: center; margin-top: 4px; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--tul);
    color: var(--ink-2);
    padding: 88px 0 36px;
    border-top: 1px solid var(--hat);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer-brand .nav-logo { font-size: 26px; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; font-size: 15px; line-height: 1.7; }
.footer-col h2 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
    font-size: 15px;
    color: var(--ink-2);
    text-decoration: none;
    transition: color .15s;
}
.footer-col a:hover { color: var(--gul); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--hat);
    font-size: 13px;
    color: var(--ink-3);
}

@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer { padding-top: 64px; }
    .footer-top { grid-template-columns: 1fr; }
}

/* ── Yasal sayfalar (sayfa.php, politikalar.php) ──────────── */
.legal {
    padding: 150px 0 96px;
}
.legal-head {
    max-width: 1000px;
    margin: 0 auto 56px;
}
.legal-dar .legal-head { max-width: 760px; }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-3);
    text-decoration: none;
    margin-bottom: 28px;
}
.legal-back:hover { color: var(--gul); }
.legal-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 18px;
}
.legal-lead {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 56ch;
}
.legal-meta {
    font-size: 14px;
    color: var(--ink-3);
}

.legal-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
}
.legal-aside {
    position: sticky;
    top: 110px;
}
.legal-aside h2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    margin-bottom: 12px;
}
.legal-aside ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--hat); }
.legal-aside a {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
}
.legal-aside a:hover { color: var(--ink); }
.legal-aside a[aria-current="page"] { color: var(--gul); border-left-color: var(--gul); font-weight: 560; }

.prose {
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-2);
}
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin-top: 2em;
}
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 30px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gul); }
.prose a { color: var(--gul); text-underline-offset: 3px; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--kagit);
    border: 1px solid var(--hat);
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
    overflow-x: auto;
}
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hat); }
.prose th { color: var(--ink); font-weight: 600; background: var(--tul-2); }
.prose blockquote {
    border-left: 2px solid var(--gul);
    padding: 4px 0 4px 20px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--ink);
}

@media (max-width: 820px) {
    .legal { padding: 120px 0 72px; }
    .legal-layout { grid-template-columns: 1fr; gap: 36px; }
    .legal-aside { position: static; order: 2; padding-top: 32px; border-top: 1px solid var(--hat); }
}

/* Politika listesi */
.policy-list {
    max-width: 760px;
    margin: 0 auto;
    list-style: none;
    border-top: 1px solid var(--hat);
}
.policy-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 24px;
    align-items: center;
    padding: 26px 4px;
    border-bottom: 1px solid var(--hat);
    text-decoration: none;
    color: var(--ink);
    transition: background-color .2s;
}
.policy-list a:hover { background: var(--tul-2); }
.policy-list a:hover .policy-name { color: var(--gul); }
.policy-name {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.15;
    transition: color .15s;
}
.policy-desc { grid-column: 1; font-size: 15px; color: var(--ink-2); }
.policy-date {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 13px;
    color: var(--ink-3);
    text-align: right;
}
@media (max-width: 560px) {
    .policy-list a { grid-template-columns: 1fr; }
    .policy-date { grid-row: auto; grid-column: 1; text-align: left; }
}

/* ── 404 ──────────────────────────────────────────────────── */
.notfound {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px var(--gutter);
    background: var(--gece);
    color: var(--ink-ters);
}
.notfound-inner { max-width: 520px; }
.notfound-capsule {
    width: 132px; height: 64px;
    border-radius: var(--r-hap);
    border: 1.5px solid var(--gece-line);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.notfound-capsule::after {
    content: "";
    position: absolute;
    left: 10px; top: 50%;
    width: 8px; height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--mum);
    box-shadow: 0 0 18px 4px rgba(243, 181, 98, .5);
}
.notfound h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(40px, 8vw, 68px);
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}
.notfound p { color: var(--ink-ters-2); font-size: 17px; margin-bottom: 32px; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
