/* ============================================================
   POKERKING Theme - Responsive Stylesheet
   ============================================================ */

/* === Tablet Landscape (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

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

    .floating-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: var(--green-dark);
        padding: 8px;
        border-top: 2px solid var(--gold);
        gap: 10px;
    }

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

    .sidebar-label {
        display: none;
    }

    /* Hero */
    .pokerking-hero {
        padding: 50px 25px;
    }

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

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

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

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

    /* Floating cards */
    .floating-card {
        width: 40px;
        height: 56px;
    }

    .floating-card span {
        font-size: 18px;
    }

    /* Chip decorations */
    .chip {
        width: 30px;
        height: 30px;
    }

    /* Card Flip */
    .showcase-card {
        width: 170px;
        height: 238px;
    }

    .card-flip-row {
        gap: 25px;
    }

    /* Categories */
    .poker-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Hand Rankings */
    .ranking-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ranking-info {
        min-width: 180px;
    }

    .ranking-probability {
        min-width: 100px;
    }

    /* Live Tables */
    .live-tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Promos */
    .promos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

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

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

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

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

    /* Footer CTA */
    .cta-features {
        gap: 15px;
    }
}

/* === Tablet Portrait (max-width: 768px) === */
@media (max-width: 768px) {
    /* Header */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-time {
        display: none;
    }

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

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

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

    .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-item.has-dropdown .sub-menu {
        position: static;
        border: none;
        background: rgba(0,0,0,0.3);
    }

    /* Hero */
    .pokerking-hero {
        padding: 40px 20px;
    }

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

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

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

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

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

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

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

    .btn-gold-primary,
    .btn-outline-gold {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Poker table ellipse */
    .poker-table-ellipse {
        width: 95%;
        height: 90%;
    }

    .poker-table-trim {
        width: 97%;
        height: 92%;
    }

    /* Floating cards - hide some */
    .fc-5, .fc-6, .fc-7, .fc-8 {
        display: none;
    }

    .chip-3, .chip-4, .chip-5 {
        display: none;
    }

    /* Card Flip */
    .showcase-card {
        width: 150px;
        height: 210px;
    }

    .card-flip-row {
        gap: 15px;
    }

    .card-center-suit {
        font-size: 54px;
    }

    .card-rank {
        font-size: 22px;
    }

    /* Section titles */
    .section-title {
        font-size: 28px;
    }

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

    /* Categories */
    .poker-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .poker-cat-card {
        padding: 20px 15px;
    }

    .poker-cat-card h3 {
        font-size: 17px;
    }

    /* Hand Rankings */
    .rankings-chart {
        gap: 8px;
    }

    .ranking-row {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .ranking-info {
        min-width: 160px;
    }

    .ranking-details h4 {
        font-size: 13px;
    }

    .mini-card {
        width: 32px;
        height: 42px;
        font-size: 10px;
    }

    .ranking-cards {
        gap: 3px;
    }

    /* Live Tables */
    .live-tables-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

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

    .footer-cta-section h2 {
        font-size: 26px;
    }

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

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

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

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

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

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

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

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

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

    /* Tournaments */
    .tc-header span {
        font-size: 14px;
    }

    .tc-prize {
        font-size: 17px;
    }

    .cd-item {
        padding: 6px 8px;
        min-width: 48px;
    }

    .cd-num {
        font-size: 16px;
    }

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

    .provider-tabs {
        padding: 10px;
    }

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

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

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

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

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

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

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

/* === Mobile (max-width: 480px) === */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .logo img {
        max-height: 40px;
    }

    .btn-login {
        display: none;
    }

    .btn-demo {
        display: none;
    }

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

    /* Hero */
    .pokerking-hero {
        padding: 30px 15px;
        border-radius: 8px;
    }

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

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

    .hero-divider {
        width: 80px;
    }

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

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

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

    /* Poker table */
    .poker-table-ellipse {
        width: 100%;
        height: 95%;
        border-radius: 40%;
    }

    .poker-table-trim {
        width: 100%;
        height: 95%;
        border-radius: 40%;
    }

    /* Floating cards */
    .floating-card {
        width: 30px;
        height: 42px;
    }

    .floating-card span {
        font-size: 14px;
    }

    .chip {
        width: 24px;
        height: 24px;
    }

    /* Card Flip */
    .card-flip-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .showcase-card {
        width: 180px;
        height: 252px;
    }

    /* Categories */
    .poker-categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .poker-cat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Hand Rankings */
    .ranking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .ranking-info {
        min-width: auto;
        width: 100%;
    }

    .ranking-cards {
        flex-wrap: wrap;
    }

    .ranking-probability {
        width: 100%;
        min-width: auto;
    }

    .mini-card {
        width: 28px;
        height: 38px;
        font-size: 9px;
    }

    /* Live Tables */
    .live-tables-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 15px;
    }

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

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

    .cta-suit {
        font-size: 28px;
    }

    .cta-card-decorations {
        gap: 15px;
    }

    .cta-chip {
        display: none;
    }

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

    /* Promos */
    .promo-inner {
        padding: 20px 15px;
    }

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

    .promo-icon {
        width: 50px;
        height: 50px;
    }

    /* Tournaments */
    .tc-body h4 {
        font-size: 16px;
    }

    .tc-meta-item {
        font-size: 12px;
    }

    .cd-item {
        padding: 5px 6px;
        min-width: 42px;
    }

    .cd-num {
        font-size: 14px;
    }

    .cd-label {
        font-size: 9px;
    }

    /* Announcement */
    .announcement-content {
        padding: 15px;
    }

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

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

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

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

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

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

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

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

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

    /* View More */
    .view-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

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

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

    .showcase-card {
        width: 160px;
        height: 224px;
    }

    .card-center-suit {
        font-size: 42px;
    }

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

    .mini-card {
        width: 24px;
        height: 32px;
        font-size: 8px;
    }
}

/* === Extra adjustments for sidebar on mobile === */
@media (max-width: 1024px) {
    body {
        padding-bottom: 60px;
    }
}

/* === Print styles === */
@media print {
    .site-header,
    .floating-sidebar,
    .announcement-modal,
    .notification-bar,
    .site-footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .article-content {
        color: black;
    }
}

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