/**
 * KiloBet Casino Second Domain
 * Responsive Styles
 */

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 
   xs: 0-575px (Mobile Portrait)
   sm: 576-767px (Mobile Landscape)
   md: 768-991px (Tablet Portrait)
   lg: 992-1199px (Tablet Landscape / Small Desktop)
   xl: 1200px+ (Desktop)
*/

/* ==========================================================================
   Large Desktop (1400px+)
   ========================================================================== */

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-banners {
        height: 450px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .info-section {
        padding: 60px 40px;
    }
    
    .cta-content h2 {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Desktop (1200px - 1399px)
   ========================================================================== */

@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-banners {
        height: 400px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ==========================================================================
   Tablet Landscape / Small Desktop (992px - 1199px)
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }
    
    /* Header adjustments */
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu li a {
        font-size: 0.95rem;
    }
    
    .login-buttons {
        gap: 10px;
    }
    
    .login-btn,
    .signup-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero-banners {
        height: 350px;
    }
    
    .slide-button-container {
        bottom: 20px;
        left: 20px;
    }
    
    .banner-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Games */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Text content */
    .info-section h2 {
        font-size: 2rem;
    }
    
    .info-section h3 {
        font-size: 1.6rem;
    }
    
    .info-grid {
        gap: 20px;
    }
    
    /* CTA section */
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-nav {
        gap: 20px;
    }
    
    .payment-methods {
        gap: 12px;
    }
    
    .social-links {
        gap: 12px;
    }
}

/* ==========================================================================
   Tablet Portrait (768px - 991px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Header */
    .header-container {
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .login-btn,
    .signup-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* Hero section */
    .hero-banners {
        height: 300px;
        gap: 15px;
    }
    
    .slide-button-container {
        bottom: 15px;
        left: 15px;
    }
    
    .banner-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-navigation {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    /* Game sections */
    .game-section {
        margin: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .game-hover-popup {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .game-play-free,
    .game-play-real {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Text content */
    .info-section {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .info-section h2 {
        font-size: 1.8rem;
    }
    
    .info-section h3 {
        font-size: 1.5rem;
    }
    
    .info-section p {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card h4 {
        font-size: 1.2rem;
    }
    
    /* CTA section */
    .cta-section {
        padding: 50px 20px;
        margin: 30px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
    }
    
    /* Footer */
    .footer-nav {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .payment-methods {
        gap: 10px;
    }
    
    .payment-icon {
        height: 25px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .licensing {
        gap: 15px;
    }
    
    .license-icon {
        height: 35px;
    }
    
    .footer-legal {
        font-size: 0.85rem;
    }
    
    /* Support button */
    .support-button {
        bottom: 25px;
        right: 25px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Mobile Landscape (576px - 767px)
   ========================================================================== */

@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Header */
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .login-buttons {
        gap: 8px;
    }
    
    .login-btn,
    .signup-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Hero section */
    .hero-banners {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .hero-slider,
    .hero-slider.small-slider {
        flex: none;
        height: 200px;
    }
    
    .slide-button-container {
        bottom: 10px;
        left: 10px;
    }
    
    .banner-button {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .slider-navigation {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    
    /* Game sections */
    .section-title {
        font-size: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .game-hover-popup {
        padding: 10px;
    }
    
    .game-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .game-buttons {
        gap: 8px;
    }
    
    .game-play-free,
    .game-play-real {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Text content */
    .info-section {
        padding: 25px 15px;
        margin: 25px 0;
    }
    
    .info-section h2 {
        font-size: 1.6rem;
    }
    
    .info-section h3 {
        font-size: 1.3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 18px;
    }
    
    /* CTA section */
    .cta-section {
        padding: 40px 15px;
        margin: 25px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .payment-methods {
        justify-content: center;
        gap: 8px;
    }
    
    .payment-icon {
        height: 22px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .licensing {
        flex-direction: column;
        gap: 10px;
    }
    
    .license-icon {
        height: 30px;
    }
    
    /* Support button */
    .support-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Mobile Portrait (0px - 575px)
   ========================================================================== */

@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    :root {
        --header-height: 70px;
    }
    
    .header-container {
        gap: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        font-size: 18px;
    }
    
    .login-buttons {
        gap: 5px;
    }
    
    .login-btn {
        display: none; /* Hide login button on mobile */
    }
    
    .signup-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* Hero section */
    .hero-section {
        margin: 20px 0;
    }
    
    .hero-banners {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    
    .hero-slider,
    .hero-slider.small-slider {
        flex: none;
        height: 180px;
    }
    
    .slide-button-container {
        bottom: 8px;
        left: 8px;
    }
    
    .banner-button {
               padding: 3px 3px;
        font-size: 10px;
        min-height: 34px;
    }
    
    .nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .slider-navigation {
        bottom: 8px;
        right: 8px;
        gap: 4px;
    }
    
    /* Game sections */
    .game-section {
        margin: 30px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.4rem;
                color: #ffffff;
    }
    
    .show-more {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card {
        aspect-ratio: 1;
    }
    
    .provider-label {
        top: 5px;
        right: 5px;
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    .game-hover-popup {
        padding: 8px;
    }
    
    .game-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .game-buttons {
        gap: 6px;
    }
    
    .game-play-free,
    .game-play-real {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    /* Text content */
    .info-section {
        padding: 20px 10px;
        margin: 20px 0;
    }
    
    .info-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .info-section h3 {
        font-size: 1.2rem;
        margin: 25px 0 10px 0;
    }
    
    .info-section p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .info-section ul li {
        font-size: 0.9rem;
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 25px 0;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    /* CTA section */
    .cta-section {
        padding: 30px 10px;
        margin: 20px 0;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
                display: flex;
        align-content: center;
    }
    
    .cta-button {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .payment-methods {
        justify-content: center;
        gap: 35px;
        padding: 15px 0;
    }
    
    .payment-icon {
        height: 20px;
    }
    
    .social-links {
        justify-content: center;
        gap: 8px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .licensing {
        flex-direction: column;
        gap: 8px;
        padding: 15px 0;
    }
    
    .license-icon {
        height: 25px;
    }
    
    .footer-legal {
        font-size: 0.8rem;
        text-align: left;
        padding: 0 5px;
        text-align:center;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 15px;
    }
    
    /* Support button */
    .support-button {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 25px;
    }
    
    /* Main content spacing */
    main {
        padding: 15px 0;
    }
}

/* ==========================================================================
   Extra Small Mobile (320px and below)
   ========================================================================== */

@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .signup-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .hero-slider,
    .hero-slider.small-slider {
        height: 150px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .games-grid {
        gap: 8px;
    }
    
    .info-section {
        padding: 15px 8px;
    }
    
    .info-section h2 {
        font-size: 1.2rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .cta-section {
        padding: 25px 8px;
    }
    
    .cta-content h2 {
        font-size: 1.4rem;
    }
    
    .footer-legal {
        padding: 0 3px;
    }
    
    .support-button {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Landscape Orientation Specific Styles
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-banners {
        height: 250px;
    }
    
    .hero-slider,
    .hero-slider.small-slider {
        height: 250px;
    }
    
    .support-button {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .game-section {
        margin: 25px 0;
    }
}

/* ==========================================================================
   High DPI / Retina Display Adjustments
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .payment-icon,
    .license-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
    
    .game-card,
    .banner-button,
    .cta-button {
        transition: none;
    }
    
    .nav-arrow:hover,
    .game-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Dark Mode Support (if needed in future)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode support is needed */
    /*
    :root {
        --bg-light: #2d3238;
        --bg-white: #1c1f24;
        --text-primary: #ffffff;
        --text-secondary: #b8bcc8;
    }
    */
}