/* ==========================================================================
   SnapViewer Modern Theme & Styles
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --snap-yellow: #FFFC00;
  --snap-yellow-hover: #FFF000;
  --snap-yellow-glow: rgba(255, 252, 0, 0.25);
  --snap-yellow-dark: #CCA800;

  /* Dark Mode (Default) */
  --bg-primary: #0A0D14;
  --bg-secondary: #121722;
  --bg-card: #161C2A;
  --bg-card-hover: #1E2538;
  --border-subtle: #252D3F;
  --border-focus: #FFFC00;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(255, 252, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-focus: #CCA800;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(255, 252, 0, 0.3);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Ambient Glow */
.glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 252, 0, 0.08) 0%, rgba(255, 252, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--snap-yellow);
  color: #000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--snap-yellow-glow);
}

.snap-ghost {
  width: 24px;
  height: 24px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name .highlight {
  color: var(--snap-yellow);
}

[data-theme="light"] .brand-name .highlight {
  color: #D97706;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 252, 0, 0.15);
  color: var(--snap-yellow);
  border: 1px solid rgba(255, 252, 0, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

[data-theme="light"] .brand-badge {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  border-color: var(--snap-yellow);
  color: var(--snap-yellow);
}

.sun-icon { display: none; width: 20px; height: 20px; }
.moon-icon { display: block; width: 20px; height: 20px; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin: 20px auto 40px;
  max-width: 800px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 252, 0, 0.1);
  color: var(--snap-yellow);
  border: 1px solid rgba(255, 252, 0, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

[data-theme="light"] .hero-pill {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--snap-yellow) 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #D97706 0%, #0F172A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Search Box */
.search-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.search-box {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--snap-yellow);
  box-shadow: 0 0 20px var(--snap-yellow-glow);
}

.search-icon-box {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-family: inherit;
  min-width: 100px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-util-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-util-btn svg {
  width: 15px;
  height: 15px;
}

.search-util-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.search-submit-btn {
  background: var(--snap-yellow);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 252, 0, 0.3);
}

.search-submit-btn:hover {
  background: var(--snap-yellow-hover);
  transform: translateY(-1px);
}

.arrow-icon {
  width: 18px;
  height: 18px;
}

/* Trending Chips */
.trending-tags {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trending-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.creator-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--snap-yellow);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Alert Boxes */
.alert-box {
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideDown 0.3s ease;
}

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

.alert-icon {
  font-size: 1.4rem;
}

.alert-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.alert-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.alert-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Skeletons */
.loading-container {
  max-width: 1000px;
  margin: 40px auto;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-profile-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}

.skeleton-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 18px;
}

.title-line { width: 40%; height: 26px; }
.sub-line { width: 25%; }
.badge-line { width: 60%; }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.skeleton-card {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
}

/* Results Section */
.results-section {
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

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

/* Profile Card */
.profile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 3px solid var(--border-subtle);
}

.story-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 3px solid var(--snap-yellow);
  display: none;
}

.pulse-ring {
  box-shadow: 0 0 15px var(--snap-yellow-glow);
  animation: ringPulse 2s infinite ease-in-out;
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.profile-details {
  flex: 1;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.verified-badge {
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
}

.verified-badge svg {
  width: 22px;
  height: 22px;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-handle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.subscribers-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
  max-width: 650px;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Content Tabs */
.content-tabs-container {
  margin-bottom: 24px;
}

.tabs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.tabs-list {
  display: flex;
  gap: 10px;
}

.btn-download-all {
  background: linear-gradient(135deg, var(--snap-yellow) 0%, #F59E0B 100%);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255, 252, 0, 0.25);
  transition: var(--transition);
}

.btn-download-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 252, 0, 0.4);
}

.zip-icon {
  width: 17px;
  height: 17px;
}

.zip-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-icon {
  width: 18px;
  height: 18px;
}

.tab-count {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
}

.tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--snap-yellow);
  color: #000;
}

.tab-btn.active .tab-count {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
  border-color: rgba(0, 0, 0, 0.2);
}

/* Highlight Collections Filter */
.highlight-filter-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.collection-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.collection-pill:hover,
.collection-pill.active {
  background: var(--bg-card-hover);
  border-color: var(--snap-yellow);
  color: var(--text-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Snaps Grid */
.snaps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.snap-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.snap-card:hover {
  transform: translateY(-4px);
  border-color: var(--snap-yellow);
  box-shadow: var(--shadow-md);
}

.snap-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.snap-card:hover .snap-thumb {
  transform: scale(1.05);
}

.snap-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  pointer-events: none;
}

.snap-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.snap-type-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

.snap-type-badge.video {
  color: var(--snap-yellow);
}

.snap-time-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.snap-play-center {
  align-self: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 252, 0, 0.85);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.snap-play-center svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.snap-card:hover .snap-play-center {
  opacity: 1;
  transform: scale(1);
}

.snap-bottom-actions {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.btn-preview {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-preview:hover {
  background: rgba(255, 255, 255, 0.35);
}

.btn-download-snap {
  flex: 1.2;
  background: var(--snap-yellow);
  color: #000;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-snap:hover {
  background: var(--snap-yellow-hover);
  transform: translateY(-1px);
}

.btn-download-snap.downloading {
  opacity: 0.8;
  cursor: wait;
}

.btn-download-snap svg {
  width: 15px;
  height: 15px;
}

/* Features & Steps Section */
.features-section,
.steps-section,
.faq-section {
  margin: 80px auto;
  max-width: 1000px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--snap-yellow);
  transform: translateY(-2px);
}

.feature-icon-box {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.step-item {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--snap-yellow);
  color: #000;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.step-arrow {
  font-size: 1.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--snap-yellow);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Full-Screen Vertical Story Viewer Modal */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

.modal-container {
  position: relative;
  z-index: 101;
  width: 100%;
  max-width: 420px;
  height: 92vh;
  max-height: 840px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--snap-yellow);
  object-fit: cover;
}

.modal-user-meta {
  display: flex;
  flex-direction: column;
}

.modal-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.modal-snap-time {
  font-size: 0.7rem;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-action-btn {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.download-btn {
  padding: 6px 14px;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--snap-yellow);
  color: #000;
  border: none;
}

.download-btn svg {
  width: 14px;
  height: 14px;
}

.download-btn:hover {
  background: var(--snap-yellow-hover);
}

.close-btn {
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
}

/* Story Progress Bars */
.progress-bar-container {
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 4px;
  height: 3px;
}

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

.progress-fill {
  height: 100%;
  background: var(--snap-yellow);
  width: 0%;
  transition: width 0.1s linear;
}

.progress-fill.filled { width: 100%; }

/* Modal Media Screen */
.modal-media-screen {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}

.modal-media-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.touch-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 5;
  cursor: pointer;
}

.touch-left { left: 0; }
.touch-right { right: 0; }

.side-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: var(--transition);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.side-nav-btn:hover {
  background: rgba(255, 252, 0, 0.85);
  color: #000;
  border-color: var(--snap-yellow);
}

.modal-footer {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.snap-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--snap-yellow);
}

.snap-caption {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 40px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 8px;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--snap-yellow);
}

/* Utilities */
.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .search-box { padding: 6px 8px 6px 14px; }
  .search-submit-btn { padding: 10px 16px; font-size: 0.9rem; }
  .btn-label { display: none; }
  .profile-card { flex-direction: column; text-align: center; gap: 18px; padding: 20px; }
  .profile-avatar-wrap { margin: 0 auto; }
  .profile-title-row, .profile-handle-row { justify-content: center; }
  .profile-stats { justify-content: center; }
  .steps-container { flex-direction: column; gap: 24px; }
  .step-arrow { transform: rotate(90deg); }
  .modal-container { height: 100vh; max-height: 100vh; border-radius: 0; }
  .snaps-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .search-submit-btn .submit-text { display: none; }
  .search-submit-btn { padding: 10px 14px; }
}
