/* ============================================================
   ZENPLAY 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(--ink-green);
        padding: 8px;
        border-top: 2px solid var(--gold);
        gap: 10px;
    }

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

    .sidebar-label {
        display: none;
    }

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

    .zen-hero-enso {
        width: 240px;
        height: 240px;
    }

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

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

    /* Bamboo sides */
    .zen-hero-bamboo-left,
    .zen-hero-bamboo-right {
        width: 25px;
    }

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

    /* Philosophy */
    .zen-philosophy-list {
        gap: 25px;
    }

    /* Testimonials */
    .zen-testimonials-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 */
    .zen-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;
    }

    .zen-brand-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .zen-enso-logo {
        font-size: 28px;
    }

    /* 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(46,74,62,0.1);
    }

    .nav-item.has-dropdown .sub-menu {
        position: static;
        border: none;
        background: rgba(46,74,62,0.05);
    }

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

    .zen-hero-enso {
        width: 200px;
        height: 200px;
        border-width: 6px 3px 10px 4px;
    }

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

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

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

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

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

    /* Bamboo sides - hide on mobile */
    .zen-hero-bamboo-left,
    .zen-hero-bamboo-right {
        display: none;
    }

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

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

    /* Games */
    .zen-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .zen-game-info h3 {
        font-size: 17px;
    }

    /* Philosophy */
    .zen-philosophy-item {
        padding: 30px 20px;
    }

    .zen-philosophy-enso {
        font-size: 60px;
    }

    .zen-philosophy-item h3 {
        font-size: 20px;
    }

    /* Testimonials */
    .zen-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .zen-footer-cta-enso {
        width: 160px;
        height: 160px;
    }

    .zen-cta-text {
        font-size: 14px;
    }

    .zen-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;
    }

    /* 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 */
    .zen-announcement-bar {
        padding: 6px 0;
    }

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

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

    /* Header */
    .zen-brand-text {
        font-size: 16px;
    }

    .zen-enso-logo {
        font-size: 24px;
    }

    .btn-login {
        display: none;
    }

    .btn-demo {
        display: none;
    }

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

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

    .zen-hero-enso {
        width: 180px;
        height: 180px;
        border-width: 5px 3px 8px 4px;
    }

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

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

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

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

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

    /* Games */
    .zen-games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .zen-game-info {
        padding: 15px;
    }

    /* Philosophy */
    .zen-philosophy-list {
        gap: 20px;
    }

    .zen-philosophy-item {
        padding: 25px 15px;
    }

    .zen-philosophy-enso {
        font-size: 50px;
    }

    .zen-philosophy-item h3 {
        font-size: 18px;
    }

    .zen-philosophy-item p {
        font-size: 13px;
    }

    /* Testimonials */
    .zen-testimonial-card {
        padding: 20px;
    }

    .ink-frame-portrait {
        width: 60px;
        height: 60px;
    }

    /* Footer CTA */
    .zen-footer-cta-enso {
        width: 140px;
        height: 140px;
        border-width: 4px 2px 7px 3px;
    }

    .zen-cta-text {
        font-size: 12px;
    }

    .zen-cta-subtitle {
        font-size: 14px;
    }

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

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

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

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

/* === Small Mobile (max-width: 360px) === */
@media (max-width: 360px) {
    .zen-hero-enso {
        width: 150px;
        height: 150px;
    }

    .zen-hero-brand {
        font-size: 20px;
    }

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

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

    .zen-footer-cta-enso {
        width: 120px;
        height: 120px;
    }

    .zen-cta-text {
        font-size: 11px;
    }
}

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

/* === Print styles === */
@media print {
    .site-header,
    .floating-sidebar,
    .zen-announcement-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;
  }
}
