:root {
    
    --brand-50:  #eef3fc;
    --brand-100: #dbe5f8;
    --brand-200: #b7c9ef;
    --brand-300: #8aa4e3;
    --brand-400: #5578d0;
    --brand-500: #2f55bb;
    --brand-600: #1e3fa6;
    --brand-700: #16308a;
    --brand-800: #10236b;
    --brand-900: #0a1747;

    
    --accent-50:  #fdeeee;
    --accent-100: #fbd7d8;
    --accent-300: #f39a9d;
    --accent-400: #ec5a60;
    --accent-500: #e62129;
    --accent-600: #c5151d;
    --accent-700: #a01118;

    
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50:  #f8fafc;
    --white:   #ffffff;

    --success: #10b981;
    --warning: #f59e0b;
    --danger:  #ef4444;

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

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --container: 1200px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow:    0 10px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 50px -12px rgba(18, 39, 90, .25);

    --header-h: 72px;
}

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

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#icerik { background: var(--brand-50); }
.page-home #icerik { background: transparent; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink-900); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--brand-700); text-decoration: none; }
img, svg { max-width: 100%; }
img { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.text-gradient { color: var(--accent-500); }

.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: none; }
.icon--sm { width: 18px; height: 18px; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: .75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: 999px;
}
.badge--soft { background: var(--brand-50); color: var(--brand-700); }
.badge--success { background: rgba(16, 185, 129, .12); color: #047857; }
.badge--outline { border: 1px solid var(--ink-200); color: var(--ink-700); background: var(--white); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 700;
    padding: .7rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent-500); color: var(--white); box-shadow: 0 8px 20px -6px rgba(230, 33, 41, .5); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 12px 28px -6px rgba(230, 33, 41, .55); transform: translateY(-2px); }

.btn--brand { background: var(--brand-600); color: var(--white); box-shadow: 0 8px 20px -6px rgba(16, 35, 107, .5); }
.btn--brand:hover { background: var(--brand-500); box-shadow: 0 12px 28px -6px rgba(16, 35, 107, .6); transform: translateY(-2px); }

.btn--ghost { background: var(--white); color: var(--ink-800); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }

.btn--light { background: var(--white); color: var(--brand-700); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--brand-700); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, .1);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 28px -8px rgba(15, 23, 42, .16); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.2rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand__logo { display: block; width: auto; height: 46px; }
.brand--light .brand__logo {
    background: var(--white);
    border-radius: 10px;
    padding: .4rem .7rem;
    height: 52px;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4);
}

.header-signup {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.05rem;
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .88rem;
    font-weight: 600;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.header-signup .icon { color: var(--brand-600); }
.header-signup:hover {
    border-color: var(--brand-300);
    background: var(--brand-100);
    color: var(--brand-800);
    box-shadow: 0 4px 14px -8px rgba(16, 35, 107, .35);
}
.header-signup.is-active {
    border-color: var(--brand-400);
    background: var(--brand-100);
    color: var(--brand-800);
}

.header-login {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .6rem;
    color: var(--ink-600);
    font-size: .88rem;
    font-weight: 600;
    border-radius: 999px;
    transition: color .18s ease, background .18s ease;
}
.header-login .icon { color: var(--ink-400); }
.header-login:hover { color: var(--brand-700); background: var(--brand-50); }
.header-login:hover .icon { color: var(--brand-600); }
.header-login.is-active { color: var(--brand-700); }

.header-user {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .5rem;
    color: var(--ink-700);
    font-size: .88rem;
    font-weight: 700;
    max-width: 12rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.header-user .icon { color: var(--brand-600); }
.header-logout { margin: 0; display: inline-flex; }
.header-logout .header-signup { cursor: pointer; font-family: inherit; }

.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-700);
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.header-cart:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
    box-shadow: 0 4px 14px -6px rgba(16, 35, 107, .3);
}
.header-cart .icon { color: var(--brand-600); }
.header-cart__count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .28rem;
    border-radius: 999px;
    background: var(--accent-500);
    color: var(--white);
    font-size: .68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    border: 2px solid var(--white);
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; }
.site-nav__list a {
    position: relative; display: inline-block;
    padding: .45rem .7rem; border-radius: 9px;
    color: var(--ink-700); font-weight: 600; font-size: .93rem;
    transition: color .18s ease, background .18s ease;
}
.site-nav__list a::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem;
    height: 2px; border-radius: 2px; background: var(--accent-500);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .22s ease;
}
.site-nav__list a:hover { color: var(--brand-700); background: var(--brand-50); }
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__list a.is-active { color: var(--brand-700); }
.site-nav__actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 10px; }
.nav-toggle__bar { height: 2px; width: 100%; background: var(--ink-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer { background: var(--brand-900); color: var(--ink-200); padding: 4rem 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer__tagline { color: var(--ink-400); max-width: 38ch; margin-top: 1.25rem; }
.site-footer__note { color: var(--brand-300); font-size: .88rem; font-weight: 600; }
.site-footer__col h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.site-footer__col a { color: var(--ink-400); font-size: .95rem; display: inline-block; padding: .25rem 0; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--brand-700); color: var(--ink-400); font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

.error-page { padding: 6rem 0; text-align: center; }
.error-page__logo { width: 140px; height: auto; margin: 0 auto 1.25rem; border-radius: 18px; box-shadow: var(--shadow-sm); }
.error-page__code { font-size: 5rem; font-weight: 800; color: var(--brand-200); margin: 0; line-height: 1; }
.error-page__title { font-size: 2rem; margin: .5rem 0; }
.error-page__desc { color: var(--ink-500); }
.error-page__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .001ms !important; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 1rem;
        background: var(--white); padding: 1.5rem 20px 2rem;
        border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
    }
    .site-nav.is-open { transform: translateY(0); visibility: visible; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
    .site-nav__list a { display: block; padding: .75rem .25rem; border-bottom: 1px solid var(--ink-100); border-radius: 0; }
    .site-nav__list a::after { display: none; }
    .site-nav__list a:hover { background: transparent; }
    .site-nav__actions {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        margin-top: .25rem;
        padding-top: .5rem;
    }
    .site-nav__actions .header-login,
    .site-nav__actions .header-signup,
    .site-nav__actions .header-user,
    .site-nav__actions .header-logout {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
    }
    .site-nav__actions .header-logout .header-signup { width: 100%; }
    .site-nav__actions .header-cart {
        width: 44px;
        align-self: center;
        justify-content: center;
    }
    .brand__logo { height: 38px; }
}

@media (max-width: 700px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}
