/**
 * BetproID Theme - Responsive Styles
 * Media queries for all breakpoints
 */

/* ============================================
   LARGE SCREENS (max-width: 1200px)
   ============================================ */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   MEDIUM SCREENS (max-width: 992px)
   ============================================ */

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding: var(--space-sm) 0;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-visual {
        order: -1;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-info {
        justify-content: center;
    }
    
    .cta-visual {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* ============================================
   TABLET SCREENS (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, #1a1a1f 0%, #151518 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 80px var(--space-xl) var(--space-2xl);
        transform: translateY(-20px);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        width: 100%;
        max-width: 300px;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.4s forwards;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links a {
        font-size: 1.25rem;
        font-weight: 500;
        display: block;
        padding: var(--space-lg) var(--space-md);
        color: var(--color-text-secondary);
        border-bottom: 1px solid rgba(113, 113, 122, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 0;
        height: 2px;
        background: var(--color-accent-primary);
        transition: width 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: #ffffff;
    }
    
    .nav-links a:hover::before,
    .nav-links a.active::before {
        width: 100%;
    }
    
    .nav-links a.active {
        color: var(--color-accent-primary);
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: rgba(220, 38, 38, 0.1);
        border-radius: 10px;
        border: 1px solid rgba(220, 38, 38, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(220, 38, 38, 0.2);
    }
    
    .mobile-menu-toggle span {
        position: absolute;
        width: 20px;
        height: 2px;
        background: var(--color-accent-primary);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(-6px);
    }
    
    .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(6px);
    }
    
    .mobile-menu-toggle.active {
        background: rgba(220, 38, 38, 0.15);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .nav-actions {
        z-index: 1002;
    }
    
    .nav-actions .btn-whatsapp {
        display: none;
    }
    
    /* Grid Adjustments */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    /* Tabs */
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: var(--color-accent-primary);
        border-bottom-color: transparent;
    }
    
    .casino-games {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slots-features {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    /* Floating WhatsApp */
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* ============================================
   SMALL SCREENS (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-card {
        padding: var(--space-xl);
    }
    
    .section-header {
        padding: 0 var(--space-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .step-card,
    .service-card,
    .why-card {
        padding: var(--space-lg);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .main-header,
    .floating-whatsapp,
    .announcement-bar,
    .nav-actions,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding-top: var(--space-xl);
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --color-text-primary: #ffffff;
        --color-text-secondary: #e0e0e0;
        --color-bg-primary: #000000;
        --color-accent-primary: #ff4444;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
    
    .card,
    .blog-card,
    .service-card {
        border-width: 2px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-whatsapp {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
}

