/* ============================================
   MOBİL ALT NAVBAR - Cinefia Dark Neon Theme
   ============================================ */

.mobile-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 30, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(138, 43, 226, 0.15);
    padding: 0;
    z-index: 10000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5),
        0 -1px 0 rgba(138, 43, 226, 0.1);
    display: none;
    /* GPU compositing - mobil tarayıcılarda kayma sorununu önler */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* Üst çizgi gradient */
.mobile-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(138, 43, 226, 0.4) 20%,
            rgba(157, 78, 221, 0.6) 50%,
            rgba(138, 43, 226, 0.4) 80%,
            transparent 100%);
    z-index: 1;
}

/* ===== Container ===== */
.mobile-navbar-container {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

/* ===== Nav Item ===== */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 0 4px;
    border-radius: 12px;
    position: relative;
    width: 0;
    flex: 1 1 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Tap feedback */
.mobile-nav-item:active {
    transform: scale(0.92);
    transition-duration: 0.1s;
}

/* ===== Nav Icon ===== */
.mobile-nav-icon {
    font-size: 20px;
    margin: 0 0 3px 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
    line-height: 1;
    height: 24px;
}

/* Global .fas margin override'ını engelle */
.mobile-nav-item .mobile-nav-icon.fas,
.mobile-nav-item .mobile-nav-icon[class*="fa-"] {
    margin-right: 0;
    margin-left: 0;
}

/* ===== Nav Text ===== */
.mobile-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.15;
    letter-spacing: 0.1px;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Hover (sadece pointer cihazlarda) ===== */
@media (hover: hover) and (pointer: fine) {
    .mobile-nav-item:hover {
        color: rgba(255, 255, 255, 0.7);
        background: rgba(138, 43, 226, 0.06);
    }
}

/* ===== Active State ===== */
.mobile-nav-item.active {
    color: #c084fc;
}

.mobile-nav-item.active .mobile-nav-icon {
    color: #c084fc;
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.4));
}

.mobile-nav-item.active .mobile-nav-text {
    color: #c084fc;
    font-weight: 600;
}

/* Active üst gösterge çizgisi */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2.5px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #8A2BE2, #c084fc);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.5);
}

/* Active arka plan glow */
.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 100%;
    background: radial-gradient(ellipse at top center, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobil ve Tablet'te göster */
@media (max-width: 1024px) {
    .mobile-navbar {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    .footer {
        margin-bottom: 70px;
    }
}

/* 1025px+ masaüstünde gizle */
@media (min-width: 1025px) {
    .mobile-navbar {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }

    .footer {
        margin-bottom: 0 !important;
    }
}

/* iPhone X+ safe area */
@supports (padding: max(0px)) {
    .mobile-navbar {
        padding-bottom: 0;
    }

    .mobile-navbar-container {
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }
}

/* Landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .mobile-navbar-container {
        padding: 4px 0 max(4px, env(safe-area-inset-bottom));
    }

    .mobile-nav-item {
        padding: 4px 0 3px;
    }

    .mobile-nav-icon {
        font-size: 17px;
        margin-bottom: 2px;
        height: 20px;
    }

    .mobile-nav-text {
        font-size: 8.5px;
    }

    body {
        padding-bottom: 56px;
    }

    .footer {
        margin-bottom: 56px;
    }
}

/* Küçük ekranlar (≤360px) */
@media (max-width: 360px) {
    .mobile-nav-icon {
        font-size: 18px;
        height: 22px;
    }

    .mobile-nav-text {
        font-size: 9px;
    }
}

/* Dark mode güçlendirme */
@media (prefers-color-scheme: dark) {
    .mobile-navbar {
        background: rgba(10, 6, 22, 0.95);
    }
}