/* ==========================================================================
   Teen Patti Earning - Responsive Breakpoints & Mobile Optimization
   Tested at 320px, 360px, 375px, 390px, 414px, 768px, 1024px, 1200px
   Zero Horizontal Overflow, Compact Images, Touch Slider, and High-Speed LCP
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop Strict Separation (>= 1025px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .tp-nav-desktop {
    display: flex !important;
  }

  .tp-mobile-toggle,
  .tp-mobile-drawer,
  .tp-mobile-overlay,
  #mobile-nav-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .tp-sticky-download {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Tablet & Medium Desktops (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tp-nav-desktop {
    display: none !important;
    visibility: hidden !important;
  }

  .tp-mobile-toggle {
    display: inline-flex !important;
  }

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

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

  .tp-carousel-slide {
    flex: 0 0 calc(50% - 10px);
  }

  .tp-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

  .tp-footer-brand {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   Mobile Landscape & Medium Phones (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for mobile sticky download bar */
  }

  .tp-header {
    min-height: 54px;
  }

  .tp-header-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tp-header-inner {
    min-height: 54px;
    gap: 8px;
  }

  .tp-logo-img {
    max-width: 165px;
    height: 36px;
  }

  .tp-btn-header-download {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .tp-dl-text-full {
    display: none;
  }

  .tp-dl-text-short {
    display: inline;
  }

  .tp-hero-content-wrap {
    margin-top: -50px;
  }

  .tp-hero-inner {
    padding: 20px 14px;
  }

  .tp-hero-title {
    font-size: 1.85rem;
  }

  .tp-hero-tagline {
    font-size: 0.98rem;
  }

  .tp-hero-desc {
    font-size: 0.86rem;
  }

  .tp-carousel-slide {
    flex: 0 0 84%; /* 1 full slide + preview peek */
  }

  .tp-bonus-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }

  .tp-bonus-perks-list {
    justify-content: center;
  }

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

  .tp-footer-brand {
    grid-column: span 1;
  }

  .tp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Small Android & iPhone Widths (<= 414px)
   -------------------------------------------------------------------------- */
@media (max-width: 414px) {
  .tp-header-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tp-header-inner {
    gap: 6px;
  }

  .tp-logo-img {
    max-width: 148px;
    height: 34px;
  }

  .tp-header-actions {
    gap: 6px;
  }

  .tp-search-btn {
    width: 34px;
    height: 34px;
  }

  .tp-btn-header-download {
    padding: 6px 11px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .tp-mobile-toggle {
    width: 34px;
    height: 34px;
  }

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

  .tp-quick-card {
    padding: 12px 10px;
  }

  .tp-quick-icon-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .tp-quick-title {
    font-size: 0.86rem;
  }

  .tp-quick-sub {
    font-size: 0.68rem;
  }

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

  .tp-app-card {
    padding: 10px 8px;
  }

  .tp-app-card-top {
    gap: 8px;
  }

  .tp-app-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .tp-app-name {
    font-size: 0.82rem;
  }

  .tp-app-specs {
    font-size: 0.66rem;
  }

  .tp-app-desc {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .tp-app-actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .tp-app-btn-download,
  .tp-app-btn-more {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .tp-game-modes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tp-game-mode-card {
    padding: 12px 8px;
  }

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

  .tp-feature-card {
    padding: 12px 8px;
  }

  .tp-articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tp-carousel-slide {
    flex: 0 0 86%;
  }
}

/* --------------------------------------------------------------------------
   Compact Android Mobile (<= 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .tp-header-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tp-header-inner {
    gap: 5px;
  }

  .tp-logo-img {
    max-width: 132px;
    height: 31px;
  }

  .tp-header-actions {
    gap: 5px;
  }

  .tp-search-btn {
    width: 32px;
    height: 32px;
  }

  .tp-btn-header-download {
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .tp-mobile-toggle {
    width: 32px;
    height: 32px;
  }

  .tp-hero-title {
    font-size: 1.65rem;
  }

  .tp-hero-btn-download {
    padding: 11px 20px;
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   Ultra-Narrow Screens / iPhone SE (<= 320px)
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
  .tp-header-container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .tp-header-inner {
    gap: 4px;
  }

  .tp-logo-img {
    max-width: 116px;
    height: 28px;
  }

  .tp-header-actions {
    gap: 4px;
  }

  .tp-search-btn {
    width: 29px;
    height: 29px;
  }

  .tp-btn-header-download {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .tp-btn-header-download svg {
    display: none; /* Hide icon on 320px to ensure text fits with zero overflow */
  }

  .tp-mobile-toggle {
    width: 29px;
    height: 29px;
  }

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

  .tp-apps-grid {
    grid-template-columns: 1fr; /* Single column on 320px ensures large tap area */
    gap: 8px;
  }

  .tp-game-modes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .tp-carousel-slide {
    flex: 0 0 92%;
  }
}


/* ==========================================================================
   INNER PAGES RESPONSIVE BREAKPOINTS (Prompt 02)
   ========================================================================== */

/* Tablet & Below (<= 1024px) */
@media (max-width: 1024px) {
  .tp-apps-archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

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

  .tp-categories-chips {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .tp-inner-hero {
    padding: 12px 0 18px;
  }

  .tp-inner-title {
    font-size: 1.45rem;
  }

  .tp-inner-subtitle {
    font-size: 0.88rem;
  }

  .tp-article-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .tp-article-meta {
    gap: 10px;
    font-size: 0.76rem;
  }

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

  .tp-features-page-grid,
  .tp-features-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tp-contact-grid,
  .tp-contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tp-categories-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tp-why-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .tp-bottom-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .tp-bottom-cta-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .tp-bottom-cta-btn {
    width: 100%;
  }

  .tp-bonus-full-card {
    padding: 12px 14px;
    gap: 12px;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .tp-quick-info-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tp-quick-info-thumb {
    margin: 0 auto;
  }

  .tp-quick-info-list {
    width: 100%;
  }

  .tp-post-navigation {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tp-mode-card-full {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .tp-mode-icon img {
    width: 52px;
    height: 52px;
  }

  .tp-bonus-full-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tp-bonus-claim-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Micro Phones (<= 360px & 320px) */
@media (max-width: 360px) {
  .tp-inner-title {
    font-size: 1.25rem;
  }

  .tp-apps-archive-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tp-features-archive-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tp-step-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .tp-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .tp-step-text {
    font-size: 0.84rem;
  }
}
