/**
 * PHASE 4: AWARDS/HONORS PAGE FIXES
 * Reduced hero spacing, carousel improvements
 */

/* AWARDS HERO - Reduced from 100vh to 80vh */
.awards-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.awards-hero .max-w-7xl {
  padding-top: 0 !important;
}

.page-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

/* LEGENDARY CREATOR CAROUSEL */
.creator-carousel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 10;
  animation: fadeInUp 0.6s ease-out;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 2rem 1.5rem 1.5rem;
  z-index: 5;
}

.carousel-creator-name {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.carousel-creator-title {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 20;
  align-items: center;
}

.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 700;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(139, 0, 0, 0.8);
  border-color: #8B0000;
  transform: scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
  transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator.active {
  background: #8B0000;
  width: 24px;
  border-radius: 4px;
  border-color: #d4af37;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #8B0000, #d4af37);
  width: 0%;
  animation: carouselProgress 4s linear infinite;
  z-index: 20;
}

@keyframes carouselProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.carousel-item.active .carousel-progress {
  animation: carouselProgress 4s linear;
}

/* Categories Grid */
.categories-container {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 5, 5, 0.9) 100%);
  padding: 4rem 2rem;
  position: relative;
}

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

.category-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 0, 0, 0.5);
  transform: translateY(-8px);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: 0.025em;
  position: relative;
  z-index: 1;
}

.award-title {
  color: #d4af37;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.category-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .awards-hero {
    min-height: 60vh;
    padding: 4rem 1rem;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .creator-carousel-container {
    height: 400px;
    max-width: 90%;
  }

  .carousel-controls {
    bottom: 1rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-icon,
  .carousel-item,
  .carousel-controls button,
  .indicator {
    transition: none;
    animation: none !important;
  }
}

/* High Contrast */
@media (prefers-contrast: more) {
  .category-card {
    border-width: 2px;
  }

  .category-icon,
  .award-title {
    color: #ffd700;
  }
}
