/* ============================================
   RESPONSIVE STYLES
   Mobile-first responsive design
   ============================================ */

/* Tablets and below (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(10px);
        transition: left var(--transition-normal);
        overflow-y: auto;
        padding: var(--spacing-xl);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        order: -1;
    }
    
    /* Featured Partner */
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .casino-logo-large {
        max-width: 200px;
    }
    
    /* Comparison Table */
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
    }
    
    .table-logo {
        max-width: 60px;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    /* Header */
    .nav-actions .btn {
        display: none;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Featured Partner */
    .featured-card {
        padding: var(--spacing-lg);
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        gap: var(--spacing-sm);
    }
    
    .feature-card {
        flex-direction: column;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    /* Casino Cards */
    .casinos-grid {
        grid-template-columns: 1fr;
    }
    
    /* Comparison Table */
    .comparison-table-wrapper {
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
    }
    
    .comparison-table {
        font-size: 0.75rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    
    .table-casino-header {
        font-size: 0.75rem;
    }
    
    .table-logo {
        max-width: 50px;
    }
    
    .badge-recommended {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }
    
    /* Stream & Video */
    .stream-info {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stream-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .stream-actions .btn {
        width: 100%;
    }
    
    .video-info {
        flex-direction: column;
    }
    
    .video-info .btn {
        width: 100%;
    }
    
    /* Social Grid */
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsible Gaming */
    .responsible-content {
        flex-direction: column;
        text-align: center;
    }
    
    .responsible-icon {
        margin: 0 auto;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Logo */
    .logo {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        width: 100%;
    }
    
    /* Featured */
    .casino-logo-large {
        max-width: 150px;
    }
    
    .featured-highlights {
        gap: 0.5rem;
    }
    
    .highlight-badge {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Cards */
    .card-header {
        padding: var(--spacing-md);
    }
    
    .casino-logo {
        max-width: 100px;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    /* Social */
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .social-info h3 {
        font-size: 1.125rem;
    }
}

/* Large screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    :root {
        font-size: 18px;
    }
}

/* Very large screens (min-width: 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    :root {
        font-size: 19px;
    }
}

/* Print styles */
@media print {
    .header,
    .live-indicator,
    .nav-menu,
    .mobile-toggle,
    .back-to-top,
    .cookie-banner,
    .stream-section,
    .video-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-bg,
    .featured-bg,
    .card-glow {
        display: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #7c7fff;
        --text-secondary: #e0e0e0;
        --dark-card: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .casino-card,
    .feature-card,
    .social-card {
        border: 2px solid currentColor;
    }
}

/* Dark mode (for systems that support it) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add more contrast if needed */
    :root {
        --dark-bg: #000000;
        --dark-card: #111111;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }
    
    .hero-content {
        padding: var(--spacing-md) 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* Wager Race Responsive */
@media (max-width: 1024px) {
    .podium-place {
        padding: var(--spacing-md);
    }
    
    .podium-medal {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .wager-race-section {
        padding: var(--spacing-xl) 0;
    }
    
    .podium-section {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .podium-medal {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .podium-rank {
        font-size: 1.5rem;
    }
    
    .podium-player {
        font-size: 1rem;
    }
    
    .podium-wager {
        font-size: 1.25rem;
    }
    
    .leaderboard-table th:last-child,
    .leaderboard-table td:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .podium-medal {
        width: 50px;
        height: 50px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
}
