/* ==========================================================================
   SongFlip – Universal Web Share Landing Page Stylesheet
   Used by /s/:hash redirects (Cloud Functions & Static Mirror)
   ========================================================================== */

:root {
  --bg: #0b0f17;
  --card-bg: rgba(22, 27, 34, 0.75);
  --card-bg-404: rgba(22, 27, 34, 0.85);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Blurred Glow */
.ambient-bg-cover {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  filter: blur(80px) brightness(0.25) saturate(1.4);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.ambient-bg-404 {
  position: fixed;
  top: -30%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 28px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.container-404 {
  background: var(--card-bg-404);
  padding: 36px 24px 28px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

/* 404 Elements */
.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.icon-symbol {
  font-size: 38px;
  line-height: 1;
}

.badge-status {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 360px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

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

/* Cover Art & Headings */
.cover-art-container {
  width: 220px;
  height: 220px;
  margin-bottom: 20px;
  position: relative;
}

.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.type-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.song-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artist-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Platform Streaming Buttons */
.platforms-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.platform-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.platform-btn:active {
  transform: scale(0.98);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-name {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  text-align: left;
  margin-left: 14px;
}

.platform-action {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  padding: 6px 14px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Service Brand Custom Themes */
.platform-spotify .platform-icon { color: #1DB954; }
.platform-spotify .platform-action { background: #1DB954; }
.platform-spotify:hover .platform-action { background: #1aa34a; }

.platform-appleMusic .platform-icon { color: #FC3C44; }
.platform-appleMusic .platform-action { background: #FC3C44; }
.platform-appleMusic:hover .platform-action { background: #e0333b; }

.platform-youtubeMusic .platform-icon { color: #FF0000; }
.platform-youtubeMusic .platform-action { background: #FF0000; }
.platform-youtubeMusic:hover .platform-action { background: #e60000; }

.platform-deezer .platform-icon { color: #A238FF; }
.platform-deezer .platform-action { background: #A238FF; }
.platform-deezer:hover .platform-action { background: #8e2fe0; }

.platform-tidal .platform-icon { color: #00FFFF; }
.platform-tidal .platform-action { background: #00FFFF; }
.platform-tidal:hover .platform-action { background: #00d6d6; }

.platform-amazonMusic .platform-icon { color: #25D1DA; }
.platform-amazonMusic .platform-action { background: #25D1DA; }
.platform-amazonMusic:hover .platform-action { background: #1fbac2; }

/* Footer */
.footer-app {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #f0f6fc;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.brand-text {
  font-size: 14px;
  color: #e2e8f0;
}

.brand-text strong {
  color: #34d399;
}

.footer-subtext {
  font-size: 12px;
  color: var(--text-muted);
}
