/* ============================================================
   Hepsimania — Ana Sayfa Özel Stilleri (Google Dili)
   ============================================================ */

:root {
  --bg-primary:     #FFFFFF;
  --bg-panel:       #F7F8FA;
  --brand-navy:     #0B2545;
  --accent-orange:  #F97316;
  --text-primary:   #1A1A1A;
  --text-secondary: #6B7280;
  --border:         #E5E7EB;
}

/* Mobile-first: varsayılan = telefon */
body {
    min-height: 100dvh;
    background-color: var(--bg-primary);
    font-family: 'Inter', Arial, sans-serif;
}

/* ============================================================
   İçerik Konumlandırma — Tablet / Masaüstü
   ============================================================ */
@media (min-width: 768px) {
    #mainContent { padding-top: 64px !important; }
}
@media (min-width: 1024px) {
    #mainContent { padding-top: 64px !important; }
}

/* ============================================================
   Mobil Layout (< 768px)
   ============================================================ */
@media (max-width: 767px) {

    body {
        height: auto !important;
        overflow-y: auto !important;
    }

    /* — Üst menü — en üstte sabit, z:21 — */
    #mobileHeader {
        top: 0 !important;
        z-index: 21 !important;
    }

    /* — Footer — akışta — */
    .home-footer {
        position: static !important;
        background: var(--bg-panel);
        border-top: 1px solid var(--border);
        padding: 14px 16px 20px !important;
    }
    /* Footer nav — ortalı flex, 2 satıra geçer */
    .home-footer-nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
    }
    .home-footer-sep { display: none !important; }
    .home-footer-link {
        font-size: .75rem !important;
        padding: 0 !important;
    }
    .home-footer-brand {
        display: block !important;
        text-align: center;
        font-size: .68rem !important;
        color: #70757a;
        margin-top: 10px;
    }

    /* — İçerik alanı — padding-top = sadece header yüksekliği — */
    #mainContent {
        padding-top: 56px !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
        height: auto !important;
        display: block !important;
    }

    /* İçerik bölümü */
    #mainContent > div:first-child {
        padding-top: 0 !important;
    }

    /* ── Bölüm aralıkları ── */
    #mainContent section {
        font-family: 'Inter', Arial, sans-serif !important;
        padding: 32px 0 0 !important;
        max-width: 100% !important;
    }
    #mainContent section h1 {
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        letter-spacing: -0.4px !important;
    }
    #mainContent section > p {
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 28px !important;
    }
    #mainContent section h2 {
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
        letter-spacing: -0.2px !important;
    }
    #mainContent section ul {
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 2 !important;
        margin-bottom: 28px !important;
    }
    #mainContent section ul li { font-size: 14px !important; }
    /* Buton */
    #mainContent section a[href="/register"] {
        font-size: 0.85rem !important;
        padding: 8px 20px !important;
    }
}

/* ============================================================
   Hero — Checklist & CTA
   ============================================================ */

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 0 auto 36px;
    max-width: 520px;
    text-align: center;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero-checklist li {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    width: fit-content;
}
.hero-check {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.hero-cta {
    background: #F97316;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: .9rem;
    font-weight: 600;
    padding: 11px 30px;
    border-radius: 24px;
    border: none;
    transition: background .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(249,115,22,.25);
    cursor: pointer;
}

@media (max-width: 767px) {
    .hero-checklist {
        max-width: 100%;
        font-size: 14px;
    }
}

/* ============================================================
   Drawer (Slayt-açılan menü)
   ============================================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 490;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #0F172A;
    z-index: 500;
    display: flex;
    flex-direction: column;
    transition: right .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, .2);
}
.nav-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 20px;
    height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    flex-shrink: 0;
}
.drawer-brand {
    font-weight: 700;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-family: Arial, sans-serif;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    font-family: Arial, sans-serif;
    transition: background .18s, color .18s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.drawer-link:hover { background: rgba(255, 255, 255, .10); color: #fff; }

.drawer-cta {
    color: var(--accent-orange);
    font-weight: 600;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: 16px;
}
.drawer-cta:hover { color: var(--accent-orange); background: rgba(249, 115, 22, .10); }

.drawer-icon-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .9);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.drawer-icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ============================================================
   Login / Yasal Modal (Bootstrap bağımsız)
   ============================================================ */
.home-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.home-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}
.home-modal-box {
    background: #fff;
    border-radius: 8px;                /* Google: 8px kart köşesi */
    box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.12);
    width: 100%;
    max-width: 420px;
    padding: 0;
    transform: translateY(8px);
    transition: transform .2s;
}
.home-modal-backdrop.show .home-modal-box {
    transform: translateY(0);
}
.home-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #dadce0;
}
.home-modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #202124;
    font-family: Arial, sans-serif;
}
.home-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: background .15s;
}
.home-modal-close:hover { background: #f1f3f4; }

.home-modal-body { padding: 24px; }
.home-modal-field { margin-bottom: 16px; }
.home-modal-label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
}
.home-modal-input {
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: .95rem;
    color: #202124;
    outline: none;
    font-family: Arial, sans-serif;
    transition: border-color .15s, box-shadow .15s;
}
.home-modal-input:focus {
    border-color: #0B2545;
    box-shadow: 0 0 0 2px rgba(11, 37, 69, .18);
}
.home-modal-submit {
    width: 100%;
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 11px;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background .15s, box-shadow .15s;
    margin-top: 8px;
}
.home-modal-submit:hover {
    background: #EA6C0A;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.home-modal-footer-links {
    text-align: center;
    margin-top: 16px;
    font-family: Arial, sans-serif;
    font-size: .875rem;
    color: #5f6368;
}
.home-modal-footer-links a {
    color: #0B2545;
    text-decoration: none;
}
.home-modal-footer-links a:hover { text-decoration: underline; }
.home-modal-error {
    background: #fce8e6;
    color: #c5221f;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: .875rem;
    font-family: Arial, sans-serif;
}

