/* ============================================
   COINRUSH THEME - responsive.css (moban-80)
   ============================================ */

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

    /* Vault */
    .vault-door {
        right: 20px;
    }

    .vault-outer-ring {
        width: 120px;
        height: 120px;
    }

    .vault-inner-ring {
        width: 75px;
        height: 75px;
    }

    .vault-handle {
        width: 30px;
        height: 30px;
    }

    .vault-spokes {
        width: 100px;
        height: 100px;
    }

    .vault-spokes span {
        height: 38px;
    }

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

    /* Vault Grid */
    .vault-grid-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .vault-grid-node {
        flex: 0 0 calc(25% - 10px);
    }

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

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

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

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

    /* Footer */
    .footer-columns-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);
    }

    /* 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 {
        padding: 8px 0;
    }

    .logo img {
        height: 40px;
    }

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

    .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;
        width: 100%;
        padding: 10px 0;
    }

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

    .nav-item {
        width: 100%;
    }

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

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

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

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

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

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

    .hero-stat {
        flex: 0 0 calc(50% - 15px);
    }

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

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

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

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

    /* Vault - smaller */
    .vault-door {
        right: 10px;
    }

    .vault-outer-ring {
        width: 90px;
        height: 90px;
        border-width: 5px;
    }

    .vault-inner-ring {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }

    .vault-handle {
        width: 22px;
        height: 22px;
    }

    .vault-spokes {
        width: 75px;
        height: 75px;
    }

    .vault-spokes span {
        height: 28px;
        width: 3px;
    }

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

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

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

    .gold-game-card {
        padding: 25px;
    }

    /* Vault Grid */
    .vault-grid-map {
        padding: 10px;
    }

    .vault-grid-row {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .vault-grid-node {
        flex: 0 0 auto;
        min-width: 80px;
    }

    .node-coin {
        width: 42px;
        height: 42px;
    }

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

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

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

    .vault-feature-card {
        padding: 25px;
    }

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

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

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

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

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

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

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

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

    .cta-main-btn {
        font-size: 16px;
        padding: 14px 40px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .announcement-item {
        padding: 8px;
    }

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

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

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

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

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

/* === MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    /* Header */
    .header-btn-group .btn-demo {
        display: none;
    }

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

    .logo img {
        height: 35px;
    }

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

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

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

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

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

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

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

    /* Vault - tiny */
    .vault-door {
        display: none;
    }

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

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

    /* Gold Games */
    .gold-game-icon i {
        font-size: 30px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /* Swiper */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    /* Coin rain - reduce on mobile */
    .coin-drop:nth-child(n+8) {
        display: none;
    }
}

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

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

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

/* === Mobile Optimization Additions === */
@media (max-width: 768px) {
  .nav-link, .btn-login, .btn-register, .btn-demo,
  a, button, .sidebar-btn {
    min-height: 44px;
    min-width: 44px;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .article-card {
    margin-bottom: 20px;
  }
  .content-area {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  h1, .hero-title {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
}
