/* 
   Magical Records Coming Soon - Premium Styling
   Design System: Deep Cosmic Space & Electric Neon
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #07070c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 240, 255, 0.4);
  
  /* Brand Colors */
  --primary-glow: #ff007f;
  --secondary-glow: #00f0ff;
  --violet-glow: #8a2be2;
  
  --text-primary: #ffffff;
  --text-muted: #8e92a2;
  
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ambient Animated Gradients */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.08) 0%, transparent 50%);
  filter: blur(80px);
}

.blob-1, .blob-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  background: var(--primary-glow);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  background: var(--secondary-glow);
  bottom: -15%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 50px) scale(1.2) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
  }
}

/* Grid Layout Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* Header */
header {
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-glow), var(--violet-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--bg-dark);
  border-radius: 50%;
}

.logo-text span {
  background: linear-gradient(135deg, var(--text-primary), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-badge {
  display: flex;
  gap: 0.5rem;
}

.badge-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.badge-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-glow);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

/* Main Container */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 5%;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.tagline-container {
  display: inline-block;
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid rgba(255, 0, 127, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px rgba(255, 0, 127, 0.1); }
  100% { box-shadow: 0 0 15px rgba(255, 0, 127, 0.3); }
}

.tagline {
  color: var(--primary-glow);
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-family: var(--font-header);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 60%, var(--secondary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Split Content Grid (Player & Form side-by-side on desktop) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Music Visualizer Widget */
.music-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.music-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
}

.music-widget:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(138, 43, 226, 0.1);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.album-art {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e1e30, #2c2c4d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.album-art::after {
  content: '🎵';
  animation: disc-spin 6s linear infinite;
  animation-play-state: paused;
}

.playing .album-art::after {
  animation-play-state: running;
}

@keyframes disc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.track-info {
  flex: 1;
}

.track-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.track-artist {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.visualizer-container {
  height: 120px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

#canvas-visualizer {
  width: 100%;
  height: 100%;
  display: block;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
  background: var(--secondary-glow);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.playing .play-btn svg {
  margin-left: 0;
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar-wrapper {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Glassmorphic Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.form-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(255, 0, 127, 0.1);
}

.form-title {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: #4b526d;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-glow);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15),
              inset 0 0 8px rgba(0, 240, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--violet-glow) 100%);
  border: none;
  border-radius: 12px;
  padding: 1.1rem;
  color: #ffffff;
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 0, 127, 0.5);
  background: linear-gradient(135deg, #ff1a8c 0%, #993bf0 100%);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Success/Error Alerts */
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.4s ease-out;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Music Store Grid Preview */
.stores-section {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-header);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.store-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.store-icon {
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--secondary-glow), var(--violet-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

.store-card:hover .store-icon {
  transform: scale(1.1);
}

.store-name {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1rem;
}

.store-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Footer Section */
footer {
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(7, 7, 12, 0.4);
  backdrop-filter: blur(20px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 10;
  position: relative;
}

/* Neon divider top glow line */
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary-glow), var(--primary-glow), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.35);
}

.footer-logo-icon::after {
  width: 10px;
  height: 10px;
}

.footer-credits {
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.designer-link {
  color: var(--secondary-glow);
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: var(--transition-smooth);
}

.designer-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--secondary-glow), var(--primary-glow));
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.designer-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 0.75rem;
    text-align: center;
  }
}

.footer-copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.footer-credits {
  font-family: var(--font-header);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Countdown Timer Widget */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem auto 3rem;
  max-width: 600px;
  width: 100%;
}

.countdown-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.countdown-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-glow), var(--violet-glow));
}

.countdown-val {
  display: block;
  font-family: var(--font-header);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-weight: 600;
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .countdown-container {
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.25rem;
  }
  .countdown-item {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.25rem;
    border-radius: 12px;
  }
  .countdown-val {
    font-size: 1.4rem;
  }
  .countdown-label {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }
}

/* Micro animations */
@keyframes glow-pulse {
  0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
  100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); }
}
