/* ==========================================================================
   Vayella Music Custom Styles
   Theme: Dark Premium Music Aesthetic (Cinematic, Modern, AI-inspired)
   ========================================================================== */

:root {
  /* Vayella Brand Colors */
  --vayella-bg: #050507;
  --vayella-bg-secondary: #0d0d12;
  --vayella-bg-card: rgba(20, 20, 30, 0.6);
  --vayella-accent-primary: #8a2be2; /* Deep electric violet */
  --vayella-accent-secondary: #e3009e; /* Soft neon blue */
  --vayella-text-main: #ffffff;
  --vayella-text-muted: #a0a0b0;
  --vayella-border: rgba(255, 255, 255, 0.08);
  
  /* Gradients */
  --vayella-gradient-text: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  --vayella-gradient-bg: linear-gradient(180deg, var(--vayella-bg) 0%, var(--vayella-bg-secondary) 100%);
  --vayella-gradient-card: linear-gradient(145deg, rgba(30, 30, 45, 0.8) 0%, rgba(15, 15, 20, 0.8) 100%);
  
  /* Typography */
  --font-vayella-heading: 'Plus Jakarta Sans', sans-serif;
  --font-vayella-body: 'Inter', sans-serif;
}

/* Base Overrides for Vayella Page */
body.vayella-page {
  background-color: var(--vayella-bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.1) 0%, rgba(5, 5, 7, 1) 50%);
  color: var(--vayella-text-main);
  font-family: var(--font-vayella-body);
}

.vayella-page h1, .vayella-page h2, .vayella-page h3, .vayella-page h4 {
  font-family: var(--font-vayella-heading);
  color: var(--vayella-text-main);
}

/* Typography Enhancements */
.text-gradient {
  background: var(--vayella-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.v-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

/* Abstract Background Elements */
.v-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.v-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--vayella-accent-primary);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--vayella-accent-secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

.v-hero-content {
  max-width: 800px;
  z-index: 2;
}

.v-hero-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--vayella-text-muted);
  margin-bottom: 1rem;
  display: block;
}

.v-hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.v-hero-section-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
  transform: scale(1.05);
  filter: blur(8px) brightness(0.3);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.v-hero:hover .v-hero-section-banner {
  opacity: 0.8;
  transform: scale(1);
  filter: blur(0px) brightness(0.5);
}

.v-hero-desc {
  font-size: 1.25rem;
  color: var(--vayella-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  transition: all 0.4s ease;
}

.v-hero:hover .v-hero-desc {
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0,0,0,1), 0 0 10px rgba(138, 43, 226, 0.6);
}

/* Buttons */
.v-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.v-btn-primary {
  background: var(--vayella-text-main);
  color: var(--vayella-bg);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.v-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(255,255,255,0.3);
}

.v-btn-secondary {
  background: transparent;
  color: var(--vayella-text-main);
  border: 1px solid var(--vayella-border);
  backdrop-filter: blur(10px);
}

.v-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

/* Equalizer Animation */
.v-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 30px;
  margin-bottom: 2rem;
}

.v-bar {
  width: 4px;
  background-color: var(--vayella-accent-primary);
  border-radius: 2px;
  animation: equalize 1s infinite alternate ease-in-out;
}

.v-bar:nth-child(1) { animation-duration: 0.9s; height: 10px; }
.v-bar:nth-child(2) { animation-duration: 1.2s; height: 25px; }
.v-bar:nth-child(3) { animation-duration: 0.8s; height: 15px; }
.v-bar:nth-child(4) { animation-duration: 1.5s; height: 30px; }
.v-bar:nth-child(5) { animation-duration: 1.1s; height: 20px; }

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.v-section {
  padding: 6rem 2rem;
}

.v-container {
  max-width: 1200px;
  margin: 0 auto;
}

.v-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.v-section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Featured Video
   ========================================================================== */
.v-featured-video {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--vayella-bg-card);
  border: 1px solid var(--vayella-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  margin-bottom: 3rem;
  group: featured;
  cursor: pointer;
}

.v-featured-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.v-featured-video:hover img {
  transform: scale(1.05);
}

.v-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.v-featured-video:hover .v-play-overlay {
  background: rgba(0,0,0,0.1);
}

.v-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  transition: all 0.3s ease;
}

.v-featured-video:hover .v-play-btn {
  transform: scale(1.1);
  background: var(--vayella-accent-primary);
  border-color: transparent;
}

/* ==========================================================================
   Video Grid
   ========================================================================== */
.v-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.v-video-card {
  background: var(--vayella-bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vayella-border);
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.v-video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.v-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.v-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.v-video-card:hover .v-video-thumb img {
  transform: scale(1.05);
}

/* Fix play button size for grid cards specifically */
.v-video-card .v-play-btn {
  width: 50px;
  height: 50px;
}

.v-video-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.v-video-title-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.v-video-number {
  color: var(--vayella-accent-primary);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.4;
}

.v-video-title {
  color: var(--vayella-text-main);
  font-size: 1.125rem;
  margin-bottom: 0;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.15rem; /* Forces consistent 2-line height */
}

.v-video-meta {
  color: var(--vayella-text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.875rem;
  margin-top: auto; /* Push to bottom to align consistently */
}

/* ==========================================================================
   Collaboration Section
   ========================================================================== */
.v-collab-section {
  background: var(--vayella-bg-secondary);
  border-top: 1px solid var(--vayella-border);
  border-bottom: 1px solid var(--vayella-border);
}

.v-collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.v-collab-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.v-collab-text p {
  font-size: 1.125rem;
  color: var(--vayella-text-muted);
  line-height: 1.7;
}

.v-collab-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--vayella-gradient-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--vayella-border);
  text-align: center;
}

.v-brand-box {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
}

.v-brand-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.v-brand-box p {
  color: var(--vayella-text-muted);
  font-size: 0.875rem;
}

.v-collab-icon {
  font-size: 1.5rem;
  color: var(--vayella-accent-primary);
}

/* ==========================================================================
   Behind the Music (Features)
   ========================================================================== */
.v-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.v-feature-card {
  padding: 2.5rem 2rem;
  background: var(--vayella-bg-card);
  border-radius: 20px;
  border: 1px solid var(--vayella-border);
  transition: all 0.3s ease;
}

.v-feature-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.15);
}

.v-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--vayella-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.v-feature-card p {
  color: var(--vayella-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   YouTube CTA Section
   ========================================================================== */
.v-cta-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.v-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,5,7,1) 0%, rgba(138,43,226,0.15) 100%);
  z-index: -1;
}

.v-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes equalize {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .v-collab-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .v-hero-title {
    font-size: 2.5rem;
  }
  
  .v-section {
    padding: 4rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v-hero-orb, .v-bar {
    animation: none;
  }
  .v-video-card:hover, .v-btn-primary:hover, .v-featured-video:hover img {
    transform: none;
  }
}
