/* ============================================================
   ANOTHERSOFT — MOBILE.CSS
   Tüm sayfalara <head> içine ekleyin:
   <link rel="stylesheet" href="mobile.css">
   ============================================================ */

/* Sadece mobilde aktif */
@media (max-width: 768px) {

    /* ── GENEL ── */
    body {
        /* Alt nav için boşluk */
        padding-bottom: 80px !important;
    }

    /* Dokunma hissini iyileştir */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    button, a, [onclick] {
        touch-action: manipulation;
    }

    /* Seçimi kapat (UI elementlerde) */
    .navbar, .bottom-nav, .mobile-drawer {
        user-select: none;
        -webkit-user-select: none;
    }

    /* ── ALT NAVİGASYON BAR ── */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        height: 68px;
        background: var(--bg-card, #141a42);
        border-top: 1px solid var(--border, rgba(255,255,255,0.06));
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 16px;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.2s;
        color: var(--text-muted, #6b72a8);
        text-decoration: none;
        flex: 1;
        position: relative;
        border: none;
        background: none;
        font-family: 'Outfit', sans-serif;
    }

    .bottom-nav-item.active {
        color: var(--accent, #4e7fff);
    }

    .bottom-nav-item.active .bn-icon-wrap {
        background: rgba(78, 127, 255, 0.12);
        transform: translateY(-2px);
    }

    .bottom-nav-item:active {
        transform: scale(0.92);
    }

    .bn-icon-wrap {
        width: 40px;
        height: 28px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .bottom-nav-item i {
        font-size: 18px;
    }

    .bn-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    /* Sepet badge */
    .bn-badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 26px);
        min-width: 17px;
        height: 17px;
        background: var(--error, #ff5252);
        color: #fff;
        border-radius: 10px;
        font-size: 9px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid var(--bg-card, #141a42);
    }

    /* ── MOBİL DRAWER MENÜ ── */
    .mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 20000;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-drawer.open {
        visibility: visible;
        pointer-events: all;
    }

    .drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        opacity: 0;
        transition: opacity 0.35s;
    }

    .mobile-drawer.open .drawer-backdrop {
        opacity: 1;
    }

    .drawer-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        background: var(--bg-card, #141a42);
        border-left: 1px solid var(--border, rgba(255,255,255,0.06));
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    }

    .mobile-drawer.open .drawer-panel {
        transform: translateX(0);
    }

    .drawer-header {
        padding: 50px 24px 24px;
        border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .drawer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .drawer-logo-icon {
        width: 40px;
        height: 40px;
        border: 2px solid var(--accent, #4e7fff);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'JetBrains Mono', monospace;
        font-size: 14px;
        font-weight: 700;
        color: var(--accent, #4e7fff);
    }

    .drawer-logo-text {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .drawer-close {
        width: 36px;
        height: 36px;
        border: 1px solid var(--border, rgba(255,255,255,0.06));
        background: var(--bg-glass, rgba(255,255,255,0.03));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-muted, #6b72a8);
        font-size: 14px;
        transition: all 0.2s;
    }

    .drawer-close:hover {
        border-color: var(--error, #ff5252);
        color: var(--error, #ff5252);
    }

    /* Drawer kullanıcı bilgisi */
    .drawer-user {
        padding: 20px 24px;
        border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
        display: none;
        align-items: center;
        gap: 12px;
    }

    .drawer-user.visible {
        display: flex;
    }

    .drawer-avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--accent, #4e7fff), var(--accent-2, #00d4ff));
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        overflow: hidden;
        flex-shrink: 0;
    }

    .drawer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .drawer-user-info .du-name {
        font-size: 14px;
        font-weight: 600;
    }

    .drawer-user-info .du-email {
        font-size: 12px;
        color: var(--text-muted, #6b72a8);
        margin-top: 2px;
    }

    /* Drawer nav linkleri */
    .drawer-nav {
        padding: 16px 16px;
        flex: 1;
    }

    .drawer-nav-section {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted, #6b72a8);
        padding: 12px 8px 6px;
    }

    .drawer-nav-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 16px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-secondary, #c8cdf5);
        text-decoration: none;
        transition: all 0.2s;
        margin-bottom: 2px;
    }

    .drawer-nav-item:hover,
    .drawer-nav-item.active {
        background: var(--bg-glass-hover, rgba(255,255,255,0.06));
        color: var(--accent, #4e7fff);
    }

    .drawer-nav-item i {
        width: 20px;
        text-align: center;
        font-size: 16px;
        color: var(--accent, #4e7fff);
    }

    .drawer-nav-divider {
        height: 1px;
        background: var(--border, rgba(255,255,255,0.06));
        margin: 10px 0;
    }

    /* Drawer footer */
    .drawer-footer {
        padding: 16px 24px 32px;
        border-top: 1px solid var(--border, rgba(255,255,255,0.06));
    }

    .drawer-logout {
        width: 100%;
        padding: 12px;
        background: rgba(255, 82, 82, 0.08);
        border: 1px solid rgba(255, 82, 82, 0.2);
        border-radius: 12px;
        color: var(--error, #ff5252);
        font-size: 14px;
        font-weight: 600;
        font-family: 'Outfit', sans-serif;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .drawer-logout:hover {
        background: rgba(255, 82, 82, 0.15);
    }

    .drawer-login-btn {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, var(--accent, #4e7fff), var(--accent-2, #00d4ff));
        border: none;
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        font-family: 'Outfit', sans-serif;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 8px;
        transition: all 0.2s;
    }

    /* ── NAVBAR MOBİL ── */
    .navbar .mobile-toggle {
        display: flex !important;
    }

    .navbar .nav-links {
        display: none !important;
    }

    .navbar .nav-actions .btn-login,
    .navbar .nav-actions .btn-register {
        display: none !important;
    }

    /* Hamburger ikonunu güzelleştir */
    .mobile-toggle {
        width: 40px;
        height: 40px;
        border: 1px solid var(--border, rgba(255,255,255,0.06));
        background: var(--bg-glass, rgba(255,255,255,0.03));
        border-radius: 10px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 0 !important;
        transition: all 0.3s;
    }

    .mobile-toggle:hover {
        border-color: var(--accent, #4e7fff);
    }

    /* ── KARTLAR PARMAK DOSTU ── */
    .service-card,
    .product-card,
    .profile-card,
    .stat-card,
    .pricing-card,
    .tech-category,
    .process-card {
        border-radius: 16px !important;
        padding: 24px 20px !important;
    }

    /* ── SWIPE SİLME ANİMASYONU ── */
    .swipe-item {
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .swipe-item.swiping {
        transition: none;
    }

    .swipe-delete-bg {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80px;
        background: var(--error, #ff5252);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
        border-radius: 0 12px 12px 0;
    }

    /* ── TOAST MOBİL ── */
    .toast {
        top: auto !important;
        bottom: 90px !important;
        right: 16px !important;
        left: 16px !important;
        max-width: none !important;
        border-radius: 16px !important;
    }

    /* ── FORM ALANLARI ── */
    .form-input,
    .pay-input,
    .addr-input,
    .coupon-input {
        font-size: 16px !important; /* iOS zoom'u önler */
        padding: 14px 18px 14px 44px !important;
    }

    /* ── BUTONLAR ── */
    .btn-primary,
    .btn-checkout,
    .btn-pay-next,
    .btn-shop {
        padding: 16px 24px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }

    /* ── HERO BAŞLIKLAR ── */
    .page-hero-title {
        font-size: 32px !important;
        letter-spacing: -1px !important;
    }

    .hero-info h1 {
        font-size: 22px !important;
    }

    /* ── SEPET MOBİL ── */
    .cart-product {
        grid-template-columns: 70px 1fr !important;
        gap: 10px !important;
        padding: 16px !important;
    }

    .cart-product-img {
        width: 70px !important;
        height: 60px !important;
        font-size: 28px !important;
        border-radius: 10px !important;
    }

    .cart-product-qty,
    .cart-product-total,
    .cart-product-remove {
        grid-column: 2 !important;
    }

    /* ── ÖDEME MODAL MOBİL ── */
    .pay-modal {
        max-height: 95vh !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .pay-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    /* ── PROFIL MOBİL ── */
    .profile-layout {
        grid-template-columns: 1fr !important;
    }

    .profile-nav {
        position: relative !important;
        top: 0 !important;
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 12px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .profile-nav::-webkit-scrollbar {
        display: none;
    }

    .profile-nav-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* ── PULL TO REFRESH İNDİKATÖRÜ ── */
    .ptr-indicator {
        position: fixed;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        background: var(--bg-card, #141a42);
        border: 1px solid var(--border, rgba(255,255,255,0.06));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent, #4e7fff);
        font-size: 16px;
        box-shadow: var(--shadow, 0 4px 30px rgba(0,0,0,0.3));
        transition: top 0.3s;
        z-index: 9998;
    }

    .ptr-indicator.visible {
        top: 80px;
    }

    /* ── SIPARIŞ KARTLARI MOBİL ── */
    .order-card-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .order-card-body {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* ── SCROLL SNAP (Mağaza) ── */
    .products-grid {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        padding-bottom: 10px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex-shrink: 0 !important;
        width: 240px !important;
        scroll-snap-align: start;
    }

    /* ── STATS GRİD MOBİL ── */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* ── FOOTER MOBİL ── */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    /* ── CONTAINER ── */
    .container {
        padding: 0 16px !important;
    }

    .section {
        padding: 60px 0 !important;
    }
}

/* Küçük telefonlar */
@media (max-width: 380px) {
    .page-hero-title {
        font-size: 26px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .bottom-nav-item {
        padding: 8px 10px !important;
    }

    .bn-label {
        font-size: 9px !important;
    }
}