/* =========================================================
   Alt sayfa varyasyonları (hizmet ve ilçe sayfaları)
   style.css'ten sonra yüklenir.
   ========================================================= */

/* Gece kartları (nöbetçi eczane) */
.night-band { background: linear-gradient(180deg, #0a0d18 0%, #0b0d11 100%); color: #fff; }
.night-band .section-title { color: #fff; }
.night-band .section-lead { color: rgba(255, 255, 255, 0.7); }
.night-band .eyebrow { color: #c9d3ff; }
.night-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.night-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(140, 160, 255, 0.16);
}
.night-card i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(140, 160, 255, 0.12);
    color: #c9d3ff;
    font-size: 1.1rem;
}
.night-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #fff; }
.night-card p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 0.93rem; }
.pharmacy-districts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0 0;
    list-style: none;
    padding: 0;
}
.pharmacy-districts a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition), background-color var(--transition);
}
.pharmacy-districts a:hover { background: var(--brand-hover); transform: translateY(-2px); }

/* Teslimat paketleri */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 0;
}
.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.tier--featured { border-color: var(--brand); box-shadow: 0 24px 48px -28px var(--brand-glow); }
.tier__badge {
    position: absolute;
    top: -12px;
    left: 1.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tier .tier__name { margin: 0 0 0.25rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tier .tier__time { margin: 0 0 1rem; font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--heading); line-height: 1.1; }
.tier .tier__time small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.tier p { margin: 0 0 1.5rem; color: var(--text); font-size: 0.93rem; }
.tier .btn { margin-top: auto; }

/* Karşılaştırma tablosu */
.compare-wrap { overflow-x: auto; }
.compare {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}
.compare th, .compare td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; text-align: left; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-alt); color: var(--heading); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare thead th.is-us { background: var(--brand); color: #fff; }
.compare tbody th { color: var(--heading); font-weight: 700; width: 24%; }
.compare td { color: var(--text); }
.compare td.is-us { color: var(--heading); font-weight: 600; background: var(--brand-soft); }
.compare td.is-us i { color: var(--brand-icon); margin-right: 0.4rem; }

/* İki yönlü akış (havalimanı, otobüs, vale) */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.flow {
    padding: 1.75rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.flow__title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem; font-size: 1.15rem; color: var(--heading); }
.flow__title i { color: var(--brand-icon); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.6rem; }
.flow__steps li {
    position: relative;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--heading);
}
.flow__steps li + li::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-icon);
    font-size: 0.8rem;
}
.flow__steps li i { display: block; margin-bottom: 0.35rem; color: var(--brand-icon); font-size: 1.1rem; }
@media (max-width: 575.98px) {
    .flow__steps { grid-auto-flow: row; gap: 1.4rem; }
    .flow__steps li + li::before { content: "\f063"; left: 50%; top: -1.15rem; transform: translateX(-50%); }
}

/* Kullanım senaryoları */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.case {
    height: 100%;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
}
.case i { color: var(--brand-icon); font-size: 1.2rem; margin-bottom: 0.75rem; display: block; }
.case h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--heading); }
.case p { margin: 0; color: var(--text); font-size: 0.93rem; }

