/* ============================================
   NEXUS88 THEME - responsive.css (moban-154)
   Network Connection Node Style - Responsive Styles
   ============================================ */

/* === TABLET BREAKPOINT: 1024px === */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

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

    .logo img {
        height: 40px;
    }

    .header-time {
        font-size: 12px;
    }

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

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

    .nexus-hero {
        min-height: 500px;
    }

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

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

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

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

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

    .network-core {
        right: 30px;
        width: 150px;
        height: 150px;
    }

    .core-node-1 {
        border-width: 0 38px 60px 38px;
        left: 38px;
    }

    .core-node-2 {
        border-width: 60px 38px 0 38px;
        left: 38px;
    }

    .core-node-3 {
        border-width: 38px 0 38px 60px;
        top: 38px;
    }

    .core-node-4 {
        border-width: 38px 60px 38px 0;
        top: 38px;
    }

    .core-node-5 {
        border-width: 0 30px 45px 30px;
        top: 15px;
        left: 45px;
    }

    .core-node-6 {
        border-width: 45px 30px 0 30px;
        bottom: 15px;
        left: 45px;
    }

    .core-inner-glow {
        width: 60px;
        height: 60px;
    }

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

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

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

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

    .nexus-promos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

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

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

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

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

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

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

    .floating-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: #0D0D0D;
        border-top: 1px solid rgba(25, 118, 210, 0.3);
        padding: 8px 0;
        gap: 15px;
    }

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

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

    .site-footer {
        padding-bottom: 80px;
    }
}

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

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

    .header-time {
        display: none;
    }

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

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 6px 12px;
        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: #0D0D0D;
        border: 1px solid rgba(25, 118, 210, 0.3);
        z-index: 999;
        max-height: 70vh;
        overflow-y: auto;
    }

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

    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(25, 118, 210, 0.1);
    }

    .nav-link:hover {
        background: rgba(25, 118, 210, 0.15);
    }

    /* Hero */
    .nexus-hero {
        min-height: 450px;
    }

    .hero-inner-content {
        max-width: 100%;
        padding: 30px 20px;
    }

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

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

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

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

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

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

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

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

    .btn-blue-primary,
    .btn-outline-blue {
        padding: 12px 25px;
        font-size: 14px;
        text-align: center;
    }

    .network-core {
        display: none;
    }

    .circuit-lines {
        opacity: 0.5;
    }

    /* Star Games */
    .nexus-star-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .nexus-star-game-icon i {
        font-size: 32px;
    }

    .nexus-star-game-card h3 {
        font-size: 16px;
    }

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

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

    .nexus-grid-node {
        padding: 20px 10px;
    }

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

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

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

    .nexus-feature-card {
        padding: 25px 20px;
    }

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

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

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

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

    .nexus-stat-card {
        padding: 25px 15px;
    }

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

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

    /* Promos */
    .nexus-promos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .nexus-promo-inner h3 {
        font-size: 16px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /* Category */
    .category-header {
        padding: 15px 0;
    }

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

    .provider-tabs {
        gap: 8px;
    }

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

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

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

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

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

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

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

    .license-icons {
        gap: 20px;
    }

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

    .section-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

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

    .view-more-btn {
        padding: 10px 25px;
        font-size: 13px;
    }

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

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

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

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

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

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

    .notification-bar {
        padding: 6px 0;
    }

    .notification-content {
        font-size: 11px;
    }
}

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

    .header-top {
        gap: 8px;
    }

    .logo img {
        height: 35px;
    }

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

    .nexus-hero {
        min-height: 380px;
    }

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

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

    .hero-divider-line {
        width: 60px;
        margin: 10px 0;
    }

    .hero-description {
        font-size: 12px;
        margin-bottom: 15px;
    }

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

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

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

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

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

    .nexus-star-game-card {
        padding: 20px 15px;
        clip-path: none;
        border-radius: 12px;
    }

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

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

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

    .nexus-node-label {
        font-size: 10px;
    }

    /* Stats */
    .nexus-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

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

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

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

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

    .article-tags {
        flex-wrap: wrap;
    }

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 15px;
    }

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

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

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

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

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

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

    .pagination .nav-links {
        gap: 5px;
    }

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

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

    .announcement-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

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

    .provider-tabs {
        gap: 6px;
    }

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

    .cta-network-node {
        width: 45px;
        height: 45px;
    }

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

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

/* === SMALL MOBILE: 360px === */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

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

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

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

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

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

    .nexus-star-game-card {
        padding: 15px 10px;
    }

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

    .nexus-grid-node {
        padding: 12px 5px;
    }

    .nexus-node-label {
        font-size: 9px;
    }

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

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

    .article-card-title {
        padding: 10px;
        font-size: 13px;
        min-height: 50px;
    }

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

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

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

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

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

    .single-article {
        background: #fff;
        border: 1px solid #ccc;
        color: #000;
    }

    .article-title {
        color: #000;
    }

    .article-content {
        color: #333;
    }

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

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

    .circuit-line,
    .data-flow-effect,
    .notification-content {
        animation: none !important;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .nexus-hero {
        min-height: 350px;
    }

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

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

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

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