/* public/style.css — premium • modern • responsive */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

:root{
  --bg:#0f1724;               /* deep navy */
  --card:#0b1220;             /* darker card */
  --muted:#9aa4b2;
  --accent:#f59e0b;           /* warm gold */
  --accent-2:#ec4899;        /* magenta highlight */
  --glass: rgba(255,255,255,0.04);
  --soft: rgba(255,255,255,0.02);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071124 0%, #08142a 50%, #0b1220 100%);
  color:#e6eef8;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:28px;
}

/* container */
.container{max-width:1100px;margin:0 auto;padding:8px}

/* hero */
.hero{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:28px;
  align-items:center;
  margin-bottom:28px;
}
.album-art{
  width:100%;
  max-width:360px;
  aspect-ratio:1/1;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6), inset 0 -8px 24px rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  display:flex;
  align-items:center;
  justify-content:center;
}
.album-art img{ width:100%; height:100%; object-fit:cover }

/* hero text */
.hero .meta h1{
  font-family: 'Playfair Display', serif;
  font-size:42px;
  line-height:1.02;
  margin:0 0 6px;
  letter-spacing:-0.02em;
  color:#fff;
}
.hero .meta p.lead{
  margin:0 0 16px;
  color:var(--muted);
  font-size:15px;
}
.cta-row{display:flex;gap:12px;align-items:center}
.btn{
  background: linear-gradient(90deg,var(--accent),#f97316);
  color:#081124;
  padding:12px 18px;
  border-radius:12px;
  border:none;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(245,158,11,0.12);
  text-decoration:none;
}
.btn.secondary{
  background: transparent;
  color:var(--muted);
  border:1px solid rgba(255,255,255,0.04);
  padding:10px 16px;
  border-radius:12px;
}

/* consent/form card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:14px;
  padding:18px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgba(2,6,23,0.5);
}

/* form fields */
input[type="text"], input[type="email"], input[type="number"], input[type="file"]{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  background:transparent;
  color:var(--muted);
  margin-bottom:10px;
  outline:none;
}
.form-row{display:flex;gap:10px}
.form-row > *{flex:1}

/* participants grid */
.participants-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap:12px;
  margin-top:18px;
}
.p{
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  padding:8px;
  border-radius:10px;
  text-align:center;
  border:1px solid rgba(255,255,255,0.02);
}
.p img{ width:100%; height:120px; object-fit:cover; border-radius:8px; margin-bottom:8px }

/* message notice */
.notice{
  padding:12px;border-radius:10px;margin-top:12px;
}
.notice.success{background:linear-gradient(90deg, rgba(34,197,94,0.08), rgba(16,185,129,0.03)); color:#b9f6d1; border:1px solid rgba(34,197,94,0.08)}

/* player page refinements */
.player-card{
  max-width:900px;margin:18px auto;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:18px;border-radius:14px;border:1px solid rgba(255,255,255,0.03)
}
.track{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;border-bottom:1px solid rgba(255,255,255,0.02)}
.track:last-child{border-bottom:none}
.track .meta{flex:1}
.track .meta h4{margin:0;font-size:16px;color:#fff}
.track .meta p{margin:0;color:var(--muted);font-size:13px}
.track .actions{display:flex;gap:8px;align-items:center}

/* responsive */
@media (max-width:880px){
  .hero{grid-template-columns: 1fr; text-align:center}
  .album-art{margin:0 auto; max-width:320px}
  .cta-row{justify-content:center}
}

/* === Truvida Launch Album UI Upgrade === */
body {
  background-color: #0b0b0b;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(circle at top, #1a1a1a 0%, #000 100%);
}

.album-cover {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.6);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.album-cover:hover {
  transform: scale(1.05);
}

.support-btn {
  margin-top: 20px;
  padding: 12px 30px;
  background: linear-gradient(90deg,var(--accent),#f97316);
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.support-btn:hover {
  background: #1ed760;
  box-shadow: 0 0 20px #1ed760;
}

/* Toast Notification */
.toast-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(30, 215, 96, 0.95);
  color: #000;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 0 20px #1ed760;
  animation: fadein 0.5s, fadeout 0.5s 4.5s;
}
@keyframes fadein { from {opacity: 0;} to {opacity: 1;} }
@keyframes fadeout { from {opacity: 1;} to {opacity: 0;} }

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}
.loader.hidden { display: none; }
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.2);
  border-top-color: #1ed760;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(105, 103, 103, 0.25);
}

.video-container hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
  filter: brightness(1.25) saturate(1.5);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.watch-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 1.2s forwards 0.8s;
}

.watch-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffcc00;
  transform: translate(-50%, -50%) scale(1.05);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Fade-in animation for participant gallery */
.p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.p.visible {
  opacity: 1;
  transform: translateY(0);
}

#cropArea { text-align:center; margin-top:8px; }
#cropPreview { border: 1px solid rgba(255,255,255,0.04); border-radius:10px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); }

/* ===== Launch.art: crop modal overlay (prevents pushing layout on small screens) ===== */
#cropArea {
  position: fixed !important;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 720px;
  max-height: 88vh;
  background: rgba(11,11,11,0.96); /* dark but semi-transparent — adjust if needed */
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  overflow: auto; /* allow internal scrolling for tall images */
  display: none;  /* script toggles display:block when needed */
}

/* inner preview area: constrain image/canvas inside crop area */
#cropArea img,
#cropArea canvas,
#cropPreview {
  max-width: 100%;
  max-height: calc(78vh); /* leave space for controls */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain; /* avoid stretching; center the crop preview */
}

/* ensure buttons are visible and pinned below preview */
#cropArea .crop-controls {
  margin-top: 10px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

/* when modal open, prevent body from scrolling */
body.modal-open {
  overflow: hidden;
}

/* small screens tweak: ensure it's not too big */
@media (max-width: 420px) {
  #cropArea { padding:10px; width: 96vw; max-height: 86vh; }
  #cropArea img, #cropArea canvas, #cropPreview { max-height: calc(72vh); }
}
