/* EnSevilenler — Sprint 0 temel stil. Final tasarım sonraki sprintlerde. */
:root {
    /* Renkler /brand.css'ten gelir (app/Support/Brand.php). Buradakiler yedek değerlerdir. */
    --mor: #7A3FBF; --nar: #E4234F; --gece: #22163A; --zemin: #FBF7FF; --kart: #fff;
    --limon: #FFC93C; --nane: #1E9E6A; --gri: #6D6480; --cizgi: #E2DAEC;
    --radius-l: 28px;
    --radius-s: 10px;
    --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --nav-h: 4.2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    color: var(--gece);
    background: var(--zemin);
}
a { color: var(--nar); }
code { font-family: var(--mono); font-size: .9em; background: #EFE6FA; padding: .1em .35em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--limon); outline-offset: 2px; }

/* Ana sayfa */
.home { max-width: 40rem; margin: 0 auto; padding: .25rem 1rem 2.5rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.1rem; }
.home__foot { margin: 2rem 0 0; font-size: .82rem; color: var(--gri); text-align: center; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo__mark { display: block; flex-shrink: 0; }
.logo__text { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.logo__en { color: var(--mor); }
.logo__rest { color: var(--nar); font-weight: 900; }

/* Üst bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0 .8rem; }
.topbar__logo { text-decoration: none; }

/* Ana menü: mobilde alt bar, masaüstünde üstte hap */
.mainnav { display: flex; }
.mainnav__item {
    position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem;
    text-decoration: none; color: var(--gri); font-weight: 700;
}
.mainnav__icon { display: inline-flex; }
.mainnav__icon svg { fill: currentColor; }
.mainnav__dot {
    position: absolute; top: .35rem; right: .9rem; width: .55rem; height: .55rem;
    background: var(--nar); border-radius: 50%; border: 2px solid var(--zemin);
}

@media (max-width: 47.99rem) {
    .mainnav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        justify-content: space-around; gap: .25rem;
        padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom, 0px));
        background: var(--kart); border-top: 2px solid var(--gece);
    }
    .mainnav__item { flex-direction: column; gap: .1rem; flex: 1; padding: .45rem .2rem; min-height: 3.2rem; border-radius: 14px; }
    .mainnav__label { font-size: .72rem; }
    .mainnav__item[aria-current="page"] { color: var(--nar); background: var(--zemin); }
    .mainnav__dot { top: .3rem; right: 22%; }
    body { padding-bottom: var(--nav-h); }
}

@media (min-width: 48rem) {
    .mainnav { gap: .25rem; padding: .25rem; background: var(--kart); border: 2px solid var(--gece); border-radius: 999px; }
    .mainnav__item { padding: .45rem 1rem; border-radius: 999px; font-size: .95rem; }
    .mainnav__item:hover { color: var(--gece); }
    .mainnav__item[aria-current="page"] { background: var(--gece); color: #fff; }
    .mainnav__dot { top: .15rem; right: .35rem; border-color: var(--kart); }
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Mesaj ve panel sayfaları */
.message, .panel { max-width: 40rem; margin: 0 auto; padding: 3rem 1.25rem; }
.message { text-align: center; }
.message__emoji { font-size: 3rem; margin: 0; }
.muted { color: var(--gri); font-size: .9rem; }
.button {
    display: inline-block; cursor: pointer;
    background: var(--nar); color: #fff; border: 0;
    font: inherit; font-weight: 800;
    padding: .8rem 1.4rem; min-height: 48px; border-radius: 999px;
    text-decoration: none;
}
.button:disabled { opacity: .5; cursor: progress; }
.form { display: grid; gap: .6rem; margin-top: 1rem; }
.form input {
    font: inherit; padding: .75rem .9rem; min-height: 48px;
    border: 2px solid var(--gece); border-radius: var(--radius-s); background: #fff;
}
.alert { padding: .8rem 1rem; border-radius: var(--radius-s); font-weight: 600; }
.alert--good { background: #DDF5EA; color: #0F5A3B; }
.alert--bad { background: #FFE1E8; color: #8A0F2C; }
.steps li { margin-bottom: .4rem; }
.code {
    background: var(--gece); color: #F4EDFF;
    padding: 1rem; border-radius: var(--radius-s);
    overflow-x: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.5;
}

/* Kabul testleri */
.summary { font-weight: 800; min-height: 1.5em; }
.results { padding-left: 1.25rem; }
.results li { margin-bottom: .6rem; }
.results .ok { color: var(--nane); }
.results .fail { color: var(--nar); }
.results .warn { color: #9A6B00; }
.results small { display: block; color: var(--gri); font-family: var(--mono); font-size: .75rem; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
    .preview__side:first-child, .preview__side:last-child { transform: none; }
}
.page-section { margin-top: 1.25rem; }
