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

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

    .poker-hero-title {
        font-size: 36px;
    }

    .poker-hero-desc {
        font-size: 16px;
    }

    .poker-table-ellipse {
        height: 380px;
    }

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

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

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

    .hand-rank-item {
        grid-template-columns: 200px 170px 1fr;
    }

    .hand-rank-name {
        font-size: 13px;
    }

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

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

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

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

/* === Tablet Portrait (max-width: 768px) === */
@media (max-width: 768px) {
    .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: 11px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--pk-black-light);
        border: 1px solid rgba(255, 215, 0, 0.15);
        border-radius: 8px;
        padding: 10px;
        margin-top: 10px;
    }

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

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

    .nav-item.has-dropdown .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 5px;
        margin-top: 5px;
    }

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

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

    .poker-hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }

    .poker-hero-title {
        font-size: 28px;
    }

    .poker-hero-desc {
        font-size: 14px;
    }

    .poker-table-ellipse {
        height: 300px;
        width: 95%;
    }

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

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

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

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

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

    /* Card flip */
    .card-flip-container {
        gap: 15px;
    }

    .flip-card {
        width: 100px;
        height: 145px;
    }

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

    .card-value {
        font-size: 14px;
    }

    .card-suit-small {
        font-size: 10px;
    }

    .card-back-logo {
        font-size: 20px;
    }

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

    .poker-category-card {
        padding: 20px;
    }

    .poker-category-card h3 {
        font-size: 16px;
    }

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

    /* Hand rankings */
    .hand-rank-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hand-rank-cards {
        justify-content: flex-start;
    }

    .hand-rank-desc {
        display: inline;
    }

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

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

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

    .promo-card {
        padding: 25px 20px;
    }

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

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

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

    .cta-trust-badges {
        gap: 15px;
    }

    .cta-trust-badges span {
        font-size: 11px;
    }

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

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

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

    /* Sidebar */
    .floating-sidebar {
        bottom: 0;
        top: auto;
        right: auto;
        left: 0;
        width: 100%;
        flex-direction: row;
        transform: none;
        justify-content: center;
        background: var(--pk-green-dark);
        border-top: 1px solid var(--pk-gold);
        padding: 5px;
    }

    .sidebar-btn {
        width: 40px;
        height: 40px;
        border-left: none;
        border-top: 2px solid var(--pk-gold);
        font-size: 16px;
    }

    .sidebar-btn:hover {
        width: 40px;
    }

    .sidebar-label {
        display: none !important;
    }

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

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

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

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

    .logo img {
        height: 35px;
    }

    .logo-icon {
        font-size: 18px;
    }

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

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

    .poker-hero-section {
        min-height: 420px;
        padding: 30px 10px;
    }

    .poker-hero-title {
        font-size: 22px;
    }

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

    .poker-table-ellipse {
        height: 250px;
    }

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

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

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

    /* Card flip */
    .flip-card {
        width: 85px;
        height: 125px;
    }

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

    .card-corner {
        font-size: 12px;
    }

    .card-value {
        font-size: 12px;
    }

    .card-suit-small {
        font-size: 8px;
    }

    .card-corner.top-left {
        top: 5px;
        left: 5px;
    }

    .card-corner.bottom-right {
        bottom: 5px;
        right: 5px;
    }

    .card-back-logo {
        font-size: 16px;
    }

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

    .poker-category-card p {
        font-size: 13px;
    }

    /* Hand rankings */
    .hand-rank-item {
        padding: 10px;
    }

    .hand-rank-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .hand-rank-name {
        font-size: 12px;
    }

    .hand-rank-desc {
        font-size: 10px;
    }

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

    .rank-bar-fill span {
        font-size: 9px;
        right: -50px;
    }

    /* Tournament */
    .tournament-card {
        padding: 20px;
    }

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

    /* Footer */
    .footer-cta h2 {
        font-size: 20px;
    }

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

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

    .license-icons {
        gap: 15px;
    }

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

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

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

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

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

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

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

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

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

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

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

    .page-article {
        padding: 20px;
    }

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

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

    .provider-tabs {
        gap: 6px;
    }

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

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

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

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

    /* Scattered cards hide on mobile */
    .scattered-cards {
        display: none;
    }

    .poker-chips-deco {
        display: none;
    }

    .cta-chips-deco {
        display: none;
    }

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

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

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

/* === Extra small (max-width: 360px) === */
@media (max-width: 360px) {
    .poker-hero-title {
        font-size: 18px;
    }

    .flip-card {
        width: 70px;
        height: 105px;
    }

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

    .btn-poker-primary,
    .btn-poker-secondary {
        padding: 10px 20px;
        font-size: 12px;
    }

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

    .cta-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

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

    body {
        background: white;
        color: black;
    }

    .article-content,
    .page-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;
  }
}