/* Talep formu bölümü (formu hero dışında gösteren sayfalar) */
.form-band { background: var(--ink); color: #fff; }
.form-band .section-title { color: #fff; }
.form-band .section-lead,
.form-band .form-band__text { color: rgba(255, 255, 255, 0.72); }
.form-band .eyebrow { color: var(--brand-on-dark); }
.contact-lines { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.85rem; }
.contact-lines a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines i { width: 1.5rem; color: var(--brand-on-dark); }

/* İlçe: kompakt hizmet listesi */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 2rem; list-style: none; margin: 0; padding: 0; }
.svc-list a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--heading);
    text-decoration: none;
}
.svc-list a:hover .svc-list__name { color: var(--brand-text); }
.svc-list__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-icon);
}
.svc-list__name { display: block; font-weight: 700; transition: color var(--transition); }
.svc-list__desc { display: block; font-size: 0.86rem; color: var(--muted); }
.svc-list .fa-arrow-right { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* İlçe: eczane vurgusu */
.pharmacy-band {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 18px;
    background: linear-gradient(120deg, #0a0d18, #151b33);
    color: #fff;
    border: 1px solid rgba(140, 160, 255, 0.18);
}
.pharmacy-band > i { font-size: 2rem; color: #c9d3ff; }
.pharmacy-band h2 { margin: 0 0 0.35rem; font-size: 1.35rem; color: #fff; }
.pharmacy-band p { margin: 0; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 767.98px) {
    .pharmacy-band { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* İlçe: yan yana metin + bilgi kutusu */
.district-aside {
    padding: 1.75rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.district-aside dl { margin: 0; display: grid; gap: 1rem; }
.district-aside dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.district-aside dd { margin: 0.15rem 0 0; color: var(--heading); font-weight: 600; }
.district-aside dd a { color: var(--brand-text); }


/* Gönderi boyutları (aynı gün kargo) */
.size-row { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.size-row li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
}
.size-row__icon {
    display: grid;
    place-items: center;
    width: calc(44px + var(--i) * 10px);
    height: calc(44px + var(--i) * 10px);
    margin-bottom: 0.5rem;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-icon);
    font-size: calc(1rem + var(--i) * 0.18rem);
}
.size-row strong { color: var(--heading); }
.size-row a { font-size: 0.85rem; font-weight: 600; color: var(--brand-text); }
@media (max-width: 767.98px) {
    .size-row { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
    .size-row li:last-child { grid-column: 1 / -1; }
}

/* 9 hizmet kartında 3'lü düzen (tek kalan kart olmasın) */
@media (min-width: 992px) {
    .svc-grid.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Ana sayfa: anahtar kelimeli H1, eski etiket görünümünde */
h1.eyebrow { margin: 0; font-family: var(--font); line-height: inherit; letter-spacing: 0.08em; }
p.hero-title { font-family: var(--font-display); }


/* =========================================================
   KVKK: çerez bildirimi, footer yasal bağlantıları, yasal sayfalar
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: max(1.25rem, env(safe-area-inset-left));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 1040;
    width: min(420px, calc(100vw - 2.5rem));
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
    color: var(--text);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; font-weight: 700; color: var(--heading); }
.cookie-banner__title i { color: var(--brand-icon); }
.cookie-banner__text { margin: 0 0 1rem; font-size: 0.88rem; line-height: 1.55; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
/* KVKK: "Reddet" ve "Kabul Et" aynı görünür ağırlıkta */
.cookie-banner__btn {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: var(--heading);
    border: 1px solid var(--heading);
    color: var(--bg);
    font-weight: 700;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 991.98px) {
    /* Mobilde alt işlem çubuğunun üstünde */
    .cookie-banner { left: 0.75rem; right: 0.75rem; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-legal a,
.footer-legal__btn { color: var(--ink-muted); text-decoration: none; font-size: inherit; }
.footer-legal__btn { padding: 0; border: 0; background: none; cursor: pointer; }
.footer-legal a:hover,
.footer-legal__btn:hover { color: #fff; text-decoration: underline; }

.request-foot a { color: inherit; text-decoration: underline; }
.hx-night__kvkk { margin: 0.5rem 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.hx-night__kvkk a { color: rgba(255, 255, 255, 0.8); }

.hx-legal { padding: 48px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hx-legal .breadcrumb-nav ol { color: var(--muted); }
.hx-legal .breadcrumb-nav a { color: var(--text); }
.hx-legal__kicker { margin: 0 0 0.5rem; color: var(--brand-text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hx-legal__title { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--heading); }
.hx-legal__date { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9rem; }

.legal-prose { color: var(--text); line-height: 1.75; }
.legal-prose h2 { margin: 2.25rem 0 0.75rem; font-size: 1.3rem; }
.legal-prose h2:first-of-type { margin-top: 1.5rem; }
.legal-prose ul { padding-left: 1.2rem; }
.legal-prose li { margin-bottom: 0.4rem; }
.legal-prose strong { color: var(--heading); }
.legal-table { overflow-x: auto; margin: 1rem 0 1.25rem; }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 0.75rem; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.legal-table th { background: var(--bg-alt); color: var(--heading); }
.legal-table small { color: var(--muted); }
.legal-aside {
    position: sticky;
    top: calc(var(--header-height, 76px) + 1.5rem);
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
}
.legal-aside__title { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal-aside__links { margin: 0 0 1.25rem; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 0.4rem; }
.legal-aside__links a[aria-current="page"] { font-weight: 700; }

/* Çerez tercihleri (analitik / reklam ölçümü ayrı onay) */
.cookie-prefs { margin: 0 0 1rem; padding: 0; border: 0; display: grid; gap: 0.5rem; }
.cookie-prefs[hidden] { display: none; }
.cookie-pref { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); cursor: pointer; }
.cookie-pref input { margin-top: 0.2rem; width: 1rem; height: 1rem; accent-color: var(--brand); flex: 0 0 auto; }
.cookie-pref input:disabled { cursor: not-allowed; }
.cookie-pref strong { display: block; font-size: 0.88rem; color: var(--heading); }
.cookie-pref small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.cookie-banner__more { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; }
.cookie-banner__link { padding: 0; border: 0; background: none; color: var(--text); font-size: 0.84rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cookie-banner__link:hover { color: var(--brand-text); }
.cookie-banner__save { padding: 0.45rem 0.9rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--heading); font-size: 0.85rem; font-weight: 700; }
.cookie-banner__save:hover, .cookie-banner__save:focus-visible { border-color: var(--brand); color: var(--brand-text); }
.cookie-banner__save[hidden] { display: none; }
@media (max-width: 991.98px) {
    .cookie-banner { max-height: calc(100vh - 100px); overflow-y: auto; }
}