/* Giriş uyarısı */
.login-warning {
    display: none;
    margin-top: 16px;
    max-width: 400px;
    background: #fef7e0;
    border: 1px solid #f9ab00;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: .85rem;
    color: #202124;
    text-align: center;
    font-family: Arial, sans-serif;
}
.login-warning-btn {
    background: none;
    border: none;
    padding: 0;
    color: #0B2545;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: Arial, sans-serif;
}

/* ============================================================
   Footer
   ============================================================ */
.home-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 10px 16px 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.home-footer-link {
    color: #70757a;
    text-decoration: none;
    font-size: .75rem;
    padding: 4px 8px;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    transition: color .15s;
}
.home-footer-link:hover { color: var(--brand-navy); text-decoration: underline; }
.home-footer-sep {
    color: #b0b0b0;
    font-size: .7rem;
    margin: 0 2px;
}
.home-footer-brand {
    font-size: .68rem;
    color: #70757a;
    margin-top: 3px;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

/* ============================================================
   Yasal Modal
   ============================================================ */
.legal-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    font-size: .9rem;
    color: #202124;
    line-height: 1.6;
}
.legal-modal-body h6 {
    color: #202124;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 16px;
    font-family: Arial, sans-serif;
}
.legal-modal-body h6:first-child { margin-top: 0; }


/* ============================================================
   Kategori Grid
   ============================================================ */
.kategori-grid-section {
    background: var(--bg-panel);
    padding: 48px 16px;
    border-top: 1px solid var(--border);
}
.kategori-grid-section h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-navy);
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 840px;
    margin: 0 auto;
}
.kategori-kart {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 12px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
}
.kategori-kart:hover {
    box-shadow: 0 4px 20px rgba(11, 37, 69, .12);
    transform: translateY(-2px);
    border-color: var(--accent-orange);
    text-decoration: none;
    color: var(--text-primary);
}
.kategori-kart-ikon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #FFF7ED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.kategori-kart-etiket {
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand-navy);
    letter-spacing: -.01em;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .kategori-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    .kategori-grid .kategori-kart:last-child {
        grid-column: 2;
    }
    .kategori-kart {
        padding: 18px 10px 14px;
    }
    .kategori-kart-ikon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .kategori-kart-etiket {
        font-size: .78rem;
    }
    .kategori-grid-section {
        padding: 36px 16px;
    }
}


/* ============================================================
   Landing Page — Yeni Bölümler (Faz 1)
   ============================================================ */

/* Hero sarıcı */
.lp-hero-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px 16px;
}

/* Hero section */
.lp-hero-section {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* H1 — Açılış sorusu */
.lp-h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(24px, 5vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    margin-bottom: 20px;
}

/* Mobil satır kırma yardımcısı — desktop'ta gizle */
.lp-h1-br { display: none; }

/* Alt soru / açıklama */
.lp-subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* H2 — Hepsimania çözümü */
.lp-h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(18px, 3.5vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    margin-bottom: 14px;
}

/* Hepsimania açıklama paragrafı */
.lp-desc {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 44px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* H3 — Neler yapılabilir */
.lp-h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(15px, 3vw, 20px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    margin-bottom: 16px;
}

/* Alt CTA sarıcı */
.lp-alt-cta-wrap {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 56px 24px;
    text-align: center;
}

/* Alt CTA içerik */
.lp-alt-cta-inner {
    max-width: 480px;
    margin: 0 auto;
}

/* Alt CTA başlık */
.lp-alt-cta-title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

/* Alt CTA açıklama */
.lp-alt-cta-text {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ── Mobil overrides ── */
@media (max-width: 767px) {
    .lp-hero-wrap {
        padding: 28px 16px 12px;
    }
    .lp-h1-br { display: inline; }   /* satır kırma aktif */
    .lp-subtitle {
        font-size: 14px;
        margin-bottom: 36px;
    }
    .lp-desc {
        font-size: 14px;
        margin-bottom: 32px;
    }
    .lp-alt-cta-wrap {
        padding: 40px 16px;
    }
    .lp-alt-cta-title {
        font-size: 22px;
    }
    .lp-alt-cta-text {
        font-size: 14px;
    }
}
