/* ==========================================================================
   SolarPrice.Asia - Responsive Breakpoints & Mobile Navigation
   ========================================================================== */

/* Tablet & Mobile Breakpoints (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .main-nav {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .mobile-nav-drawer {
    display: none !important;
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    height: calc(100vh - 66px);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
    overflow-y: auto;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    box-shadow: var(--shadow-xl);
  }

  .mobile-nav-drawer.active {
    display: flex !important;
  }

  .mobile-nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
  }

  .hero-title {
    font-size: 2.1rem;
  }
}

/* Smartphone Breakpoints (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .header-inner {
    height: 60px;
    gap: 0.35rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    display: none;
  }

  .logo-icon-box {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .country-pill-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .country-pill-btn span.country-full-name {
    display: none;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-amber,
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
  }

  .calculator-container {
    padding: 1.25rem;
  }

  .result-grid-metrics {
    grid-template-columns: 1fr;
  }

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

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

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

  .author-eeat-box {
    flex-direction: column;
    text-align: center;
  }

  .country-modal-list {
    grid-template-columns: 1fr;
  }

  .comparator-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ticker-wrap {
    gap: 0.5rem;
  }

  .ticker-label {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
  }
}
