/* ============================================
   MEGAESPORT THEME - responsive.css (moban-158)
   Siêu Esports Giải Đấu Lớn - Responsive Styles
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1200px) === */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

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

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

    .mega-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mega-promos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

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

    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .hero-brand {
        font-size: 48px;
    }

    .hero-tagline {
        font-size: 24px;
    }

    .floating-sidebar {
        right: 10px;
    }

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

/* === TABLET PORTRAIT (max-width: 992px) === */
@media (max-width: 992px) {
    .content-area {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

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

    .tournament-grid-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

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

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

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

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

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

    .hero-brand {
        font-size: 42px;
    }

    .hero-tagline {
        font-size: 22px;
    }

    .hero-stats-row {
        gap: 25px;
    }

    .hero-stat-number {
        font-size: 30px;
    }

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

    .floating-sidebar {
        right: 8px;
    }

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

    .sidebar-label {
        display: none;
    }
}

/* === MOBILE LARGE (max-width: 768px) === */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .header-top {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .logo img {
        height: 40px;
    }

    .header-time {
        font-size: 14px;
        order: 3;
    }

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

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

    /* Navigation Mobile */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #D32F2F 0%, #B71C1C 100%);
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

    .nav-link {
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    /* Hero Mobile */
    .megaesport-hero {
        padding: 50px 15px;
        margin: 15px 0;
    }

    .hero-brand {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-stats-row {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 28px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-red-primary,
    .btn-outline-blue {
        padding: 12px 35px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Lightning bolts mobile */
    .lightning-bolt {
        width: 25px;
        height: 80px;
        opacity: 0.5;
    }

    /* Esports Games Mobile */
    .esports-games {
        padding: 40px 0;
    }

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

    .esports-game-card {
        padding: 25px 15px;
    }

    .esports-game-icon i {
        font-size: 36px;
    }

    .esports-game-card h3 {
        font-size: 20px;
    }

    /* Tournament Grid Mobile */
    .tournament-grid-section {
        padding: 40px 0;
        margin: 15px 0;
    }

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

    .tournament-grid-node {
        padding: 15px 10px;
    }

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

    .tournament-node-label {
        font-size: 14px;
    }

    /* Tournament Features Mobile */
    .tournament-features {
        padding: 40px 0;
    }

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

    .tournament-feature-card {
        padding: 25px 15px;
    }

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

    .tournament-feature-card h3 {
        font-size: 18px;
    }

    /* Stats Mobile */
    .mega-stats {
        padding: 40px 0;
        margin: 20px 0;
    }

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

    .mega-stat-card {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Promos Mobile */
    .mega-promos {
        padding: 40px 0;
    }

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

    .mega-promo-inner {
        padding: 25px 15px;
    }

    .mega-promo-inner h3 {
        font-size: 20px;
    }

    /* Footer CTA Mobile */
    .footer-cta-section {
        padding: 50px 15px;
        margin: 30px 0;
    }

    .footer-cta-section h2 {
        font-size: 28px;
    }

    .footer-cta-section p {
        font-size: 14px;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-main-btn {
        font-size: 18px;
        padding: 14px 40px;
        width: 100%;
        max-width: 300px;
    }

    /* News Mobile */
    .home-news-section {
        padding: 40px 0;
    }

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

    .home-news-placeholder {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .view-more-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Article Grid Mobile */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-card-thumb {
        height: 160px;
    }

    /* Single Article Mobile */
    .single-article {
        padding: 20px 15px;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

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

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

    /* Related Posts Mobile */
    .related-posts {
        padding: 20px 15px;
    }

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

    .related-item-thumb {
        height: 80px;
    }

    /* Category Mobile */
    .category-title {
        font-size: 28px;
    }

    .provider-tabs {
        gap: 6px;
    }

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

    /* Pagination Mobile */
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 30px 0 20px;
    }

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

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

    .footer-license-bar {
        padding: 20px 0;
    }

    .license-icons {
        gap: 15px;
    }

    .license-item i {
        font-size: 20px;
    }

    /* Page Mobile */
    .page-article {
        padding: 20px 15px;
    }

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

    /* 404 Mobile */
    .error-page {
        padding: 50px 15px;
    }

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

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

    .error-trophy-icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
    }

    .error-trophy-icon i {
        font-size: 32px;
    }

    /* Announcement Modal Mobile */
    .announcement-content {
        padding: 20px 15px;
        max-width: 95%;
    }

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

    .announcement-item {
        padding: 10px;
        gap: 8px;
    }

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

    .announcement-cta {
        padding: 10px 30px;
        font-size: 16px;
    }

    /* Notification Bar Mobile */
    .notification-bar {
        display: none;
    }

    /* Floating Sidebar Mobile */
    .floating-sidebar {
        right: 5px;
        gap: 6px;
    }

    .sidebar-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* === MOBILE SMALL (max-width: 480px) === */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Header Small */
    .logo img {
        height: 35px;
    }

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

    /* Hero Small */
    .megaesport-hero {
        padding: 40px 12px;
    }

    .hero-brand {
        font-size: 30px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-stats-row {
        gap: 15px;
    }

    .hero-stat-number {
        font-size: 24px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    /* Section Titles Small */
    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    /* Tournament Grid Small */
    .tournament-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tournament-grid-node {
        padding: 12px 8px;
    }

    .tournament-node-icon i {
        font-size: 18px;
    }

    .tournament-node-label {
        font-size: 12px;
    }

    /* Stats Small */
    .mega-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mega-stat-card {
        padding: 15px 8px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 10px;
    }

    /* Article Cards Small */
    .article-card-thumb {
        height: 140px;
    }

    .article-card-title {
        font-size: 16px;
        padding: 12px 12px 6px;
    }

    .article-card-meta {
        padding: 0 12px;
        font-size: 11px;
    }

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

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

    /* Single Article Small */
    .single-article {
        padding: 15px 12px;
    }

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

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

    /* Related Grid Small */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .related-item-thumb {
        height: 70px;
    }

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

    /* Category Small */
    .category-title {
        font-size: 24px;
    }

    .provider-tabs {
        gap: 5px;
    }

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

    /* Footer Small */
    .footer-columns-grid {
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 16px;
    }

    .footer-col ul li a {
        font-size: 12px;
    }

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

    .footer-social-links a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .license-icons {
        gap: 12px;
    }

    .license-item i {
        font-size: 18px;
    }

    .license-item span {
        font-size: 10px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    /* 404 Small */
    .error-code {
        font-size: 60px;
    }

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

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

    /* Announcement Small */
    .announcement-header-icon i {
        font-size: 36px;
    }

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

    .announcement-content {
        padding: 15px 12px;
    }

    .announcement-cta {
        padding: 8px 25px;
        font-size: 14px;
    }

    /* Floating Sidebar Small */
    .floating-sidebar {
        right: 3px;
        gap: 5px;
    }

    .sidebar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Page Small */
    .page-article {
        padding: 15px 12px;
    }

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

    .page-content {
        font-size: 13px;
    }

    /* Promos Small */
    .mega-promo-inner {
        padding: 20px 12px;
    }

    .mega-promo-inner h3 {
        font-size: 18px;
    }

    .mega-promo-inner p {
        font-size: 12px;
    }

    .promo-icon i {
        font-size: 32px;
    }

    /* Footer CTA Small */
    .footer-cta-section {
        padding: 40px 12px;
    }

    .footer-cta-section h2 {
        font-size: 24px;
    }

    .footer-cta-section p {
        font-size: 13px;
    }

    .cta-trophy-diamond {
        width: 50px;
        height: 50px;
    }

    /* Breadcrumb Small */
    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
    }

    /* Tags Small */
    .article-tags span {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* Scrollbar Small */
    ::-webkit-scrollbar {
        width: 6px;
    }
}

/* === MOBILE EXTRA SMALL (max-width: 360px) === */
@media (max-width: 360px) {
    .hero-brand {
        font-size: 26px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .hero-stat-number {
        font-size: 20px;
    }

    .btn-red-primary,
    .btn-outline-blue {
        padding: 10px 25px;
        font-size: 16px;
    }

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

    .esports-game-card {
        padding: 20px 12px;
    }

    .esports-game-icon i {
        font-size: 28px;
    }

    .tournament-grid-node {
        padding: 10px 6px;
    }

    .mega-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 22px;
    }

    .footer-cta-section h2 {
        font-size: 20px;
    }

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

    .floating-sidebar {
        display: none;
    }
}

/* === LANDSCAPE ORIENTATION === */
@media (max-height: 500px) and (orientation: landscape) {
    .megaesport-hero {
        padding: 30px 20px;
    }

    .hero-brand {
        font-size: 32px;
    }

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

    .error-page {
        padding: 30px 20px;
    }

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

/* === PRINT STYLES === */
@media print {
    .site-header,
    .main-navigation,
    .notification-bar,
    .floating-sidebar,
    .announcement-modal,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .container {
        max-width: 100%;
    }

    .single-article {
        background: none;
        border: none;
        padding: 0;
    }

    .article-title {
        color: #000;
    }

    .article-content {
        color: #333;
    }

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

/* === HIGH DPI DISPLAYS === */
@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;
    }

    .notification-content {
        animation: none;
    }
}

/* === DARK MODE PREFERENCE (already dark, but handle light preference) === */
@media (prefers-color-scheme: light) {
    body {
        background: #0A0A0A;
        color: #E8E8F0;
    }
}
