/* ═══════════════════════════════════════════════════════════════
   MARINA BET — ORTAK MOBİL ÜST HEADER + ALT NAVİGASYON
   Tüm sayfalarda birebir aynı görünüm için tek kaynak — index.html'in
   referans tasarımıyla birebir aynı (aksi halde her sayfa kendi inline
   stilini taşıyıp zamanla birbirinden farklılaşıyordu).
   ═══════════════════════════════════════════════════════════════ */

.mobile-header {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Sabit üst header */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: rgba(1, 8, 13, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(16, 158, 202, 0.15);
        padding: 0 14px;
        z-index: 2000;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-menu-btn {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        position: relative;
        transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
        color: rgba(255,255,255,0.82);
    }
    .mobile-menu-btn:active {
        transform: scale(0.93);
        background: rgba(16, 158, 202,0.1);
        border-color: rgba(16, 158, 202,0.25);
    }

    .mobile-logo {
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        height: 27px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    /* --- Giriş yapılmamış butonlar --- */
    .mobile-header-auth {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .mobile-btn-login {
        background: transparent;
        border: 1px solid rgba(16, 158, 202, 0.3);
        color: #eef3f5;
        font-size: 12px;
        font-weight: 700;
        font-family: inherit;
        padding: 7px 13px;
        border-radius: 9px;
        cursor: pointer;
        letter-spacing: 0.2px;
        transition: all 0.2s;
    }
    .mobile-btn-login:active {
        background: rgba(16, 158, 202,0.08);
        border-color: rgba(16, 158, 202,0.5);
    }

    .mobile-btn-register {
        background: linear-gradient(135deg, #1C87B7, #256593);
        color: #020b0f;
        border: none;
        font-size: 12px;
        font-weight: 800;
        font-family: inherit;
        padding: 7px 14px;
        border-radius: 9px;
        cursor: pointer;
        box-shadow: 0 2px 14px rgba(16, 158, 202, 0.4);
        letter-spacing: 0.2px;
        transition: all 0.2s;
    }
    .mobile-btn-register:active { filter: brightness(1.1); }

    /* --- Giriş yapılmış: bakiye + para yatır + avatar --- */
    .mob-logged-area {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mob-balance-pill {
        display: flex;
        align-items: center;
        gap: 4px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 10px;
        padding: 7px 12px;
        cursor: default;
    }
    .mob-balance-icon {
        color: #1C87B7;
        font-size: 12px;
        font-weight: 800;
        font-family: 'Inter', sans-serif;
        letter-spacing: -0.5px;
    }
    .mob-balance-amt {
        color: #f0f4f6;
        font-size: 13px;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
        letter-spacing: -0.3px;
    }

    .mob-deposit-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1C87B7, #256593);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 14px rgba(16, 158, 202,0.45);
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .mob-deposit-btn:active {
        transform: scale(0.92);
        box-shadow: 0 1px 6px rgba(16, 158, 202,0.3);
    }

    .mob-avatar-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1C87B7, #256593);
        border: 2px solid rgba(16, 158, 202,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 15px;
        font-weight: 800;
        color: #020b0f;
        font-family: 'Urbanist', sans-serif;
        flex-shrink: 0;
        box-shadow: 0 0 14px rgba(16, 158, 202,0.3);
        transition: all 0.2s;
    }
    .mob-avatar-btn:active {
        transform: scale(0.92);
        box-shadow: 0 0 22px rgba(16, 158, 202,0.5);
    }

    /* Mevcut masaüstü header'ı mobilde gizle */
    .header {
        display: none !important;
    }

    html, body {
        overflow-x: hidden;
    }

    /* Body'yi üst/alt sabit barlar kadar kaydır */
    body {
        padding-top: 56px;
        padding-bottom: 86px;
    }

    /* ─── Alt Navigasyon ─── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: rgba(11, 21, 24, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(16, 158, 202, 0.15);
        z-index: 2000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 10px;
        gap: 4px;
        color: rgba(238, 243, 245, 0.45);
        text-decoration: none;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.3px;
        transition: color 0.2s;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:active {
        color: #1C87B7;
    }

    .mobile-nav-item span {
        line-height: 1.1 !important;
        display: block !important;
        overflow: visible !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        color: rgba(238, 243, 245, 0.7) !important;
        white-space: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
    }

    .mobile-nav-item.active span,
    .mobile-nav-item:hover span {
        color: #1C87B7 !important;
    }

    /* Ortadaki özel buton */
    .mobile-center-btn {
        position: relative;
        color: #020b0f;
        justify-content: center;
        padding-top: 0;
    }

    .mobile-center-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #109ECA, #2970A3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -18px;
        box-shadow: 0 4px 16px rgba(16, 158, 202, 0.5);
        border: 3px solid rgba(11, 21, 24, 0.98);
        position: relative;
    }

    .mobile-center-btn span {
        color: #1C87B7;
        margin-top: 2px;
    }
}
