/* =============== Home Page Styles =============== */

/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* Hero Content Below Banner */
.hero-content {
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(155, 89, 182, 0.05) 100%);
  padding: 60px 40px;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
  animation: fadeInUp 0.8s ease;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1.2s ease;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero button styles now handled by buttons.css */

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  border-radius: 2px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(155, 89, 182, 0.3);
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.05));
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.feature-icon.youtube-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon.youtube-logo img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.feature-card:hover .feature-icon.youtube-logo img {
  transform: scale(1.2);
  filter: drop-shadow(0 6px 12px rgba(255,0,0,0.5));
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
  filter: grayscale(0%);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.feature-link:hover {
  color: var(--accent-hover);
  transform: translateX(5px);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.05));
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  padding: 60px 20px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: scale(1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #9b59b6, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Recent Songs Section */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.song-card {
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.song-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}

.song-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.song-card-artist {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.song-card-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.song-card-language {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(155, 89, 182, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
  border: 1px solid var(--accent-color);
}

.song-card-language.original {
  background: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.song-card-translation {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(155, 89, 182, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px dashed var(--border-color);
  transition: all 0.3s ease;
}

.song-card:hover .song-card-translation {
  background: rgba(155, 89, 182, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  grid-column: 1 / -1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* View all button styles now handled by buttons.css */

/* YouTube CTA Section */
.youtube-cta {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(231, 76, 60, 0.15));
  border: 2px solid rgba(155, 89, 182, 0.3);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.youtube-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 0, 0, 0.05), transparent 70%);
  pointer-events: none;
}

.youtube-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  position: relative;
  z-index: 1;
}

.youtube-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.youtube-icon {
  margin-bottom: 20px;
  animation: bounce 2s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.youtube-icon .copito-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 8px 20px rgba(155, 89, 182, 0.4);
}

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

.youtube-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.youtube-title .paw-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.youtube-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* YouTube button styles now handled by buttons.css */

/* Coming Soon Banner */
.coming-soon-banner {
  padding: 40px 20px;
  text-align: center;
}

.coming-soon-text {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .hero-image {
    height: 400px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .hero-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .stats-container {
    flex-direction: column;
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .songs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .youtube-cta {
    padding: 40px 20px;
  }

  .youtube-title {
    font-size: 1.8rem;
  }

  .youtube-description {
    font-size: 1rem;
  }

  .youtube-icon {
    font-size: 3.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-image {
    height: 350px;
  }

  .hero-content {
    padding: 35px 20px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  /* Hero button responsive styles handled by buttons.css */

  .section-title {
    font-size: 1.7rem;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

