/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at 80% 20%, rgba(91, 75, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
              var(--bg-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

@media (max-width: 900px) {
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-stats {
    justify-content: center;
  }
}

.stat-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Mockup elements */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-mockup {
    display: none;
  }
}

.mockup-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  z-index: 2;
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}

.mockup-card-bg {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 100%;
  height: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 1;
  transform: rotate(3deg);
  pointer-events: none;
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

/* Full Width Search Bar */
.search-bar-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  height: 60px;
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 4rem 0 2rem;
  font-size: 1.125rem;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(91, 75, 237, 0.2);
  outline: none;
}

.search-icon-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Featured Quizzes Horizontal Scroll Strip */
.featured-strip-section {
  padding: 5rem 0;
}

.scroll-container-wrapper {
  position: relative;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

.scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.scroll-container .quiz-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  .scroll-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
  .scroll-container .quiz-card {
    flex: none;
  }
}

/* Categories Grid */
.categories-section {
  padding: 5rem 0;
  background-color: rgba(26, 25, 41, 0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* All Quizzes Listing section */
.all-quizzes-section {
  padding: 6rem 0;
}

.category-group {
  margin-bottom: 5rem;
}

.category-group:last-child {
  margin-bottom: 0;
}

.category-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.category-group-header h2 {
  font-size: 1.75rem;
}

.category-group-header .view-all-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 500;
}

.category-group-header .view-all-link:hover {
  color: var(--text-primary);
}

/* Why QuizyWiz Section */
.why-section {
  padding: 6rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(91, 75, 237, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}
