/**
 * Responsive CSS - Dark Casino Theme
 */

/* ==========================================================================
   TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Header */
    .nav-menu {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 150px 30px 40px;
    }

    .hero-intro {
        max-width: 350px;
        margin-bottom: 8vw;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Casino Grid */
    .casino-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats */
    .stats-grid {
        gap: var(--space-lg);
    }

    /* Partners */
    .partners-grid {
        gap: var(--space-lg);
    }
}

/* ==========================================================================
   TABLET PORTRAIT (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    /* Header */
    .header-inner {
        padding: 0 var(--space-md);
    }

    .header-logo img {
        height: 32px;
    }

    .header-logo-text {
        font-size: var(--text-lg);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 20px 30px;
    }

    .hero-intro {
        align-self: flex-start;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-description {
        max-width: 100%;
        font-size: var(--text-base);
        margin-bottom: 20px;
    }

    /* Service Cards */
    .service-card {
        padding: var(--space-lg);
    }

    /* Feature Cards */
    .feature-card {
        padding: var(--space-lg);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Casino Grid */
    .casino-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .casino-rank {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Cards */
    .card-body {
        padding: var(--space-md);
    }

    /* Sidebar */
    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Section */
    .section-header {
        margin-bottom: var(--space-xl);
    }

    /* Modal */
    .modal {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: var(--space-md);
        max-height: calc(90vh - 70px);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: var(--text-xs);
    }

    /* Article */
    .seo-content {
        padding: var(--space-lg) var(--space-md);
    }

    .seo-content h2 {
        font-size: var(--text-xl);
    }

    .seo-content h3 {
        font-size: var(--text-lg);
    }

    .seo-content figure.image.left,
    .seo-content figure.image.right {
        float: none;
        max-width: 100%;
        margin: var(--space-md) 0;
    }

    /* Casino list header */
    .casino-list-header {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   MOBILE (max-width: 640px)
   ========================================================================== */

@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
    }

    /* Casino Grid */
    .casino-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    /* Carousel */
    .kw-pill {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }

    /* Pagination */
    .pagination-list li a,
    .pagination-list li span {
        min-width: 38px;
        height: 38px;
        padding: 0 var(--space-sm);
        font-size: var(--text-sm);
    }

    /* Forms */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px;
    }

    /* Buttons */
    .btn {
        width: 100%;
    }

    .btn-sm {
        width: auto;
    }

    /* Tables scrollable */
    .seo-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tags */
    .tag-card {
        padding: var(--space-sm) var(--space-md);
    }

    /* Testimonials */
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   VERY SMALL (max-width: 380px)
   ========================================================================== */

@media (max-width: 380px) {
    .casino-grid-new {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .header-logo-text {
        display: none;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   TOUCH DEVICES
   ========================================================================== */

@media (hover: none) {
    .card:hover {
        transform: none;
    }

    .card:hover .card-image img {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .card:focus-within {
        transform: translateY(-4px);
        box-shadow: var(--shadow-card-hover);
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .kw-row {
        animation: none;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .kw-carousel,
    .mobile-menu,
    .modal,
    .modal-backdrop,
    .btn,
    .pagination,
    .casino-grid-new,
    .partners {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .main-content {
        padding: 0;
    }

    .seo-content a {
        text-decoration: underline;
    }

    .seo-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   LARGE SCREENS (min-width: 1440px)
   ========================================================================== */

@media (min-width: 1440px) {
    .container-wide {
        max-width: 1600px;
    }

    .casino-grid-new {
        grid-template-columns: repeat(5, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
