/* Mobile-First Responsive Styles */

/* Premium Header Mobile */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-premium);
}

.header-logo {
    font-size: 20px;
    font-weight: 900;
    font-family: var(--font-display);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.online-counter {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.wallet-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

/* Premium Bottom Navigation */
/* Luxury Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, 
        rgba(5, 5, 10, 0.98) 0%, 
        rgba(10, 10, 20, 0.99) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 
        0 -4px 24px rgba(0, 0, 0, 0.6),
        0 -1px 8px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 52px;
    min-height: 52px;
    position: relative;
    flex: 1;
    justify-content: center;
    background: transparent;
}

.nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.nav-item.active {
    color: #00d4ff;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.15) 0%, 
        rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 4px 16px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 12px var(--accent-primary),
        0 0 24px rgba(0, 212, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: translateX(-50%) scale(1.2);
    }
}

.nav-item:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.nav-item:hover:not(.active)::before {
    opacity: 0.5;
    transform: scale(1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon svg {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.nav-item:hover:not(.active) .nav-icon svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Live indicator special styling */
.nav-item[data-page="live"] .nav-icon svg circle[fill="#00ff88"] {
    filter: drop-shadow(0 0 4px #00ff88);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Navigation Badge */
.nav-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: #ff3366;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.3);
    z-index: 1;
}

/* Main Content Spacing */
.main-content {
    padding-top: 60px; /* Header height */
    padding-bottom: 64px; /* Bottom nav height */
}

/* Touch Optimizations */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Swipe Gestures */
.swipeable {
    touch-action: pan-x;
}

/* Safe Area Support */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-top: env(safe-area-inset-top);
    }
    
    .bottom-nav {
        padding-left: max(4px, env(safe-area-inset-left));
        padding-right: max(4px, env(safe-area-inset-right));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .bottom-nav {
        height: 60px;
        padding: 4px 1px 8px 1px;
    }
    
    .nav-item {
        min-width: 40px;
        max-width: 50px;
        padding: 3px 1px;
        border-radius: 10px;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 0;
    }
    
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-label {
        font-size: 7px;
        letter-spacing: 0.2px;
        font-weight: 500;
    }
    
    .nav-badge {
        top: 0;
        right: 1px;
        min-width: 10px;
        height: 10px;
        font-size: 6px;
        padding: 1px 2px;
        border-radius: 6px;
    }
    
    .main-content {
        padding-bottom: 60px;
    }
    
    .nav-item.active::after {
        width: 4px;
        height: 4px;
    }
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
    .header {
        padding: 0 var(--spacing-sm);
    }
    
    .header-logo {
        font-size: var(--font-size-lg);
    }
    
    .online-counter {
        display: none; /* Hide on very small screens */
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Compact bottom nav for small screens */
    .bottom-nav {
        height: 60px;
        padding: 0 6px;
    }
    
    .nav-item {
        min-width: 48px;
        padding: 6px 4px;
        gap: 3px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .nav-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    .nav-badge {
        top: 3px;
        right: 4px;
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }
    
    .main-content {
        padding-bottom: 60px;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none; /* Hide bottom nav on tablet+ */
    }
    
    .main-content {
        padding-bottom: var(--spacing-lg);
    }
    
    .header {
        height: 80px;
        padding: 0 var(--spacing-xl);
    }
    
    .header-logo {
        font-size: var(--font-size-2xl);
    }
    
    .online-counter {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .header {
        height: 90px;
    }
    
    .main-content {
        padding-top: 90px;
    }
}

/* Animations for mobile */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.4s ease forwards;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}