/* ═══════════════════════════════════════════════════
   Component Styles (Player, Visualizer, Clock, Facts)
   ═══════════════════════════════════════════════════ */

/* ═══════════════ AUDIO VISUALIZER CANVAS ═══════════════ */

#audio-visualizer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

/* ═══════════════ MINI PLAYER ═══════════════ */

#music-player-bar {
  position: fixed;
  z-index: 9998;
  bottom: 24px;
  right: 24px;
  width: 300px;
  border-radius: 16px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: var(--g-card-bg);
  border: 1px solid var(--g-card-border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

#music-player-bar.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mini-player {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mini-art:hover { transform: scale(1.06); }

.mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mini-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--g-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-artist {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  color: var(--g-sub);
  opacity: 0.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mini-play-btn {
  width: 34px;
  height: 34px;
  font-size: 11px;
  border-radius: 50%;
  border: none;
  background: var(--g-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--g-accent), transparent 60%);
}

.mini-play-btn:hover { transform: scale(1.1); }

.mini-expand-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--g-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.mini-expand-btn::before {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 2px;
}

.mini-expand-btn:hover { opacity: 0.7; }

.mini-progress-bar { padding: 0 14px 10px; }

.mini-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  cursor: pointer;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g-accent), var(--g-name));
  border-radius: 99px;
  width: 0%;
  transition: width 0.15s linear;
}

/* ═══════════════ FULLSCREEN PLAYER ═══════════════ */

.full-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

.full-player-overlay.active {
  opacity: 1;
  visibility: visible;
}

.full-player-overlay::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: url('../assets/harvey.jpg') center/cover no-repeat;
  filter: blur(80px) brightness(0.18) saturate(1.5);
  opacity: 0.75;
}

.full-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  gap: 22px;
}

.full-player-overlay.active .full-player {
  animation: fullPlayerIn 0.4s ease-out both;
}

.full-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.full-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

.full-art {
  width: min(260px, 45vmin);
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: border-radius 0.6s ease;
}

.full-art.spinning {
  border-radius: 50%;
  animation: discSpin 20s linear infinite;
}

.full-info { text-align: center; }

.full-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: var(--g-heading);
  margin: 0 0 3px;
}

.full-artist {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(11px, 1.8vw, 14px);
  color: var(--g-sub);
  opacity: 0.45;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0;
}

.full-progress-section {
  width: 100%;
  max-width: 360px;
}

.full-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.full-track:hover { height: 6px; }

.full-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g-accent), var(--g-name));
  border-radius: 99px;
  width: 0%;
  position: relative;
  transition: width 0.15s linear;
}

.full-track-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.full-track:hover .full-track-fill::after {
  transform: translateY(-50%) scale(1);
}

.full-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.full-time-current,
.full-time-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--g-sub);
  opacity: 0.4;
}

.full-play-btn {
  width: 56px;
  height: 56px;
  font-size: 18px;
  border-radius: 50%;
  border: none;
  background: var(--g-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--g-accent), transparent 55%);
}

.full-play-btn:hover { transform: scale(1.08); }

.full-volume-section {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 180px;
}

.full-vol-icon {
  font-size: 14px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  flex-shrink: 0;
  color: var(--g-sub);
}

.full-vol-icon:hover { opacity: 0.8; }

.full-vol-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.full-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  margin-top: -4px;
}

.full-vol-slider::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.07);
}

.full-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
}

.full-vol-slider::-moz-range-progress {
  background: linear-gradient(90deg, var(--g-accent), var(--g-name));
  border-radius: 99px;
  height: 4px;
}

/* ═══════════════ PARALLAX CLOCK ═══════════════ */

.parallax-clock {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: clockFadeIn 3s 1.5s ease-out forwards;
  will-change: transform;
  font-family: 'Outfit', sans-serif;
}

.parallax-clock-h,
.parallax-clock-m {
  font-size: 22vh;
  font-weight: 900;
  color: var(--g-heading);
  opacity: 0.045;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.parallax-clock-sep {
  font-size: 16vh;
  font-weight: 800;
  color: var(--g-heading);
  opacity: 0.035;
  line-height: 0.9;
  margin: 0 0.02em;
  animation: sepPulse 2.5s ease-in-out infinite;
}

/* ═══════════════ CURSOR TRAIL ═══════════════ */

.cursor-trail-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50%;
  animation: trailFade 0.8s ease-out forwards;
}

/* ═══════════════ NAME FACTS ═══════════════ */

.name-gift-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9997;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--g-card-border);
  background: var(--g-card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--g-accent);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0;
  animation: giftAppear 0.8s 3.5s ease-out forwards;
}

.name-gift-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(0,0,0,0.35), 0 0 20px var(--g-name-glow);
  border-color: var(--g-accent);
}

/* Name fact modal */
.name-fact-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 24px;
}

.name-fact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.name-fact-card {
  max-width: 380px;
  width: 100%;
  background: var(--g-card-bg);
  border: 1px solid var(--g-card-border);
  border-radius: 24px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  padding: 36px 30px 28px;
  text-align: center;
  box-shadow: var(--g-card-glow);
  transform: scale(0.9) translateY(16px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.name-fact-overlay.active .name-fact-card {
  transform: scale(1) translateY(0);
}

.name-fact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--g-sub);
  opacity: 0.5;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.name-fact-name {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  color: var(--g-heading);
  margin-bottom: 2px;
  line-height: 1.2;
}

.name-fact-means {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--g-sub);
  opacity: 0.4;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.name-fact-label { display: none; }

.name-fact-arabic {
  font-family: 'Amiri', serif;
  font-size: 30px;
  color: var(--g-arabic);
  direction: rtl;
  line-height: 1.5;
  margin-bottom: 14px;
  opacity: 0.85;
}

.name-fact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--g-accent);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.name-fact-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--g-body);
  line-height: 1.8;
  font-weight: 300;
}

.name-fact-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-divider), transparent);
  margin: 20px auto;
  opacity: 0.35;
}

.name-fact-close {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--g-sub);
  opacity: 0.35;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 6px 12px;
}

.name-fact-close:hover { opacity: 0.8; }
