/**
 * Homepage-specific styles for BALL X PIT
 * Additional styles beyond main.css
 */

/* ===================================
   HERO SECTION - Left/Right Split
   =================================== */
.hero {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  /* Mobile: full width, centered text */
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.hero-video {
  width: 100%;
}

/* Video Thumbnail Card (YouTube Link) */
.video-thumbnail-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.video-thumbnail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* Video Thumbnail Image */
.video-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Play Button Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5)
  );
  transition: background-color 0.3s ease;
}

.video-thumbnail-card:hover .video-play-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
}

/* Large Play Button */
.play-button-large {
  margin-bottom: var(--space-4);
  transition: transform 0.3s ease;
}

.video-thumbnail-card:hover .play-button-large {
  transform: scale(1.15);
}

.video-hint {
  color: white;
  font-size: var(--font-size-base);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  margin: 0;
}

/* YouTube Badge */
.youtube-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: #ff0000;
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.youtube-badge svg {
  width: 20px;
  height: 20px;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .play-button-large svg {
    width: 60px;
    height: 60px;
  }
  
  .video-hint {
    font-size: var(--font-size-sm);
  }
  
  .youtube-badge {
    top: var(--space-2);
    right: var(--space-2);
    padding: var(--space-1) var(--space-2);
    font-size: 0.75rem;
  }
  
  .youtube-badge svg {
    width: 16px;
    height: 16px;
  }
}

/* ===================================
   GAME OVERVIEW SECTION
   =================================== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.overview-card {
  text-align: center;
}

.overview-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.overview-card p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.overview-description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   QUICK START STEPS
   =================================== */
.quick-start {
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 column */
  gap: var(--space-6);
  width: 100%;
  max-width: 100%;
}

.step {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0; /* Allow flex items to shrink below their minimum content size */
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.step h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.step p {
  margin-bottom: var(--space-4);
  flex-grow: 1; /* Push button to bottom */
}

.step .btn {
  margin-top: auto; /* Align button to bottom */
  align-self: center;
  width: fit-content;
}

/* ===================================
   POPULAR CONTENT CARDS
   =================================== */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.content-card {
  position: relative;
  text-align: center;
}

.card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.content-card h3 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.content-card p {
  margin-bottom: var(--space-4);
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item h3 {
  font-size: var(--font-size-lg);
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}

.faq-item p {
  margin-bottom: 0;
}

.faq-item a {
  color: var(--color-secondary-light);
}

/* ===================================
   COMMUNITY SECTION
   =================================== */
.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-box {
  padding: var(--space-12);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border: none;
}

.cta-box h2,
.cta-box p {
  color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* ===================================
   RESPONSIVE - TABLET & DESKTOP
   =================================== */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-16) 0;
  }
  
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-description {
    font-size: var(--font-size-lg);
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
  
  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  .hero-description {
    font-size: var(--font-size-xl);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr); /* Medium desktop: 2 columns */
  }
  
  .content-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop - 4 columns only on very wide screens */
@media (min-width: 1400px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr); /* Large desktop: 4 columns */
  }
}

/* Additional responsive for smaller tablets */
@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr; /* Mobile: 1 column only */
  }
}

/* Medium screens - ensure proper display */
@media (min-width: 640px) and (max-width: 767px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr); /* Small tablet: 2 columns */
  }
}

