/* ============================================
   VIKING88 THEME - responsive.css (moban-85)
   3 Breakpoints: 1024px, 768px, 480px
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

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

    .header-time {
        display: none;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    /* Hero */
    .viking-hero {
        min-height: 500px;
    }

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

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

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

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

    /* Longship */
    .longship-hull {
        width: 150px;
        height: 30px;
    }

    .longship-mast {
        height: 90px;
    }

    .longship-sail-cloth {
        width: 60px;
        height: 75px;
        bottom: 45px;
    }

    .longship-dragon-head {
        width: 25px;
        height: 45px;
    }

    /* Rune Games */
    .rune-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Shield Grid */
    .shield-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .shield-node {
        flex: 0 0 calc(25% - 10px);
        min-width: 100px;
    }

    /* Viking Features */
    .viking-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Viking Stats */
    .viking-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Viking Promos */
    .viking-promos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .viking-promos-grid .viking-promo-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

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

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

    .home-news-grid .article-card:last-child {
        display: none;
    }

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

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

/* === TABLET PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

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

    .main-navigation .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1A2332;
        border-top: 1px solid rgba(43, 76, 126, 0.3);
        z-index: 100;
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(43, 76, 126, 0.1);
    }

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

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

    /* Hero */
    .viking-hero {
        min-height: 450px;
        margin: 10px 0;
    }

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

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

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

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

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

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

    .btn-viking-primary,
    .btn-outline-viking {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 25px;
    }

    /* Longship */
    .longship {
        transform: translateX(-50%) scale(0.7);
    }

    .rune-stones {
        gap: 20px;
    }

    .rune-stone {
        font-size: 24px;
    }

    .shield-wall {
        gap: 8px;
    }

    .shield {
        width: 30px;
        height: 30px;
    }

    /* Fjord */
    .fjord-mountain {
        width: 50%;
        height: 60%;
    }

    /* Section Title */
    .section-title {
        font-size: 22px;
    }

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

    /* Rune Games */
    .rune-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rune-game-card {
        padding: 20px;
    }

    /* Shield Grid */
    .shield-row {
        gap: 8px;
    }

    .shield-node {
        flex: 0 0 calc(50% - 8px);
        padding: 15px;
    }

    .node-shield {
        width: 40px;
        height: 40px;
    }

    .node-shield i {
        font-size: 16px;
    }

    /* Viking Features */
    .viking-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .viking-feature-card {
        padding: 20px;
    }

    /* Viking Stats */
    .viking-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    /* Viking Promos */
    .viking-promos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .viking-promos-grid .viking-promo-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .viking-promo-inner {
        padding: 20px;
    }

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

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

    .cta-features {
        flex-direction: column;
        gap: 10px;
    }

    /* News */
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-grid .article-card:last-child {
        display: block;
    }

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

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

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

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

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

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

    .license-icons {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Floating Sidebar */
    .floating-sidebar {
        bottom: 10px;
        top: auto;
        transform: none;
        right: 10px;
        flex-direction: row;
        gap: 5px;
    }

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

    /* Notification */
    .notification-content {
        gap: 30px;
    }

    /* Category */
    .provider-tabs {
        gap: 5px;
    }

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

    /* Error Page */
    .error-code {
        font-size: 56px;
    }

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

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

    .container {
        padding: 0 10px;
    }

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

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

    .btn-login {
        display: none;
    }

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

    /* Hero */
    .viking-hero {
        min-height: 400px;
        border-radius: 8px;
    }

    .hero-brand {
        font-size: 28px;
        letter-spacing: 3px;
    }

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

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

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

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

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

    /* Longship */
    .longship {
        transform: translateX(-50%) scale(0.5);
    }

    .rune-stones {
        gap: 15px;
    }

    .rune-stone {
        font-size: 20px;
    }

    .shield-wall {
        gap: 5px;
    }

    .shield {
        width: 25px;
        height: 25px;
    }

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

    .rune-games,
    .shield-grid,
    .viking-features,
    .viking-stats,
    .viking-promos,
    .home-news-section {
        padding: 40px 0;
    }

    /* Shield Grid */
    .shield-node {
        flex: 0 0 calc(50% - 5px);
        padding: 10px;
        min-width: 80px;
    }

    .node-shield {
        width: 35px;
        height: 35px;
    }

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

    /* Viking Stats */
    .viking-stats-grid {
        grid-template-columns: 1fr;
    }

    .viking-stat-card {
        padding: 20px;
    }

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

    /* Footer CTA */
    .footer-cta-inner h2 {
        font-size: 20px;
    }

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

    .cta-main-btn {
        font-size: 14px;
        padding: 12px 30px;
    }

    /* Article Card */
    .article-card-thumb {
        height: 150px;
    }

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

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

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

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

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

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

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

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

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

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

    .announcement-item {
        padding: 8px;
    }

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

    /* View More */
    .view-more-btn {
        max-width: 160px;
        padding: 10px 25px;
        font-size: 13px;
    }

    /* Error */
    .error-code {
        font-size: 48px;
    }

    .error-shield i {
        font-size: 48px;
    }

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

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

    /* Floating Sidebar Mobile */
    .floating-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: #1A2332;
        padding: 8px;
        border-top: 1px solid rgba(43, 76, 126, 0.3);
        gap: 8px;
        z-index: 999;
    }

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

    .sidebar-btn[data-tooltip]:hover::after {
        display: none;
    }

    /* Add bottom padding to body for fixed sidebar */
    body {
        padding-bottom: 60px;
    }
}

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

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

    .hero-stats-row {
        flex-direction: column;
        gap: 10px;
    }

    .btn-viking-primary,
    .btn-outline-viking {
        font-size: 13px;
        padding: 10px 20px;
    }

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

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

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

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

    a {
        color: #000;
    }
}

/* === PREFERS 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 SUPPORT === */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as designed */
    body {
        background: #0D1117;
        color: #B0B0B0;
    }
}

/* === HIGH CONTRAST === */
@media (prefers-contrast: high) {
    .rune-game-card,
    .viking-feature-card,
    .viking-stat-card,
    .viking-promo-card,
    .article-card,
    .shield-node {
        border-width: 2px;
        border-color: #2B4C7E;
    }

    .nav-link {
        color: #fff;
    }

    .section-title {
        color: #4A7BC8;
    }
}

/* === LANDSCAPE ORIENTATION ON SMALL DEVICES === */
@media (max-height: 500px) and (orientation: landscape) {
    .viking-hero {
        min-height: 350px;
    }

    .hero-inner-content {
        padding: 20px;
    }

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

    .hero-cta-group {
        flex-direction: row;
    }

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

/* === LARGE SCREENS === */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

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

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

    .rune-games-grid {
        gap: 30px;
    }

    .viking-features-grid {
        gap: 30px;
    }
}
