/* ============================================
   BEST BUY-STYLE LANDING PAGE
   Clean, retail-inspired design with light theme
   ============================================ */

/* Main Landing Container */
.bb-landing {
  background-color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
HERO BANNER - Best Buy Style
Large promotional area with deals/featured
============================================ */
.bb-hero {
  background:
    linear-gradient(135deg, rgba(0, 70, 190, 0.92), rgba(0, 51, 153, 0.95)),
    url('/assets/images/hero-students.jpg') center/cover no-repeat;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.bb-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 206, 0, 0.1);
  border-radius: 50%;
  filter: blur(100px);
}

.bb-hero-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.bb-hero-content {
  color: #ffffff;
}

.bb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.bb-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  color: #ffffff;
}

.bb-hero-title span {
  color: #ffce00;
}

.bb-hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.bb-hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bb-btn-primary {
  background: #ffce00;
  color: #1a1a1a;
}

.bb-btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 206, 0, 0.3);
}

.bb-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.bb-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Image Grid */
.bb-hero-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.bb-hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
}

.bb-hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bb-hero-image-card:hover img {
  transform: scale(1.05);
}

.bb-hero-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
}

.bb-hero-image-label p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* ============================================
   DEAL OF THE DAY BAR
   ============================================ */
.bb-deal-bar {
  background: #ffce00;
  padding: var(--space-lg) 0;
}

.bb-deal-bar-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.bb-deal-bar-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bb-deal-bar-icon {
  font-size: var(--text-2xl);
}

.bb-deal-bar-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
}

.bb-deal-bar-subtitle {
  font-size: var(--text-sm);
  color: #4a4a4a;
  margin: 0;
}

.bb-deal-bar-btn {
  padding: var(--space-sm) var(--space-xl);
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bb-deal-bar-btn:hover {
  background: #2e2e2e;
}

/* ============================================
   CATEGORY GRID - Best Buy Style
   ============================================ */
.bb-categories {
  padding: var(--space-4xl) 0;
  background: #f4f4f4;
}

.bb-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.bb-section-header {
  margin-bottom: var(--space-2xl);
}

.bb-section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.bb-section-subtitle {
  font-size: var(--text-base);
  color: #666666;
  margin: 0;
}

.bb-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.bb-category-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.bb-category-card:hover {
  border-color: #0046be;
  box-shadow: 0 4px 12px rgba(0, 70, 190, 0.1);
  transform: translateY(-4px);
}

.bb-category-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.bb-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.bb-category-icon svg {
  width: 28px;
  height: 28px;
}

.bb-category-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: var(--space-xs);
}

.bb-category-count {
  font-size: var(--text-xs);
  color: #666666;
  margin: 0;
}

/* ============================================
UNIVERSITIES SECTION - Background Image
Added background image for "Choose Your University" section
============================================ */
#universities .bb-section-header {
  position: relative;
  padding: 3rem 2rem;
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 70, 190, 0.9), rgba(0, 51, 153, 0.95));
  text-align: center;
  overflow: hidden;
}

#universities .bb-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 206, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  opacity: 0.3;
  z-index: 0;
}

#universities .bb-section-title {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: var(--text-3xl);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#universities .bb-section-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
}

/* ============================================
   FEATURED PRODUCTS CAROUSEL
   ============================================ */
.bb-featured {
  padding: var(--space-4xl) 0;
  background: #ffffff;
}

.bb-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.bb-how-it-works {
  padding: var(--space-4xl) 0;
  background: #f4f4f4;
}

.bb-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
}

.bb-step {
  text-align: center;
  padding: var(--space-xl);
}

.bb-step-number {
  width: 64px;
  height: 64px;
  background: #0046be;
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0 auto var(--space-lg);
}

.bb-step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: var(--space-sm);
}

.bb-step-desc {
  font-size: var(--text-sm);
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.bb-cta {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, #0046be 0%, #003399 100%);
  text-align: center;
}

.bb-cta-content {
  max-width: 700px;
  margin: 0 auto;
  color: #ffffff;
}

.bb-cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.bb-cta-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .bb-hero-container {
    grid-template-columns: 1fr;
  }

  .bb-hero-images {
    display: none;
  }
}

@media (max-width: 768px) {
  .bb-hero {
    padding: var(--space-2xl) 0;
    min-height: auto !important;
    overflow: hidden;
  }

  .bb-hero::before {
    width: 300px;
    height: 300px;
  }

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

  .bb-hero-subtitle {
    font-size: var(--text-base);
  }

  .bb-hero-buttons {
    flex-direction: column;
  }

  .bb-hero-container {
    padding: 0 var(--space-md);
  }

  .bb-btn {
    width: 100%;
  }

  .bb-deal-bar-container {
    flex-direction: column;
    text-align: center;
  }

  .bb-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bb-steps-grid {
    grid-template-columns: 1fr;
  }

  #hero-animated-text {
    white-space: normal !important;
  }

  #hero-animated-text .hero-char {
    white-space: normal !important;
  }

  .bb-hero .bb-hero-container > div > div[style*='display: grid'] {
    grid-template-columns: 1fr !important;
  }

  .bb-hero div[style*='gap: 2.5rem'] {
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
  }

  .bb-hero div[style*='font-size: 1.75rem'] {
    font-size: 1.25rem !important;
  }

  .bb-hero div[style*='font-size: 1.125rem'][style*='line-height: 1.8'] {
    font-size: 1rem !important;
    max-width: 100% !important;
  }

  section[style*='padding: 5rem 2rem'] {
    padding: 3rem 1rem !important;
  }

  section[style*='padding: 5rem 2rem'] h2[style*='font-size: 1.875rem'] {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .bb-hero {
    padding: var(--space-xl) 0;
  }

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

  .bb-categories-grid {
    grid-template-columns: 1fr;
  }

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

  .bb-cta-desc {
    font-size: var(--text-base);
  }
}

/* ============================================
HERO TEXT ANIMATION
Scale-in effect for "Buy & sell with students like you"
============================================ */

#hero-animated-text {
  /* Prevent line breaks in the entire text */
  white-space: nowrap;
  /* Ensure text is visible */
  color: #ffffff;
  letter-spacing: normal;
}

#hero-animated-text .hero-char {
  /* Each animated character - must be inline-block for transform */
  display: inline-block !important;
  will-change: transform, opacity;
  /* Prevent line breaks between characters */
  white-space: nowrap;
  /* Initial state */
  opacity: 0;
  transform: scale(0);
  /* Ensure proper vertical alignment */
  vertical-align: middle;
  /* Prevent margin issues */
  margin: 0;
  padding: 0;
}

/* Preserve the yellow color for "students like you" */
#hero-animated-text > span[style*='color:#ffce00'],
#hero-animated-text > span[style*='color: #ffce00'] {
  color: #ffce00 !important;
  /* Prevent line breaks in yellow text */
  white-space: nowrap;
  display: inline;
}

/* Ensure yellow text characters inherit color */
#hero-animated-text > span[style*='color:#ffce00'] .hero-char,
#hero-animated-text > span[style*='color: #ffce00'] .hero-char {
  color: #ffce00 !important;
}
