/* ============================================
   RESPONSIVE — Media Queries
   ============================================ */

/* ── Tablet and below (< 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --header-height: 56px;
  }

  .welcome-title {
    font-size: var(--text-3xl);
  }

  .results-title {
    font-size: var(--text-2xl);
  }

  .info-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* ── Mobile and below (< 768px) ── */
@media (max-width: 768px) {
  :root {
    --header-height: 52px;
    --footer-height: 48px;
  }

  .app-header {
    padding: 0 var(--space-4);
  }

  .header-brand-subtitle {
    display: none;
  }

  .header-brand-divider {
    display: none;
  }

  .header-progress-bar {
    width: 100px;
  }

  .app-footer {
    padding: 0 var(--space-4);
  }

  .footer-right {
    display: none;
  }

  .bottom-illustration {
    display: none;
  }

  .container {
    padding: 0 var(--space-4);
  }

  /* Welcome */
  .welcome-hero {
    padding: var(--space-12) var(--space-4) var(--space-8);
  }

  .welcome-hero-logo {
    position: static;
    display: block;
    margin: 0 auto var(--space-6);
    height: 22px;
  }

  .welcome-hero-language {
    position: static;
    display: flex;
    justify-content: center;
    margin: 0 0 var(--space-4);
  }

  .welcome-title {
    font-size: var(--text-2xl);
  }

  .welcome-description {
    font-size: var(--text-base);
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .info-card {
    flex-direction: row;
    text-align: left;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .info-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .welcome-info-section {
    padding: var(--space-6) var(--space-4);
  }

  /* Tab Navigation */
  .tab-nav {
    gap: 0;
    padding: var(--space-1) 0;
  }

  .tab-item {
    padding: var(--space-2) var(--space-3);
    font-size: 10px;
  }

  /* Relationship Grid */
  .relationship-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .relationship-grid .relationship-card:nth-child(5) {
    max-width: 100%;
  }

  .relationship-card {
    flex-direction: row;
    text-align: left;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .relationship-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Questions */
  .question-block {
    padding: var(--space-4);
  }

  .rating-buttons {
    gap: var(--space-1);
  }

  .rating-btn {
    width: 40px;
    height: 40px;
    font-size: var(--text-xs);
  }

  .rating-btn-separator {
    margin: 0 var(--space-1);
  }

  .rating-btn-notobserved {
    height: 40px;
    padding: 0 var(--space-3);
    font-size: 10px;
  }

  .rating-legend {
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .rating-legend-item {
    font-size: 10px;
  }

  /* Results */
  .results-banner {
    padding: var(--space-6) var(--space-4);
  }

  .results-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .results-title {
    font-size: var(--text-xl);
  }

  .results-panel {
    padding: 0 var(--space-4);
  }

  .results-card-header,
  .results-chart,
  .results-next-steps {
    padding: var(--space-4);
  }

  /* Section Header */
  .section-title {
    font-size: var(--text-xl);
  }

  /* Nav Buttons */
  .nav-buttons {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
  }

  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }

  .btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }
}

/* ── Small mobile (< 480px) ── */
@media (max-width: 480px) {
  .welcome-title {
    font-size: var(--text-xl);
  }

  .header-progress-label {
    display: none;
  }

  .header-progress-bar {
    width: 80px;
  }

  .rating-btn {
    width: 36px;
    height: 36px;
  }

  .rating-btn-notobserved {
    height: 36px;
    font-size: 9px;
    padding: 0 var(--space-2);
  }

  .rating-legend {
    flex-direction: column;
    gap: var(--space-2);
  }
}
