/* ========== Mon Music Studio - Custom Styles ========== */

/* Reliable base background/text so the dark theme never flashes white
   even before Tailwind (CDN) loads. Matches bg-dark-900 / text-white. */
html, body { background-color: #05050a; }
body { color: #ffffff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a12; }
::-webkit-scrollbar-thumb { background: #3b3b55; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5b5b75; }

.glass-card {
  background: rgba(26, 26, 40, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card {
  background: rgba(26, 26, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: rgba(36, 36, 58, 0.7);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.platform-card {
  background: rgba(26, 26, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  transition: all 0.25s ease;
  min-height: 110px;
}
.platform-card:hover {
  background: rgba(36, 36, 58, 0.8);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-3px);
  color: white;
}

.pricing-card {
  background: rgba(26, 26, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
}
.pricing-featured {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(26, 26, 40, 0.8) 40%);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.testimonial-card {
  background: rgba(26, 26, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(36, 36, 58, 0.6);
}


.faq-item {
  background: rgba(26, 26, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.1); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-question:hover { background: rgba(255, 255, 255, 0.02); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-answer p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-bottom: 1.25rem;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

#navbar.scrolled {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: white;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Form styles */
/* Release status badges (My Releases listing) */
.rel-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.rel-draft     { background: rgba(148,163,184,0.15); color: #cbd5e1; border-color: rgba(148,163,184,0.25); }
.rel-pending,
.rel-in_review { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.28); }
.rel-approved,
.rel-live,
.rel-published,
.rel-released  { background: rgba(34,197,94,0.15); color: #86efac; border-color: rgba(34,197,94,0.28); }
.rel-rejected  { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.28); }

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(26, 26, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: #8b5cf6;
}
.form-input::placeholder {
  color: #6b7280;
}

/* Page header */
.page-header {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
}


/* ========== Responsive polish ========== */
@media (max-width: 640px) {
  .page-header {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }
  .page-header h1 {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  /* Cards & sections tighter on mobile */
  section {
    scroll-margin-top: 4.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .page-header {
    padding-top: 7rem;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  #navbar .site-shell {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  #mobile-menu {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
}

/* Mobile menu links touch-friendly */
#mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Navbar brand never overflow */
#navbar a.group {
  min-width: 0;
  max-width: calc(100vw - 5.5rem);
}
#navbar a.group span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tablet: slightly tighter hero gaps already handled by Tailwind */

/* Desktop hero visual stability */
@media (min-width: 1024px) {
  .glass-card {
    backdrop-filter: blur(12px);
  }
}

/* ========== Hologram / Iridescent Text Effect ========== */
.hologram-text {
  background: linear-gradient(
    90deg,
    #ff0080,
    #ff8c00,
    #40e0d0,
    #7b68ee,
    #00ff9d,
    #ff0080
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hologram-shift 3.5s linear infinite;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes hologram-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* ===== Site shell width (FINAL) — bypasses Tailwind CDN max-w-7xl =====
   Mobile/tablet: normal padding, full fluid width.
   Desktop 1280+: content up to 1440px, modest side pad so gutters shrink. */
.site-shell {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .site-shell {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 1280px) {
  .site-shell {
    max-width: 90rem; /* 1440px */
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}
/* Extra-wide monitors: keep a little edge air, still wider than old 1280 shell */
@media (min-width: 1600px) {
  .site-shell {
    max-width: 92rem; /* ~1472 */
  }
}

/* ===== Brand lock: MON MUSIC STUDIO — always white + uppercase ===== */
#navbar a.group span.font-display,
#navbar .font-display.font-bold,
footer .font-display.font-bold {
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
  -webkit-text-fill-color: #ffffff !important;
}
