/* ============================================================
   home.css — Styles specific to the Home page (index.html)
   ============================================================ */

/* --- HERO SECTION ------------------------------------------ */
.hero {
  min-height: 100vh;          /* Full viewport height */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;          /* Offset for fixed navbar */
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* Two equal columns */
  gap: var(--space-3xl);
  align-items: center;
}

/* Animated background orbs */
.hero-bg {
  position: absolute;
  inset: 0;              /* shorthand for top/right/bottom/left: 0 */
  pointer-events: none;  /* Don't block clicks */
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--color-accent);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--color-accent-2);
  top: 200px; right: -100px;
  animation-delay: 2s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: #ec4899;
  bottom: 0; left: 40%;
  animation-delay: 4s;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Hero content (left side) */
.hero-content {
  z-index: 1;
}

/* Scroll reveal — elements start invisible and slide up */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Hero Visual (right side) — vinyl disc */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.vinyl-disc {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    #1a1a2e, #16213e, #0f3460,
    #1a1a2e, #16213e, #533483,
    #1a1a2e, #16213e
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.4),
              inset 0 0 40px rgba(0,0,0,0.5);
  animation: spin 8s linear infinite;
  position: relative;
}

.vinyl-disc::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.05);
}

.vinyl-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-label {
  font-size: 1.5rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating cards over the vinyl */
.floating-card {
  position: absolute;
  background: rgba(19, 19, 26, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}

.card-1 {
  top: 10%;
  right: -20px;
  animation: floatCard 3s ease-in-out infinite;
}

.card-2 {
  bottom: 15%;
  left: -30px;
  animation: floatCard 3s ease-in-out infinite 1.5s;
}

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

/* --- FEATURED SECTION -------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-header .section-subtitle {
  margin-bottom: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Album art placeholder */
.album-art {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.art-1 { background-image: url('../images/FASS.webp'); background-size: cover; background-position: center; }
.art-2 { background-image: url('../images/light-stock.webp'); background-size: cover; background-position: center; }
.art-3 { background-image: url('../images/artur-aravidi.webp'); background-size: cover; background-position: center; }

/* Overlay with play button, visible on hover */
.album-art-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.album-art:hover .album-art-overlay {
  opacity: 1;
}

.play-btn-large {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-accent);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
}

.play-btn-large:hover {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
}

.new-badge { background: var(--color-success); }

/* Card body content */
.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-artist {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: 0.82rem;
}

.card-genre {
  color: var(--color-accent);
  font-weight: 500;
}

.card-duration { color: var(--color-text-muted); }

.card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* --- GENRE SECTION ----------------------------------------- */
.genre-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.genre-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.genre-icon {
  font-size: 2rem;
}

.genre-card:hover {
  border-color: var(--color-accent);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-4px);
  color: var(--color-accent);
}

/* --- RESPONSIVE for home.css ------------------------------- */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none; /* Hide vinyl on mobile to save space */
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
