/* Banner Mobile Fix - Full-width banner with proper layout - FORCE VISIBLE */

@media (max-width: 768px) {
    .hero {
        padding: 0 !important;
        margin-top: 98px !important;
        padding-top: 0 !important;
        min-height: auto !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
    }

    .hero-banner {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 350px !important; /* Further reduced height */
        opacity: 0.8 !important; /* More visible for better shine */
        z-index: -1 !important; /* Moved behind content */
        margin: 0 !important;
        margin-top: 80px !important; /* Moved further down */
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-shadow:
            0 0 30px rgba(251, 191, 36, 0.6) !important,
            0 0 60px rgba(251, 191, 36, 0.4) !important,
            0 0 90px rgba(251, 191, 36, 0.2) !important,
            0 0 120px rgba(251, 191, 36, 0.1) !important !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
        min-height: 350px !important;
        flex-shrink: 0 !important;
        filter: brightness(1.4) contrast(1.2) saturate(1.3) !important;
    }

    .hero-banner-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 500px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
    }

    .hero-content {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Remove any gap after hero section */
    .hero + section,
    .hero ~ section,
    section#token-value,
    .token-value-section {
        margin-top: 0 !important;
        padding-top: var(--spacing-lg) !important;
    }

    /* Add enhanced sparkle animation for maximum shine */
    .hero-banner {
        animation: enhancedSparkle 6s ease-in-out infinite !important;
    }

    @keyframes enhancedSparkle {
        0%, 100% {
            filter: brightness(1.4) contrast(1.2) saturate(1.3) !important;
            box-shadow:
                0 0 30px rgba(251, 191, 36, 0.6),
                0 0 60px rgba(251, 191, 36, 0.4),
                0 0 90px rgba(251, 191, 36, 0.2),
                0 0 120px rgba(251, 191, 36, 0.1) !important;
        }
        25% {
            filter: brightness(1.6) contrast(1.3) saturate(1.4) !important;
            box-shadow:
                0 0 35px rgba(251, 191, 36, 0.7),
                0 0 70px rgba(251, 191, 36, 0.5),
                0 0 105px rgba(251, 191, 36, 0.3),
                0 0 140px rgba(251, 191, 36, 0.15) !important;
        }
        50% {
            filter: brightness(1.8) contrast(1.4) saturate(1.5) !important;
            box-shadow:
                0 0 40px rgba(251, 191, 36, 0.8),
                0 0 80px rgba(251, 191, 36, 0.6),
                0 0 120px rgba(251, 191, 36, 0.4),
                0 0 160px rgba(251, 191, 36, 0.2) !important;
        }
        75% {
            filter: brightness(1.6) contrast(1.3) saturate(1.4) !important;
            box-shadow:
                0 0 35px rgba(251, 191, 36, 0.7),
                0 0 70px rgba(251, 191, 36, 0.5),
                0 0 105px rgba(251, 191, 36, 0.3),
                0 0 140px rgba(251, 191, 36, 0.15) !important;
        }
    }
    
    /* Ensure hero section has no bottom margin/padding */
    .hero {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Ensure banner has no bottom margin */
    .hero-banner {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 !important;
        margin-top: 98px !important;
        padding-top: 0 !important;
    }

    .hero-banner {
        height: 300px !important; /* Further reduced height */
        min-height: 300px !important;
        margin: 0 !important;
        margin-top: 60px !important; /* Moved further down */
        opacity: 0.7 !important; /* More visible for shine */
        box-shadow:
            0 0 25px rgba(251, 191, 36, 0.5) !important,
            0 0 50px rgba(251, 191, 36, 0.3) !important,
            0 0 75px rgba(251, 191, 36, 0.15) !important,
            0 0 100px rgba(251, 191, 36, 0.08) !important !important;
        filter: brightness(1.3) contrast(1.15) saturate(1.2) !important;
    }

    .hero-banner-img {
        min-height: 350px !important;
    }

    .hero-content {
        padding: 0 0.75rem 0 !important;
        margin-top: 0 !important;
    }
}

/* Ensure banner doesn't overflow on any device */
.hero-banner {
    max-width: 100%;
    overflow: hidden;
}

.hero-banner-img {
    max-width: 100%;
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero-banner {
        height: 280px !important; /* Further reduced height */
        min-height: 280px !important;
        margin-top: 50px !important; /* Moved further down */
        opacity: 0.6 !important; /* More visible for shine */
        box-shadow:
            0 0 20px rgba(251, 191, 36, 0.4) !important,
            0 0 40px rgba(251, 191, 36, 0.2) !important,
            0 0 60px rgba(251, 191, 36, 0.1) !important,
            0 0 80px rgba(251, 191, 36, 0.05) !important !important;
        filter: brightness(1.25) contrast(1.1) saturate(1.1) !important;
    }

    .hero-banner-img {
        min-height: 320px !important;
    }
}
