/* Modern Homepage Styles */

/* Hero Section */
.hero-section {
  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.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-section h1 {
  font-family: 'Alfa Slab One', cursive;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 65px #a99494;
}

.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);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

/* Feature Cards */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.2);
}

.feature-icon-circle {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon-circle {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.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.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#homepage-hero .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#homepage-hero .btn:hover::before {
  width: 300px;
  height: 300px;
}

#homepage-hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
}

#homepage-hero .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

#homepage-hero .btn-outline-primary {
  color: #667eea !important;
  border: 2px solid #667eea !important;
  background: transparent;
}

#homepage-hero .btn-outline-primary:hover {
  color: white !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent !important;
}

#homepage-hero .border-color {
  border: 2px solid rgba(102, 126, 234, 0.3) !important;
  color: #667eea !important;
  background: white;
}

#homepage-hero .border-color:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  border-color: transparent !important;
}

/* Features Section */
#features-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  position: relative;
}

#features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
}

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

#features-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Call to Action Section */
.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 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);
  }
}

/* Search Box Enhancements */
.search-box-form .card-body {
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.search-box-form .card-body:hover {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
  transform: translateY(-2px);
}

.search-box-form input {
  font-size: 1rem;
  color: #2c3e50;
}

.search-box-form input::placeholder {
  color: #a0a0a0;
  font-weight: 400;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Top navigation enhancements */
.navbar.toppest {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Icon hover effects */
.navbar .fas:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Footer styling */
footer {
  background: linear-gradient(180deg, #f8f9fc 0%, #e8ecf4 100%);
  padding: 2rem 0;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Glass-morphism for modals */
.modal-content {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Improved card hover states */
.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Text gradient for headings */
.feature-card h3 {
  background: linear-gradient(135deg, #2c3e50 0%, #3d5a80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.feature-card:hover h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

/* Add subtle animation to feature icons */
.feature-icon-circle i {
  display: inline-block;
  animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
