/**
 * ELIOAVEN - Responsive Architecture & Breakpoint Optimization
 * Phase 1: Mobile & Device Adaptations
 */

/* ==========================================================================
   1. MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 1040;
    padding: 0 1rem env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-nav-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.35rem 0;
    gap: 3px;
    transition: var(--transition-fast);
    position: relative;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-link.active i {
    color: var(--accent);
    transform: translateY(-2px);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.mobile-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid transparent;
}

.mobile-nav-link.active .mobile-nav-avatar {
    border-color: var(--accent);
}

/* Add bottom padding to body/footer on mobile so fixed bottom nav doesn't cover content */
@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 74px; /* Space for 64px bar + padding */
    }

    /* Adjust Desktop Navbar on Mobile / Tablets */
    .elio-navbar .nav-links-desktop {
        display: none !important;
    }

    .navbar-actions-desktop {
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2.25rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .category-card {
        height: 180px;
    }

    .booking-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-thumb {
        width: 100%;
        height: 150px;
    }

    .booking-qr-wrap {
        margin-top: 1rem;
        align-self: center;
    }
}

/* Tablet Optimizations (min-width: 768px and max-width: 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .event-card-media {
        padding-top: 55%;
    }
}

/* Small Mobile Screens */
@media (max-width: 575.98px) {
    h1, .h1 {
        font-size: 2rem;
    }

    h2, .h2 {
        font-size: 1.65rem;
    }

    .brand-tagline-micro {
        display: none;
    }

    .btn {
        padding: 0.6rem 1.15rem;
        font-size: 0.84rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.25rem;
    }

    .story-card {
        width: 72px;
    }

    .story-ring-wrap {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   2. ULTRA-COMPACT MOBILE SCREENS (<= 390px & <= 360px)
   ========================================================================== */
@media (max-width: 390px) {
    .container, .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .card {
        border-radius: var(--radius-sm) !important;
    }

    .btn {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.8rem !important;
    }

    .mobile-bottom-nav {
        height: 58px;
    }

    .mobile-nav-link {
        font-size: 0.62rem;
    }

    .mobile-nav-link i {
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 0.3em 0.55em !important;
    }
}

@media (max-width: 360px) {
    body {
        font-size: 0.9rem;
    }

    .btn-group-responsive {
        flex-direction: column !important;
        width: 100%;
        gap: 0.5rem;
    }

    .btn-group-responsive .btn {
        width: 100% !important;
    }

    .ticket-pass-meta, .booking-card-details {
        font-size: 0.82rem;
    }
}

