/* ============================================
   HIGHLIMIT - Responsive Stylesheet (moban-171)
   ============================================ */

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

  .hero-brand {
    font-size: 52px;
    letter-spacing: 6px;
  }

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

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

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

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

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

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .floating-sidebar {
    right: 8px;
  }

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

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

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

  .header-time {
    display: none;
  }

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

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

  .mobile-menu-toggle {
    display: block;
    margin: 10px 0;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

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

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

  .nav-link:hover {
    border-bottom-color: rgba(255,215,0,0.1);
    background: rgba(74,0,0,0.3);
  }

  .content-area {
    flex-direction: column;
    padding: 20px 0;
  }

  .highlimit-hero {
    padding: 60px 25px;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .floating-sidebar {
    bottom: 10px;
    top: auto;
    right: 10px;
    transform: none;
    flex-direction: row;
    gap: 6px;
  }

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

  .single-article {
    padding: 20px;
  }

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

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

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

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

  .container {
    padding: 0 12px;
  }

  .logo img {
    height: 38px;
  }

  .btn-login {
    display: none;
  }

  .btn-demo {
    display: none;
  }

  .highlimit-hero {
    padding: 50px 20px;
    border-radius: 12px;
  }

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

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

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

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

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

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

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

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

  .btn-gold-primary {
    padding: 12px 30px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .btn-outline-gold {
    padding: 12px 30px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .chip-stack {
    display: none;
  }

  .star-games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .star-game-icon i {
    font-size: 32px;
    width: 55px;
    height: 55px;
    line-height: 55px;
  }

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

  .games-grid-node {
    padding: 18px 10px;
  }

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

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

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

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

  .feature-icon i {
    font-size: 28px;
    width: 50px;
    height: 50px;
    line-height: 50px;
  }

  .highlimit-stats {
    padding: 40px 15px;
  }

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

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

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

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

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

  .footer-cta-inner {
    padding: 40px 20px;
  }

  .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 30px;
  }

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

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

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

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

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

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

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

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

  .provider-tabs {
    gap: 6px;
  }

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

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

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

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

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

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

  .license-icons {
    gap: 15px;
  }

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

  .floating-sidebar {
    flex-wrap: wrap;
    justify-content: flex-end;
    right: 8px;
    bottom: 8px;
  }

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

  .single-article {
    padding: 15px;
    border-radius: 8px;
  }

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

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

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

  .article-tags {
    gap: 6px;
  }

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

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

  .page-article {
    padding: 15px;
  }

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

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

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

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

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

  .announcement-content {
    padding: 30px 20px;
  }

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

  .announcement-header-icon i {
    font-size: 36px;
    width: 60px;
    height: 60px;
    line-height: 60px;
  }

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

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

  .notification-content {
    gap: 20px;
  }

  .notification-content span {
    font-size: 12px;
  }
}

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

  .container {
    padding: 0 10px;
  }

  .logo img {
    height: 32px;
  }

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

  .highlimit-hero {
    padding: 40px 15px;
  }

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

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

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

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

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

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

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

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

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

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

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

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

  .breadcrumb {
    font-size: 11px;
    gap: 6px;
  }

  .article-card-title {
    font-size: 15px;
    padding: 10px 10px 5px;
    min-height: 40px;
  }

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

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

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

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

  .floating-sidebar {
    bottom: 5px;
    right: 5px;
  }

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

  .single-article {
    padding: 12px;
  }

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

  .error-chip {
    width: 70px;
    height: 70px;
  }

  .error-chip-inner {
    width: 40px;
    height: 40px;
  }

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

  .announcement-content {
    padding: 25px 15px;
    max-width: 95%;
  }

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

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

  .provider-tabs {
    gap: 4px;
  }

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

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

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

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

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

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

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

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

  .games-grid-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

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

  .floating-sidebar {
    flex-direction: column;
    right: 5px;
    bottom: 5px;
  }

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

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

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

  .announcement-content {
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
  }

  .floating-sidebar {
    flex-direction: row;
    top: auto;
    bottom: 5px;
    transform: none;
  }
}

/* === HIGH DPI / RETINA === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

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

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

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

  .article-title,
  .article-content h2,
  .article-content h3 {
    color: #000;
  }

  .article-content {
    color: #333;
  }

  a {
    color: #333;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .notification-content {
    animation: none;
  }
}

/* === DARK MODE OVERRIDE (already dark by default) === */
@media (prefers-color-scheme: light) {
  body {
    background-color: #0D0D0D;
    color: #E8E8E8;
  }
}
