/* Yamazaki Platform — Shared Styles */

:root {
  --bg:          #080808;
  --card-bg:     #111111;
  --card-border: #1e1e1e;
  --accent:      #4BA8C8;   /* Beni teal — primary */
  --accent-gold: #ffcc00;   /* secondary gold */
  --accent-pink: #D4727A;   /* Beni pink */
  --accent-brown: #8B6914;  /* Beni warm brown */
  --accent-cream: #F0E6C8;  /* Beni cream */
  --text:        #ffffff;
  --text-secondary: #9a9080; /* warm grey tint */
  --text-muted:  #5a5248;   /* warm muted */
  --spotify:     #1DB954;
  --discord:     #5865F2;
  --apple:       #fc3c44;
  --youtube:     #ff0000;
  --tiktok:      #000000;
  --radius:      16px;
  --radius-lg:   24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Immersive background layer ───────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url('/assets/bg-yamazaki-vr.webp') center 20% / cover no-repeat;
  filter: blur(6px) saturate(1.1) brightness(1.0);
  transform: scale(1.15);
  animation: bgDrift 30s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { transform: scale(1.15) translate(0, 0); }
  50%  { transform: scale(1.18) translate(-1%, -0.5%); }
  100% { transform: scale(1.15) translate(0.5%, 0.3%); }
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(75,168,200,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212,114,122,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 40%, rgba(8,8,8,0.1) 0%, rgba(8,8,8,0.4) 50%, rgba(8,8,8,0.65) 100%);
}

/* Subtle noise overlay for texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Floating particle canvas lives behind content */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

body {
  background: transparent;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Cards — glass morphism */
.card {
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  color: #000;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-gold { background: var(--accent-gold); color: #000; }
.btn-spotify { background: var(--spotify); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-apple { background: var(--apple); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 10px; }

/* Section headers */
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin: 24px 0 12px;
}

/* DSP grid */
.dsp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dsp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s;
}
.dsp-btn:hover { border-color: var(--text-secondary); }
.dsp-icon { width: 20px; height: 20px; }

/* Cover art */
.cover-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 16px;
}

/* Audio preview */
.preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
}

/* Email form */
.email-form {
  display: flex;
  gap: 8px;
}
.email-input {
  flex: 1;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.email-input:focus { border-color: var(--accent); }
.email-input::placeholder { color: var(--text-muted); }

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.checkbox-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Consent banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
  font-size: 13px;
  color: var(--text-secondary);
}
.consent-banner a { color: var(--accent); }
.consent-banner .consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-banner .btn { width: auto; padding: 8px 16px; font-size: 12px; }
.consent-banner.hidden { display: none; }

/* Success state */
.success-msg {
  text-align: center;
  padding: 20px;
  color: var(--spotify);
  font-weight: 600;
}

/* Social links row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}
.social-icon {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.social-icon:hover { opacity: 1; }

/* Avatar */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; }
.hidden { display: none !important; }
