/* ============================================
   AQUABET - Responsive CSS
   Mobile-first responsive breakpoints
   ============================================ */

/* === Tablet Landscape (max-width: 1199px) === */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-link {
        padding: 12px 12px;
        font-size: 12px;
    }
}

/* === Tablet Portrait (max-width: 991px) === */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-time {
        display: none;
    }

    .header-btn-group {
        gap: 8px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 8px 16px;
        font-size: 12px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0, 188, 212, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    .hero-swiper {
        height: 300px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        width: 55px;
        height: 55px;
    }

    .category-icon i {
        font-size: 22px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .content-area {
        flex-direction: column;
    }

    .floating-sidebar {
        right: 10px;
    }

    .sidebar-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

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

    .footer-disclaimer {
        flex-direction: column;
        text-align: center;
    }

    .footer-age-disclaimer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* === Mobile Large (max-width: 767px) === */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 12px;
    }

    .header-top {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    .header-btn-group {
        gap: 6px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 7px 12px;
        font-size: 11px;
    }

    .hero-swiper {
        height: 220px;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .hero-swiper .swiper-button-prev::after,
    .hero-swiper .swiper-button-next::after {
        font-size: 13px;
    }

    .game-categories {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 18px 12px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .category-icon i {
        font-size: 20px;
    }

    .category-card h3 {
        font-size: 14px;
    }

    .category-card p {
        font-size: 11px;
    }

    .featured-games {
        padding: 40px 0;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .why-choose {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 25px 20px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }

    .feature-icon i {
        font-size: 24px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-card-title {
        font-size: 15px;
    }

    .latest-articles {
        padding: 40px 0;
    }

    .partners-section {
        padding: 40px 0;
    }

    .single-article {
        padding: 20px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-meta {
        gap: 12px;
    }

    .article-meta span {
        font-size: 12px;
    }

    .article-content {
        font-size: 15px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-item-title {
        font-size: 12px;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    .category-header {
        padding: 18px;
    }

    .category-title {
        font-size: 20px;
    }

    .provider-tabs {
        padding: 10px;
        gap: 6px;
    }

    .provider-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-article {
        padding: 20px;
    }

    .page-title {
        font-size: 22px;
    }

    .error-page {
        padding: 50px 15px;
    }

    .error-code {
        font-size: 60px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-desc {
        font-size: 14px;
    }

    .error-aquarium {
        width: 120px;
        height: 120px;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-disclaimer {
        padding: 18px;
    }

    .floating-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 188, 212, 0.2);
        padding: 8px 10px;
        gap: 6px;
    }

    .sidebar-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .sidebar-label {
        display: none !important;
    }

    .back-to-top {
        bottom: 70px;
        right: 10px;
        width: 42px;
        height: 42px;
    }

    .announcement-content {
        padding: 20px;
        width: 95%;
    }

    .announcement-title {
        font-size: 18px;
    }

    .announcement-header-icon i {
        font-size: 36px;
    }

    .announcement-item {
        padding: 10px 12px;
    }

    .announcement-text {
        font-size: 12px;
    }

    body {
        padding-bottom: 60px;
    }
}

/* === Mobile Small (max-width: 575px) === */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }

    .header-top {
        justify-content: center;
        text-align: center;
    }

    .logo {
        flex: 0 0 auto;
    }

    .header-btn-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 8px 14px;
    }

    .hero-swiper {
        height: 180px;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }

    .section-title {
        font-size: 18px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card-title {
        font-size: 12px;
        padding: 8px;
    }

    .play-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .article-card-meta {
        gap: 8px;
    }

    .article-card-meta span {
        font-size: 11px;
    }

    .article-card-excerpt {
        font-size: 12px;
    }

    .related-posts {
        padding: 20px;
    }

    .related-posts-title {
        font-size: 18px;
    }

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

    .breadcrumb {
        font-size: 12px;
        padding: 15px 0;
    }

    .single-article {
        padding: 15px;
        border-radius: 12px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-tags {
        gap: 6px;
    }

    .article-tags span {
        font-size: 11px;
        padding: 4px 8px;
    }

    .pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer-18plus {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .age-badge {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .dmca-badge-img {
        max-width: 80px;
    }

    .btn-aqua-primary {
        padding: 12px 24px;
        font-size: 13px;
    }

    .notification-content span {
        font-size: 12px;
    }
}

/* === Mobile Extra Small (max-width: 400px) === */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }

    .logo img {
        height: 35px;
    }

    .header-btn-group {
        gap: 4px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 6px 10px;
        font-size: 10px;
    }

    .hero-swiper {
        height: 150px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .categories-grid {
        gap: 6px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon i {
        font-size: 16px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .category-card p {
        font-size: 10px;
    }

    .games-grid {
        gap: 6px;
    }

    .article-card-title {
        font-size: 14px;
        padding: 10px 10px 5px;
    }

    .article-card-meta {
        padding: 0 10px 5px;
    }

    .article-card-excerpt {
        padding: 0 10px 8px;
    }

    .article-card-more {
        padding: 0 10px 10px;
        font-size: 12px;
    }

    .single-article {
        padding: 12px;
    }

    .article-title {
        font-size: 18px;
    }

    .error-code {
        font-size: 50px;
    }

    .error-title {
        font-size: 18px;
    }

    .announcement-content {
        padding: 15px;
    }

    .announcement-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .sidebar-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* === Print Styles === */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .floating-sidebar,
    .notification-bar,
    .announcement-modal,
    .back-to-top,
    .hero-banner,
    .game-categories,
    .featured-games,
    .why-choose,
    .partners-section,
    .related-posts {
        display: none !important;
    }

    .article-content {
        color: #000;
    }

    .article-title,
    .page-title {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* === Landscape Orientation (max-height: 500px) === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-swiper {
        height: 200px;
    }

    .announcement-content {
        max-height: 80vh;
        overflow-y: auto;
    }

    .floating-sidebar {
        gap: 4px;
    }

    .sidebar-btn {
        width: 38px;
        height: 38px;
    }
}

/* === High DPI / Retina === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-brand-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* === 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;
    }
}

/* === Dark Mode Preference (system already dark) === */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
    }
}
