/* Responsive Styles */

/* Large Screens (above 1200px) */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }
}

/* Medium Screens (992px - 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Tablet Screens (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero stacks: text first, game demo below */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-grid .hero-content {
        text-align: center;
    }

    .game-demo-wrap {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    /* Keep a compact Play button visible next to the menu toggle */
    .header-cta {
        margin-left: auto;
        margin-right: 15px;
    }

    .header-cta-button {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .logo-text {
        white-space: nowrap;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    /* Sticky bottom CTA bar */
    .sticky-cta {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(20, 10, 11, 0.97);
        color: white;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }

    .sticky-cta.visible {
        transform: translateY(0);
        visibility: visible;
    }

    .sticky-cta-logo {
        width: 88px;
        height: auto;
        flex-shrink: 0;
    }

    .sticky-cta-text {
        flex: 1;
        font-weight: 700;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .sticky-cta-button {
        background: var(--secondary-color);
        color: white;
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.85rem;
        padding: 10px 16px;
        border-radius: var(--border-radius);
        box-shadow: 0 3px 0 var(--cta-shadow);
        white-space: nowrap;
    }

    .sticky-cta-button:hover {
        color: white;
    }

    .sticky-cta-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.5rem;
        line-height: 1;
        padding: 4px;
        cursor: pointer;
    }

    body.has-sticky-cta {
        padding-bottom: 70px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        width: 100%;
    }
    
    .footer-cta {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Screens (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .multiplier-ticker {
        height: 32px;
    }

    .ticker-chip {
        font-size: 0.75rem;
    }
    
    .steps-container, 
    .reasons-grid, 
    .links-grid, 
    .objective-highlights, 
    .betting-options, 
    .multiplier-facts, 
    .cashout-methods, 
    .mistakes-grid, 
    .management-tips, 
    .psychology-grid, 
    .tips-grid {
        gap: 20px;
    }
    
    .step, 
    .reason-card, 
    .link-card, 
    .highlight-box, 
    .option-card, 
    .fact-box, 
    .method-card, 
    .mistake-card, 
    .tip-box, 
    .psychology-card, 
    .tip-card {
        padding: 20px 15px;
    }
    
    .categories-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 5px;
    }
    
    .category-list {
        display: inline-flex;
        flex-wrap: nowrap;
    }
    
    .category-link {
        padding: 8px 15px;
        margin: 2px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Small Mobile Screens (below 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .sticky-cta-text {
        display: none;
    }

    .sticky-cta-logo {
        margin-right: auto;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .cta-button, 
    .header-cta-button, 
    .footer-cta-button, 
    .next-steps-button, 
    .learn-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .practice-item {
        flex-direction: column;
        text-align: center;
    }
    
    .practice-icon {
        margin-bottom: 10px;
    }
    
    .guide-links {
        flex-direction: column;
        align-items: center;
    }
    
    .guide-link {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-column {
        width: 100%;
    }
    
    .footer-disclaimer,
    .footer-copyright {
        text-align: center;
    }
}

/* JavaScript-enabled styles */
.mobile-nav.active {
    transform: translateY(0);
    display: block;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item .faq-answer {
    display: none;
}

.faq-item.active .question-toggle .fa-plus {
    transform: rotate(45deg);
}

/* Very small phones: keep logo and Play button on one line */
@media (max-width: 420px) {
    .logo-img {
        height: 32px;
        width: 32px;
        margin-right: 6px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .header-cta {
        margin-right: 10px;
    }

    .header-cta-button {
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    .header-cta-button i {
        display: none;
    }
}
