/* ============================================
   CYBERKING THEME - responsive.css (moban-157)
   Cyberpunk Crown Theme
   ============================================ */

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

    /* Cyber Crown */
    .cyber-crown {
        right: 20px;
        width: 150px;
        height: 150px;
        opacity: 0.5;
    }

    .crown-point-1 { border-width: 0 12px 30px 12px; left: 20px; }
    .crown-point-2 { border-width: 0 12px 38px 12px; left: 50px; }
    .crown-point-3 { border-width: 0 12px 45px 12px; left: 75px; }
    .crown-point-4 { border-width: 0 12px 38px 12px; left: 100px; }
    .crown-point-5 { border-width: 0 12px 30px 12px; left: 125px; }
    .crown-base { width: 140px; left: 10px; }

    /* Crown Star Games */
    .crown-star-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cyber Grid */
    .cyber-grid-row {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

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

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

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

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

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

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

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

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

    /* Header */
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

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

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

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

    .main-navigation .container {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        border: 1px solid rgba(0, 188, 212, 0.2);
        z-index: 999;
        padding: 10px 0;
    }

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

    .nav-item {
        width: 100%;
    }

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

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

    /* Notification Bar */
    .notification-content {
        font-size: 11px;
        gap: 30px;
    }

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

    .hero-inner-content {
        padding: 30px 15px;
    }

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

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

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

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

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

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

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

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

    /* Cyber Crown */
    .cyber-crown {
        display: none;
    }

    /* Section Titles */
    .section-title {
        font-size: 22px;
        letter-spacing: 2px;
        padding-top: 25px;
    }

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

    /* Crown Star Games */
    .crown-star-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .crown-star-game-card {
        padding: 20px;
    }

    /* Cyber Grid */
    .cyber-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cyber-grid-node {
        padding: 15px 8px;
    }

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

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

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

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

    /* King Stats */
    .king-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
    }

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

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

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

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

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

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

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

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

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

    /* Content Area */
    .content-area {
        flex-direction: column;
    }

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

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

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

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

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

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

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

    .article-nav-prev,
    .article-nav-next {
        max-width: 100%;
    }

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

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

    /* Category Header */
    .category-title {
        font-size: 22px;
    }

    /* Provider Tabs */
    .provider-tabs {
        gap: 6px;
    }

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

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

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

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

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

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

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

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

    /* Floating Sidebar - bottom bar on mobile */
    .floating-sidebar {
        position: fixed;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        border-top: 1px solid rgba(0, 188, 212, 0.2);
        padding: 5px 0;
        gap: 0;
    }

    .sidebar-btn {
        width: 48px;
        height: 40px;
        border-radius: 0;
        font-size: 16px;
    }

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

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

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

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

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

    /* View More */
    .view-more-btn {
        max-width: 100%;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 11px;
        padding: 10px 0;
    }
}

/* === MOBILE SMALL (max-width: 480px) === */
@media (max-width: 480px) {
    /* Header */
    .logo img {
        height: 35px;
    }

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

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

    /* Hero */
    .cyberking-hero {
        min-height: 400px;
    }

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

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

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

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

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

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

    .hero-divider-line {
        width: 80px;
    }

    /* Section Titles */
    .section-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

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

    /* Crown Star Games */
    .crown-star-game-card {
        padding: 15px;
    }

    .crown-star-game-icon i {
        font-size: 30px;
    }

    .crown-star-game-card h3 {
        font-size: 17px;
    }

    .crown-star-game-card p {
        font-size: 12px;
    }

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

    .cyber-grid-node {
        padding: 12px 6px;
        gap: 6px;
    }

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

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

    /* Throne Features */
    .throne-feature-card {
        padding: 20px 12px;
    }

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

    .throne-feature-card h3 {
        font-size: 16px;
    }

    .throne-feature-card p {
        font-size: 12px;
    }

    /* King Stats */
    .king-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .king-stat-card {
        padding: 18px 10px;
    }

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

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

    .stat-crown-decoration {
        font-size: 12px;
    }

    /* Crown Promos */
    .crown-promos-grid {
        gap: 12px;
    }

    .crown-promo-inner h3 {
        font-size: 15px;
    }

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

    .btn-promo {
        padding: 8px 20px;
        font-size: 12px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 30px 10px;
    }

    .footer-cta-inner h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

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

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

    /* News */
    .article-card-thumb {
        height: 140px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .category-desc {
        font-size: 12px;
    }

    /* Provider Tabs */
    .provider-tab {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Article Grid Items */
    .article-card-title a {
        font-size: 14px;
    }

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

    /* Pagination */
    .pagination {
        padding: 20px 0;
    }

    .pagination .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Footer */
    .site-footer {
        padding: 25px 0 15px;
    }

    .footer-brand-text {
        font-size: 12px;
    }

    .footer-col ul li {
        margin-bottom: 6px;
    }

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

    .footer-license-bar h4 {
        font-size: 12px;
    }

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

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

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

    /* Error Page */
    .error-page {
        padding: 50px 15px;
    }

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

    .error-title {
        font-size: 16px;
        letter-spacing: 2px;
    }

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

    .error-crown-icon {
        width: 60px;
        height: 60px;
    }

    /* Announcement Modal */
    .announcement-content {
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

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

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

    .announcement-list {
        gap: 6px;
    }

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

    /* Bottom sidebar spacing */
    body {
        padding-bottom: 50px;
    }
}

/* === VERY SMALL SCREENS (max-width: 360px) === */
@media (max-width: 360px) {
    .hero-brand {
        font-size: 24px;
        letter-spacing: 2px;
    }

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

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

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

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

    .crown-star-game-card h3 {
        font-size: 15px;
    }

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

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

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

/* === LANDSCAPE ORIENTATION ON MOBILE === */
@media (max-width: 768px) and (orientation: landscape) {
    .cyberking-hero {
        min-height: 350px;
    }

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

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

    .floating-sidebar {
        position: fixed;
        right: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        width: auto;
        border-top: none;
        border-left: 1px solid rgba(0, 188, 212, 0.2);
        padding: 5px;
    }

    .sidebar-btn {
        width: 40px;
        height: 40px;
        border-radius: 0;
    }

    body {
        padding-bottom: 0;
    }
}

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

    .notification-content {
        animation: none;
    }

    .cyber-crown {
        animation: none;
    }

    .neon-sweep-effect {
        animation: none;
    }
}

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

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

    .article-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

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

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

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

    .article-content {
        color: #333;
    }
}

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

    .crown-star-games-grid {
        gap: 25px;
    }

    .throne-features-grid {
        gap: 25px;
    }

    .king-stats-grid {
        gap: 25px;
    }

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

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