/* ============================================
   Şarjevi - Mobile First CSS
   Tasarımı bozmadan, sadece mobil iyileştirme
   ============================================ */

/* ═══════════════════════════════════════
   ALT NAVİGASYON (sadece mobile)
═══════════════════════════════════════ */
.sarjevi-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.09);
    z-index: 9995;
    /* iPhone safe area */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sarjevi-bottom-nav-inner {
    display: flex;
    height: 58px;
    align-items: stretch;
}
.sarjevi-bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.15s;
    padding: 6px 2px 4px;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.sarjevi-bn-item.active { color: #2563eb; }
.sarjevi-bn-item.active .sarjevi-bn-icon {
    background: #eff6ff;
    transform: scale(1.05);
}
.sarjevi-bn-icon {
    width: 32px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    font-size: 17px;
    transition: background 0.15s, transform 0.15s;
}
.sarjevi-bn-label { font-size: 9px; line-height: 1; color: inherit; }

/* ═══════════════════════════════════════
   MOBİL SWIPE KARUSELİ
═══════════════════════════════════════ */
.sarjevi-swipe-wrap {
    display: none;
    overflow: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    padding-bottom: 4px;
}
.sarjevi-swipe-wrap:active { cursor: grabbing; }

.sarjevi-swipe-track {
    display: flex;
    gap: 14px;
    padding: 4px 16px 8px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.sarjevi-swipe-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding-bottom: 4px;
}
.sarjevi-swipe-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}
.sarjevi-swipe-dot.active {
    width: 18px;
    border-radius: 3px;
    background: #2563eb;
}

/* ═══════════════════════════════════════
   DESKTOP'TA SWIPE GİZLE
═══════════════════════════════════════ */
@media (min-width: 769px) {
    .sarjevi-swipe-wrap { display: none !important; }
    .sarjevi-bottom-nav { display: none !important; }
}

/* ═══════════════════════════════════════
   MOBİL GENEL
═══════════════════════════════════════ */
@media (max-width: 768px) {

    /* Alt nav göster + içerik boşluğu */
    .sarjevi-bottom-nav { display: block; }
    body.sarjevi-fullpage {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Swipe karusel göster, desktop grid gizle */
    .sarjevi-swipe-wrap { display: block; }
    .sarjevi-campaigns-grid { display: none !important; }

    /* Kampanya wrapper padding */
    .sarjevi-campaigns-wrapper {
        padding: 0 !important;
    }

    /* Navbar incelt */
    .sarjevi-navbar-inner {
        height: 50px !important;
        padding: 0 12px !important;
    }
    .sarjevi-navbar-logo-img { height: 32px !important; }

    /* Filtre barı - yatay kaydırılabilir */
    .sarjevi-filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 16px 10px !important;
        margin: 0 -16px 12px !important;
        gap: 8px !important;
        justify-content: flex-start !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sarjevi-filter-bar::-webkit-scrollbar { display: none; }
    .sarjevi-filter-btn {
        scroll-snap-align: start;
        flex-shrink: 0 !important;
        padding: 7px 14px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    /* Arama tam genişlik */
    .sarjevi-search-inner { max-width: 100% !important; }
    .sarjevi-search-bar { padding: 0 16px !important; }

    /* Blog */
    .sarjevi-blog-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px;
        gap: 16px !important;
    }
    .sarjevi-blog-wrap { padding: 20px 0 90px !important; }
    .sarjevi-blog-wrap h1 { font-size: 24px !important; padding: 0 16px; }

    /* Blog detay */
    .sarjevi-blog-detail-wrap { padding: 0 16px 90px !important; }
    .sarjevi-blog-detail-title { font-size: 22px !important; line-height: 1.3 !important; }
    .sarjevi-blog-detail-cover { border-radius: 12px !important; }
    .sarjevi-blog-detail-excerpt { font-size: 15px !important; }
    .sarjevi-blog-detail-content { font-size: 15px !important; }

    /* Özel sayfa */
    .sarjevi-custom-page-inner { padding: 20px 16px 90px !important; }
    .sarjevi-custom-page-title { font-size: 24px !important; }

    /* Şarj ücretleri mobil */
    .sarjevi-chargers-wrap { padding: 20px 12px 90px !important; }
    .sarjevi-chargers-header h1 { font-size: 24px !important; }
    .sarjevi-chargers-filter {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        margin: 0 -12px 20px !important;
        padding: 0 12px 10px !important;
        scrollbar-width: none;
    }
    .sarjevi-chargers-filter::-webkit-scrollbar { display: none; }
    .sarjevi-ch-filter { flex-shrink: 0; }
    .sarjevi-chargers-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Footer */
    .sarjevi-footer { padding-bottom: 70px !important; }
    .sarjevi-footer-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }
    .sarjevi-footer-links { justify-content: center !important; }

    /* Subscription banner mobil */
    .sarjevi-sub-banner-inner {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .sarjevi-sub-text {
        font-size: 11px !important;
        min-width: 0 !important;
    }
    .sarjevi-sub-social-btn { display: none !important; }

    /* Popup mobil */
    .sarjevi-popup-inner {
        margin: 10px !important;
        border-radius: 16px !important;
        max-height: calc(100vh - 20px) !important;
    }
    .sarjevi-campaign-detail-inner {
        padding: 20px 16px !important;
    }

    /* Section header */
    .sarjevi-section-header { padding: 16px 16px 8px !important; }

    /* Kampanya kartı swipe içinde tam görünsün */
    .sarjevi-swipe-track .sarjevi-campaign-card {
        height: 100%;
        border-radius: 16px !important;
    }
}

/* ═══════════════════════════════════════
   KÜÇÜK TELEFON
═══════════════════════════════════════ */
@media (max-width: 390px) {
    .sarjevi-sub-cta-btn { font-size: 11px !important; padding: 5px 10px !important; }
    .sarjevi-bn-icon { font-size: 16px !important; }
}

/* ═══════════════════════════════════════
   TABLET (769–1024px)
═══════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .sarjevi-campaigns-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .sarjevi-blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .sarjevi-chargers-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .sarjevi-campaigns-wrapper { padding: 0 16px !important; }
}

/* ═══════════════════════════════════════
   TOUCH FEEDBACK (parmak dokunuşu)
═══════════════════════════════════════ */
@media (hover: none) {
    .sarjevi-campaign-card:active {
        transform: scale(0.975) !important;
        transition: transform 0.1s !important;
    }
    .sarjevi-filter-btn:active { opacity: 0.7; }
    .sarjevi-bn-item:active .sarjevi-bn-icon {
        background: #eff6ff !important;
        transform: scale(0.9) !important;
    }
    .sarjevi-charger-card:active { transform: scale(0.98) !important; }
}

/* ═══════════════════════════════════════
   LAZY IMAGE FADE-IN
═══════════════════════════════════════ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img[loading="lazy"].sarjevi-img-loaded {
    opacity: 1;
}
