/* ============================================================
   CASINO88 WordPress Theme - Responsive Stylesheet
   ============================================================ */

/* ============================================================
   Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .header-time {
        display: none;
    }

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

    .nav-icon {
        font-size: 11px;
        margin-right: 4px;
    }

    .hero-slider .swiper-slide img {
        height: 300px;
    }

    .hot-games-section {
        padding: 20px 0;
    }

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

    .sidebar-area {
        width: 100%;
    }

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

    .download-section {
        padding: 30px 20px;
    }

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

    .notification-content {
        font-size: 12px;
        gap: 30px;
        line-height: 1.4;
    }

    .floating-sidebar {
        right: 8px;
    }

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

    .sidebar-label {
        display: none;
    }

    /* Poker Fan */
    .poker-card { width: 90px; height: 135px; font-size: 36px; }
    .poker-card .card-value { font-size: 18px; }
    .poker-card:nth-child(1) { transform: rotate(-20deg) translateX(-75px); }
    .poker-card:nth-child(2) { transform: rotate(-10deg) translateX(-37px); }
    .poker-card:nth-child(4) { transform: rotate(10deg) translateX(37px); }
    .poker-card:nth-child(5) { transform: rotate(20deg) translateX(75px); }

    /* Chips */
    .chips-row { gap: 30px; }

    /* VIP */
    .vip-entrance { padding: 30px; }
}

/* ============================================================
   Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    .site-header {
        position: relative;
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .header-btn-group {
        width: auto;
        justify-content: center;
    }

    .header-time {
        display: none;
    }

    .main-navigation {
        padding: 0;
    }

    .mobile-menu-toggle {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #4A1010;
        border-radius: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: 60vh;
        overflow-y: auto;
    }

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

    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
        border-bottom: 1px solid #2D0A0A;
    }

    .nav-item.has-dropdown .nav-link::after {
        margin-left: auto;
    }

    .nav-dropdown,
    .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-top: none;
        box-shadow: none;
        min-width: 100%;
        background: #2D0A0A;
    }

    .nav-item.has-dropdown.open .nav-dropdown,
    .nav-item.has-dropdown.open .sub-menu {
        display: block;
    }

    .nav-dropdown li a,
    .sub-menu li a {
        padding-left: 30px;
    }

    .hero-slider {
        border-radius: 0;
        margin-bottom: 20px;
    }

    .hero-slider .swiper-slide img {
        height: 200px;
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

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

    .download-section {
        padding: 25px 15px;
    }

    .download-section h2 {
        font-size: 20px;
    }

    .download-section p {
        font-size: 13px;
    }

    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .sidebar-area {
        width: 100%;
    }

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

    .provider-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .provider-tab {
        flex-shrink: 0;
    }

    .single-article {
        padding: 20px 15px;
    }

    .article-header h1 {
        font-size: 22px;
    }

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

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

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

    .floating-sidebar {
        right: 5px;
        gap: 4px;
    }

    .sidebar-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
        border-radius: 8px;
    }

    .sidebar-label {
        display: none;
    }

    /* Poker Fan Mobile */
    .cards-fan { height: 200px; padding: 20px 0; }
    .poker-card { width: 60px; height: 90px; font-size: 24px; }
    .poker-card .card-value { font-size: 14px; }
    .poker-card:nth-child(1) { transform: rotate(-20deg) translateX(-50px); }
    .poker-card:nth-child(2) { transform: rotate(-10deg) translateX(-25px); }
    .poker-card:nth-child(4) { transform: rotate(10deg) translateX(25px); }
    .poker-card:nth-child(5) { transform: rotate(20deg) translateX(50px); }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 14px; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-cta, .hero-cta-outline { width: 80%; text-align: center; }

    /* Chips Mobile */
    .chips-row { flex-direction: column; gap: 30px; align-items: center; }
    .chip-stack-visual { height: 80px; }

    /* VIP Mobile */
    .vip-entrance { padding: 20px; }
    .vip-title { font-size: 20px; }
    .vip-features { flex-direction: column; gap: 15px; }

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

    /* Announcement */
    .announcement-content { padding: 20px; }
    .announcement-title { font-size: 15px; }
    .announcement-item { font-size: 12px; padding: 10px 12px; }
    .announcement-cta { padding: 10px 30px; font-size: 14px; }
}

/* ============================================================
   Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

    .container {
        padding: 0 10px;
    }

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

    .logo img {
        max-height: 35px;
    }

    .poster-section {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

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

    .nav-links a,
    .nav-links .current,
    .nav-links span.page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .floating-sidebar {
        bottom: 80px;
        top: auto;
        transform: none;
        right: 5px;
    }

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

    .article-header h1 {
        font-size: 20px;
    }

    .single-article {
        padding: 15px 12px;
    }

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

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

    .footer-social-links a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

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

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

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

    /* Poker Fan Small */
    .poker-card { width: 50px; height: 75px; font-size: 20px; }
    .poker-card .card-value { font-size: 12px; }
    .poker-card:nth-child(1) { transform: rotate(-15deg) translateX(-40px); }
    .poker-card:nth-child(2) { transform: rotate(-8deg) translateX(-20px); }
    .poker-card:nth-child(4) { transform: rotate(8deg) translateX(20px); }
    .poker-card:nth-child(5) { transform: rotate(15deg) translateX(40px); }
    .hero-title { font-size: 26px; letter-spacing: 1px; }
    .cards-fan:hover .poker-card { transform: rotate(0deg) translateX(0) translateY(-5px); }
}

/* === 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);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  .article-card {
    margin-bottom: 20px;
  }
  .content-area {
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  h1, .hero-title {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
}
