/* Mobile Navigation & Preloader Styles */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-logo {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 1s infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-flex {
        justify-content: space-between;
        padding: 0 20px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        transition: 0.3s;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 18px;
    }
}

/* Live Ticker */
.ticker-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    background: rgba(0,0,0,0.8);
    border-left: 4px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    backdrop-filter: blur(5px);
    display: none; /* JS will show it */
    animation: slideInLeft 0.5s ease-out;
}

.ticker-content {
    font-size: 0.9em;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* E-E-A-T Trust Badges */
.trust-badge-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.trust-badge {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    color: #333;
    font-weight: bold;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.trust-badge i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 1.2em;
}

/* Responsive Fixes for Carousel */
@media (max-width: 768px) {
    .carousel-section {
        perspective: none;
        padding: 40px 0;
        overflow-x: hidden;
    }

    .carousel-container {
        width: 100%;
        height: auto;
        animation: none;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px;
        transform-style: flat;
        background: transparent;
    }

    .carousel-item {
        position: relative;
        flex: 0 0 250px; /* Fixed width cards on mobile */
        height: 350px;
        transform: none !important; /* Reset 3D transforms */
        scroll-snap-align: center;
        margin: 0;
    }
    
    /* Improve Hand Rankings Grid on Mobile */
    .feature-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content h1 {
        font-size: 2.2em;
    }
}
