/* ====================================================
    Responsive
==================================================== */

/* Extra large devices (large desktops) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large devices (desktops) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium devices (tablets, less than 1200px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Global */
    h1 {
        font-size: 30px;
    }
    h2 {
        font-size: 26px;
    }
    h3 {
        font-size: 22px;
    }
    h4 {
        font-size: 20px;
    }
    h5 {
        font-size: 18px;
    }
    h6 {
        font-size: 16px;
    }

    /* Header Adjustments */
    .site-logo-wrap {
        padding: 15px 0;
    }
    
    .site-logo img {
        max-height: 45px;
    }
}

/* Small devices (landscape tablets, less than 992px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Global */
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 26px;
    }
    h2 {
        font-size: 22px;
    }
    h3 {
        font-size: 20px;
    }
    h4 {
        font-size: 18px;
    }
    h5 {
        font-size: 16px;
    }
    h6 {
        font-size: 15px;
    }
    p {
        font-size: 14px;
    }

    /* Header Adjustments */
    .site-logo-wrap {
        padding: 10px 0;
    }
    
    .site-logo img {
        max-height: 40px;
    }
    
    /* Section Spacing */
    .section-padding {
        padding: 60px 0;
    }
    
    .section-margin {
        margin: 60px 0;
    }
}

/* Extra small devices (portrait phones, less than 768px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Global */
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    h3 {
        font-size: 18px;
    }
    h4 {
        font-size: 17px;
    }
    h5 {
        font-size: 16px;
    }
    h6 {
        font-size: 14px;
    }
    p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Header Adjustments */
    .site-logo-wrap {
        padding: 10px 0;
    }
    
    .site-logo img {
        max-height: 35px;
    }
    
    /* Section Spacing */
    .section-padding {
        padding: 40px 0;
    }
    
    .section-margin {
        margin: 40px 0;
    }
    
    /* Button Adjustments */
    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* Game Grid Adjustments */
    .game-features {
        gap: 10px;
    }
    
    .feature-card {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
}

/* Very small devices (small phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header Adjustments */
    .site-logo img {
        max-height: 30px;
    }
    
    /* Mobile Menu Adjustments */
    .mobile-menu ul li a {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .mobile-menu .submenu {
        padding-left: 15px;
    }
    
    /* Game Grid Adjustments */
    .game-features {
        margin: 15px 0;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    /* Table Adjustments */
    .controls-table th,
    .controls-table td {
        padding: 6px;
        font-size: 13px;
    }
    
    /* Button Adjustments */
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    /* Enhance touch targets */
    .btn,
    .mobile-menu ul li a,
    .mobile-menu-trigger,
    .mobile-menu-close {
        min-height: 44px;
        line-height: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    /* Remove hover states */
    .btn:hover,
    .mobile-menu ul li a:hover {
        opacity: 1;
    }
    
    /* Add active states */
    .btn:active,
    .mobile-menu ul li a:active {
        opacity: 0.7;
    }
}
