/* 
 * Brands Landing Page Styles
 * Extracted from templates/brands/landing.html
 * Date: 2026-01-13
 */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --brands-accent: #ff2aa2;
  --brands-text: #212121;
  --brands-muted: #555555;
  --brands-card-border: #f0f0f0;
  --brands-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ========================================
   PAGE LAYOUT
   ======================================== */
.brands-landing-page {
  background-color: #ffffff;
  min-height: calc(100vh - 80px);
  font-family: 'Comfortaa', 'Helvetica Neue', Arial, sans-serif;
}

.brands-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.brands-hero {
  margin-bottom: 56px;
}

.brands-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brands-muted);
  margin-bottom: 16px;
}

.brands-eyebrow-line {
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, var(--brands-accent), #ff6b9d);
  border-radius: 999px;
}

.brands-title {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  color: var(--brands-text);
  margin: 0;
}

/* ========================================
   SECTIONS
   ======================================== */
.brands-section {
  margin-bottom: 64px;
}

.brands-section-title {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
  margin: 0 0 28px;
}

/* ========================================
   BRAND GRID
   ======================================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* ========================================
   BRAND CARD
   ======================================== */
.brand-card {
  text-decoration: none;
  display: block;
}

.brand-card-inner {
  background-color: #ffffff;
  border-radius: 10px;
  border: 2px solid var(--brands-card-border);
  box-shadow: var(--brands-card-shadow);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover .brand-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.brand-logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-name-fallback {
  font-size: 16px;
  font-weight: 600;
  color: var(--brands-text);
  text-align: center;
  word-break: break-word;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.brands-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--brands-muted);
}

.brands-empty h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--brands-text);
}

.brands-empty p {
  font-size: 16px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Desktop Large - 1100px and below */
@media (max-width: 1100px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet - 900px and below */
@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile - 600px and below */
@media (max-width: 600px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .brands-title {
    font-size: 32px;
  }

  .brands-container {
    padding: 40px 16px 80px;
  }
}

/* ========================================
   BRANDS MEGA MENU
   ======================================== */

/* Mega menu container */
.brands-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  z-index: 1000;
  pointer-events: none;
}

/* Visible state */
.brands-mega-menu-visible {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  pointer-events: auto;
}

/* Inner container with max-width */
.brands-mega-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Section */
.brands-mega-menu-section {
  margin-bottom: 64px;
}

.brands-mega-menu-section:last-child {
  margin-bottom: 0;
}

/* Section title - EXACT match to landing page */
.brands-mega-menu-section-title {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
  margin: 0 0 28px;
}

/* Grid - EXACT match to landing page */
.brands-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Card - EXACT match to landing page */
.brands-mega-menu-card {
  text-decoration: none;
  display: block;
}

.brands-mega-menu-card-inner {
  background-color: #ffffff;
  border-radius: 10px;
  border: 2px solid var(--brands-card-border);
  box-shadow: var(--brands-card-shadow);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brands-mega-menu-card:hover .brands-mega-menu-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

/* Logo - EXACT match to landing page */
.brands-mega-menu-logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Name fallback - EXACT match to landing page */
.brands-mega-menu-name-fallback {
  font-size: 16px;
  font-weight: 600;
  color: var(--brands-text);
  text-align: center;
  word-break: break-word;
}

/* Empty state */
.brands-mega-menu-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--brands-muted);
}

/* Error state */
.brands-mega-menu-error {
  text-align: center;
  padding: 40px 20px;
  color: #d32f2f;
}

/* Footer with "View All" link */
.brands-mega-menu-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.brands-mega-menu-view-all {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brands-accent);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.brands-mega-menu-view-all:hover {
  background-color: #fff0f8;
  color: #e02590;
}

/* Responsive adjustments for mega menu - EXACT match to landing page */
@media (max-width: 1100px) {
  .brands-mega-menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {

  /* Hide mega menu on tablets and mobile */
  .brands-mega-menu {
    display: none;
  }
}

@media (max-width: 900px) {
  .brands-mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .brands-mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}