/* ==========================================================================
   homepage.css - Homepage-specific styles for mycell.eu
   Hero slider, category cards, section headers
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Slider
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-slides {
  position: relative;
  height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.08) 65%);
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  max-width: 540px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
}

/* Slider navigation dots */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-full);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.hero-dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.25);
}

/* Slider navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow-prev {
  left: 1.5rem;
}

.hero-arrow-next {
  right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Section Headers (used by all homepage sections)
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Category Cards — green icon style
   -------------------------------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
}

.category-card-icon {
  width: 130px;
  height: 130px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-primary-lightest);
  border: 2px solid #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
  border-color: var(--color-primary);
  background: #d1fae5;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}

.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.category-card:hover .category-card-icon img {
  transform: scale(1.08);
}

.category-card-icon i {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.category-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  transition: color 0.2s ease;
}

.category-card:hover .category-card-title {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Product Section (overrides for homepage context)
   -------------------------------------------------------------------------- */
.section-products {
  padding: 3.5rem 0;
}

.section-categories {
  padding: 3.5rem 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-slides {
    height: 400px;
  }

  .hero-title {
    font-size: 2.125rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-slides {
    height: 340px;
  }

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

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
  }

  .hero-arrow {
    display: none;
  }

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

  .section-products,
  .section-categories {
    padding: 2.5rem 0;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
  }

  .category-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    padding: 1rem;
  }

  .category-card-title {
    font-size: 0.75rem;
  }
}
