/* ==========================================================================
   HexaColor MVP - Responsive Stylesheet
   Mobile-First & Adaptive Media Queries
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESKTOP & LARGE DISPLAYS (> 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   TABLET & MEDIUM SCREENS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-illustration {
    height: 280px;
  }

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

/* --------------------------------------------------------------------------
   MOBILE SCREENS (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-content {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  /* Hamburger Navigation */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  /* Palette Responsive Layout */
  .palette-container {
    flex-direction: column;
    height: 480px;
  }

  .palette-color-card {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .palette-color-card:hover {
    flex: 1.2;
  }

  .palette-actions {
    flex-direction: row;
  }

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

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

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

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE SCREENS (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.85rem;
  }

  .btn {
    width: 100%;
  }

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

  .search-box {
    padding: 0.35rem 0.35rem 0.35rem 1rem;
  }

  .search-input {
    font-size: 0.9rem;
  }

  .color-values-row {
    grid-template-columns: 1fr;
  }
}
