/* ==========================================================================
   Responsive Styles for STAR 777 Landing Page
   Overrides and adjustments for different screen sizes.
   ========================================================================== */

/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Base Responsive Fixes for Images and Buttons */
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Mobile (Max 767px) - Phones and Small Devices
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Navbar / Header */
    .custom-navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .custom-navbar .logo-text span.h4 {
        font-size: 1.2rem;
    }

    .custom-navbar .logo-text span.text-light {
        font-size: 0.55rem !important;
        letter-spacing: 1px !important;
    }

    .custom-navbar img {
        width: 40px !important;
    }
    
    .action-buttons .btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.5rem !important;
    }

    .hero-section h4 {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        font-size: 1.1rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* Features Bar */
    .features-bar .col-6 {
        font-size: 0.85rem;
    }

    /* Section Headings */
    h2.display-4 {
        font-size: 2rem !important;
    }

    /* Market Cards */
    .glass-card {
        padding: 1.25rem !important;
    }
    
    .glass-card h4 {
        font-size: 1.2rem !important;
    }
    
    .glass-card h2 {
        font-size: 1.6rem !important;
        letter-spacing: 1px !important;
    }
    
    /* Game Rates */
    .list-unstyled li span {
        font-size: 1rem !important;
    }

    /* Download CTA Section */
    .container-fluid.px-4.py-5.text-center .btn {
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem !important;
        text-align: center;
    }
    
    footer .d-flex.gap-2 {
        justify-content: center !important;
    }
    
    footer .btn-outline-success {
        width: 100%;
    }
    
    footer .bottom-links {
        flex-direction: column;
        align-items: center;
    }

    /* Floating Buttons */
    .float-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
        bottom: 20px !important;
        right: 15px !important;
    }

    .scroll-top {
        left: 15px !important;
        bottom: 20px !important;
    }
    
    .refreshButton {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
}

/* ==========================================================================
   Tablet (768px - 991px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem !important;
    }

    .hero-section h2 {
        font-size: 2rem !important;
    }
    
    h2.display-4 {
        font-size: 2.5rem !important;
    }

    /* Footer */
    footer .row > div {
        text-align: center;
    }
    
    footer .d-flex.gap-2 {
        justify-content: center !important;
    }
}

/* ==========================================================================
   Small Mobile (Max 360px) - Extra Small Screens
   ========================================================================== */
@media (max-width: 360px) {
    .custom-navbar .logo-text {
        display: none !important;
    }
    
    .action-buttons .btn span {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.2rem !important;
    }
    
    h2.display-4 {
        font-size: 1.8rem !important;
    }
    
    .glass-card h2 {
        font-size: 1.4rem !important;
    }
}

/* ==========================================================================
   Large Desktop (Min 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 5rem !important;
    }
}

/* Ensure Marquee does not break layout */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}