/* Sonora Recap Story & Statistics Dashboard Styles */

/* ---------------- RECAP LAUNCHPAD ---------------- */
.recap-hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  background: linear-gradient(135deg, #180d2b 0%, #0d0f22 50%, #080c14 100%),
              radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.4), transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(236, 72, 153, 0.3), transparent 50%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.recap-hero-text {
  max-width: 580px;
}

.recap-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.recap-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.recap-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.launch-story-btn {
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #0d0b1a;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.launch-story-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.5);
}

.recap-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.stat-metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.stat-metric-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------------- FULL-SCREEN STORY MODAL ---------------- */
.story-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #06050b;
  z-index: var(--z-story);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.story-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.story-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 860px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.story-progress-row {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.story-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-segment-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.05s linear;
}

.story-progress-segment.completed .story-progress-segment-fill {
  width: 100%;
}

.story-close-btn {
  position: absolute;
  top: 32px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #ffffff;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-nav-zones {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 5;
}

.story-nav-left {
  flex: 1;
  cursor: pointer;
}

.story-nav-right {
  flex: 2;
  cursor: pointer;
}

/* Slide Cards */
.story-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 36px;
  position: relative;
  z-index: 2;
}

.story-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  margin-bottom: 12px;
}

.story-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.story-hero-text {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.story-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 360px;
}

.story-artwork {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  margin-bottom: 28px;
}

.story-identity-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* ---------------- SHARE MODAL ---------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: #12121e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.share-card-preview-img {
  max-width: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 20px 0;
}

@media (max-width: 768px) {
  .recap-hero {
    flex-direction: column;
    padding: 32px 24px;
  }
  .recap-hero-title {
    font-size: 2.2rem;
  }
  .story-viewport {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .story-hero-text {
    font-size: 2.4rem;
  }
}
