/* ═══════════════════════════════════════════════════
   CareerCraft AI — Responsive Breakpoints
   Mobile-first: base styles are mobile, scale up.
   375 → 412 → 768 → 1024 → 1280
   ═══════════════════════════════════════════════════ */

/* ══════════ MOBILE BASE (<375px) ══════════ */
/* Touch targets */
@media (max-width: 768px) {
  .btn, button, .nav-link, .nav-a, select {
    min-height: 44px;
  }
  
  /* Prevent iOS zoom on input focus */
  input, textarea, select { font-size: 16px !important; }
  
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  p, li { font-size: 0.95rem; }
  
  /* Container tighter padding */
  .container, .container-sm, .container-xs { padding-left: 16px; padding-right: 16px; }
  
  /* Cards */
  .card { padding: 16px; border-radius: 12px; }
  
  /* Nav — compact */
  .nav { height: 60px; }
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 8px; } /* hidden on mobile, replaced by bottom nav / hamburger */
  .nav-right .nav-a { display: none; } /* hide text links */
  .page { padding-top: 76px; }
  
  /* Modal — full screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%; max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: slideUp 0.3s ease-out;
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  
  /* Stats grid → 2 columns */
  .stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  
  /* Toast → full width */
  .toast { left: 16px; right: 16px; top: 68px; text-align: center; }
  
  /* Hide on mobile utility */
  .hide-mobile { display: none !important; }
}

/* ══════════ SMALL PHONES (≤375px) ══════════ */
@media (max-width: 375px) {
  h1 { font-size: 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr 1fr !important; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
}

/* ══════════ TABLETS PORTRAIT (≥768px) ══════════ */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav { height: 72px; }
  .page { padding-top: 96px; }
  
  .show-mobile { display: none !important; }
}

/* ══════════ TABLETS LANDSCAPE / SMALL DESKTOP (≥1024px) ══════════ */
@media (min-width: 1024px) {
  .container { max-width: 1200px; }
}

/* ══════════ DESKTOP (≥1280px) ══════════ */
@media (min-width: 1280px) {
  .container { max-width: 1200px; padding: 0 32px; }
}

/* ══════════ PRINT ══════════ */
@media print {
  .nav, .toast, .modal-overlay, .btn-theme { display: none !important; }
  body::before, body::after { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ═══ Footer mobile ═══ */
@media (max-width: 767px) {
  .footer { padding: 32px 0 80px !important; }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
  }

  /* Row 1: Logo — centered */
  .footer-grid > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  .footer-grid > div:first-child > a {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .footer-desc {
    font-size: 12px !important;
    text-align: center !important;
  }

  /* Row 2: All 3 menu cols side by side */
  .footer-grid > .footer-col:nth-child(2),
  .footer-grid > .footer-col:nth-child(3),
  .footer-grid > .footer-col:nth-child(4) {
    display: block !important;
    float: none !important;
    vertical-align: top !important;
    width: auto !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .footer-col h4 { font-size: 10px !important; margin-bottom: 8px !important; }
  .footer-col a { font-size: 12px !important; padding: 3px 0 !important; }

  /* Copyright */
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: center !important;
    padding-top: 16px !important;
    clear: both !important;
  }
  .footer-bottom span { font-size: 11px !important; }
}

