/* Modern Homepage Styles */

/* Hero Section */
.hero-section {
  /* background: #fff6f7; */
  border-radius: 0;
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* position: relative; */
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  /* top: -50%; */
  /* right: -20%; */
  /* width: 500px; */
  height: 500px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  /* left: -10%; */
  /* width: 400px; */
  height: 400px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section h1 {
  font-family: 'Alfa Slab One', cursive;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 65px var(--bs-orange);
}

.hero-section .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-icon {
  animation: bounce 2s infinite;
  position: relative;
  z-index: 1;
  font-size: 9rem;
}
@media (max-width: 767.98px) {
  .hero-icon {
    font-size: 7rem;
    /* margin-bottom: 1rem; */
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.feature-icon-circle {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-circle {
  transform: scale(1.1);
}

.feature-card h3 {
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

/* Buttons */
#homepage-hero .btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

#homepage-hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#homepage-hero .btn-primary {
  background: linear-gradient(135deg, #ac2cff 0%, #1a73e8 100%);
  border: none;
}

#homepage-hero .btn-outline-primary {
  color: #2163b1 !important;
  border-color: #2163b1 !important;
}

#homepage-hero .btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

/* Features Section */
#features-section {
  background-color: #ffffff;
}

#features-section h2 {
  color: #2c3e50;
  font-family: 'Alfa Slab One', cursive;
  font-size: 2.5rem;
}

/* Call to Action Section */
.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-primary-2 {
  background: linear-gradient(135deg, #667eea 0%, var(--bs-primary) 100%) !important;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 89vh;
    padding: 3rem 1rem !important;
  }
  
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  #features-section h2 {
    font-size: 1.75rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
}

/* Hide homepage hero when navigating to other sections */
body.categories-active #homepage-hero,
body.account-active #homepage-hero,
body.friends-active #homepage-hero,
body.players-active #homepage-hero {
  display: none !important;
}

/* Animation for smooth appearance */
#homepage-hero {
  animation: fadeIn 0.5s ease-in;
  /* background: #ff530d; */
}

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

/* === BENTO BOX UI EXTENSIONS === */

/* Utility Classes */
.transition-all {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-shadow-md:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #ac2cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bento Cards base */
.bento-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  cursor: pointer;
  transition: transform var(--qz-dur-ui) cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--qz-dur-ui) ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Custom Theme Colors */
/* Orange (Competitions) */
.bento-icon-gradient-orange {
  background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
  box-shadow: 0 4px 15px rgba(252, 96, 118, 0.3);
}

.bento-btn-orange {
  background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
  color: white !important;
  border: none;
}

.bento-btn-orange:hover {
  box-shadow: 0 6px 20px rgba(252, 96, 118, 0.4) !important;
  transform: translateY(-2px);
}

/* Blue (Categories) */
.bento-text-blue { color: #3b82f6 !important; }
.bento-badge-blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Green (Realtime / Online) */
.bento-text-green { color: #10b981 !important; }
.bento-badge-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Purple (Communities) */
.bento-text-purple { color: #8b5cf6 !important; }
.bento-badge-purple {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.bento-badge-outline-purple {
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: #8b5cf6 !important;
}

/* Pink/Red (Challenges) */
.bento-text-pink { color: #ec4899 !important; }
.bento-badge-pink {
  background-color: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

/* Primary Button (Call to Action) */
.bento-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  transition: transform var(--qz-dur-ui) cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--qz-dur-ui) ease;
}

.bento-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
  transform: translateY(-2px);
}

.homepage-recent-competition-pill {
  text-decoration: none;
}

.homepage-recent-competition-pill:hover,
.homepage-recent-competition-pill:focus-visible {
  color: #1f2937;
  text-decoration: none;
}
