/* css/pages/subscriptions.css — Subscriptions Page with SVG Animation */

/* === Empty State Layout === */
.subs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-10) var(--space-5);
}

.subs-empty-state__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subs-empty-state__text {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  max-width: 360px;
  margin-bottom: var(--space-6);
}

.subs-empty-state__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary-ghost);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.subs-empty-state__cta:hover {
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* === SVG Animation Container === */
.subs-empty-animation {
  width: 160px;
  height: 160px;
  margin-bottom: var(--space-4);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.subs-empty-animation:hover {
  transform: scale(1.1) translateY(-4px);
}

.subs-empty-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---- Circle draws in ---- */
.subs-svg-ring {
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: subsRingDraw 0.5s ease-out 0.05s forwards;
}

@keyframes subsRingDraw {
  to { stroke-dashoffset: 0; }
}

/* ---- Disc fades in ---- */
.subs-svg-disc {
  opacity: 0;
  animation: subsDiscFade 0.35s ease 0.15s forwards;
}

@keyframes subsDiscFade {
  to { opacity: 0.12; }
}

/* ---- Pulse ring ---- */
.subs-svg-pulse {
  transform-origin: center;
  animation: subsPulse 3s ease-in-out infinite 0.6s;
  opacity: 0;
}

@keyframes subsPulse {
  0% { transform: scale(1); opacity: 0; }
  10% { opacity: 0.4; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- Bell pops out ---- */
.subs-svg-bell {
  transform: translateY(10px) scale(0.7);
  opacity: 0;
  transform-origin: 100px 85px;
  animation: subsBellPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}

@keyframes subsBellPop {
  0% { transform: translateY(10px) scale(0.7); opacity: 0; }
  60% { transform: translateY(-4px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---- Bell back shadow fades in ---- */
.subs-svg-bell-back {
  opacity: 0;
  animation: subsBellBackFade 0.3s ease 0.35s forwards;
}

@keyframes subsBellBackFade {
  to { opacity: 1; }
}

/* ---- Bell ringing (subtle tilt) ---- */
.subs-svg-bell {
  animation: subsBellPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards,
             subsBellRing 2s ease-in-out infinite 0.8s;
}

@keyframes subsBellRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(6deg); }
  20% { transform: rotate(-5deg); }
  30% { transform: rotate(4deg); }
  40% { transform: rotate(-2deg); }
  50%, 100% { transform: rotate(0deg); }
}

/* ---- Sound waves ---- */
.subs-wave {
  opacity: 0;
  transform-origin: 100px 85px;
  animation: subsWavePulse 2.5s ease-in-out infinite;
}

.subs-wave-1 { animation-delay: 0.7s; }
.subs-wave-2 { animation-delay: 0.9s; }
.subs-wave-3 { animation-delay: 0.7s; }
.subs-wave-4 { animation-delay: 0.9s; }

@keyframes subsWavePulse {
  0% { opacity: 0; }
  15% { opacity: 0.7; }
  50% { opacity: 0.5; }
  100% { opacity: 0; }
}

/* ---- Floating idle ---- */
.subs-empty-animation .subs-empty-svg {
  animation: subsFloat 5s ease-in-out infinite 0.8s;
}

@keyframes subsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- Sparkles ---- */
.subs-sparkle {
  opacity: 0;
  animation: subsSparklePop 2.2s ease-in-out infinite;
}

.subs-sparkle-1 { animation-delay: 0.4s; }
.subs-sparkle-2 { animation-delay: 0.6s; }
.subs-sparkle-3 { animation-delay: 0.8s; }
.subs-sparkle-4 { animation-delay: 1.0s; }
.subs-sparkle-5 { animation-delay: 0.5s; }

@keyframes subsSparklePop {
  0% { opacity: 0; transform: scale(0); }
  15% { opacity: 1; transform: scale(1.3); }
  30% { opacity: 0.8; transform: scale(1); }
  70% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .subs-empty-animation {
    width: 120px;
    height: 120px;
  }

  .subs-empty-state__title {
    font-size: var(--fs-xl);
  }
}

/* === New Mod Badge === */
.subs-new-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  animation: subsNewPulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes subsNewPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.15); }
}
