/* ════════════════════════════════════════════
   styles.css — TikTok Fan Page Design System
   Dark glassmorphism · Neon pink/teal palette
   ════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --neon-pink:    #ee1d52;
  --neon-teal:    #69c9d0;
  --neon-purple:  #9b5de5;
  --bg-deep:      #070710;
  --bg-mid:       #0e0e1e;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-hover:rgba(255,255,255,0.08);
  --border:       rgba(255,255,255,0.09);
  --border-hover: rgba(105,201,208,0.35);
  --text-primary: #f0f0f8;
  --text-muted:   rgba(240,240,248,0.5);
  --text-dim:     rgba(240,240,248,0.28);
  --radius-card:  16px;
  --radius-pill:  999px;
  --shadow-glow-pink: 0 0 40px rgba(238,29,82,0.25);
  --shadow-glow-teal: 0 0 40px rgba(105,201,208,0.2);
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Animated Orbs ── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--neon-pink);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--neon-teal);
  bottom: 10%; right: -100px;
  animation-delay: -6s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: var(--neon-purple);
  top: 50%; left: 40%;
  animation-delay: -12s;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-40px) scale(1.05); }
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,16,0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
}
.header-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}
.hero-content { max-width: 700px; }

/* Avatar */
.avatar-ring {
  --avatar-glow: var(--neon-teal);
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-teal));
  padding: 3px;
  margin: 0 auto 28px;
  box-shadow: 0 0 30px rgba(105,201,208,0.35), 0 0 60px rgba(238,29,82,0.2);
  animation: avatarPulse 4s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,100% { box-shadow: 0 0 30px rgba(105,201,208,0.35), 0 0 60px rgba(238,29,82,0.2); }
  50%      { box-shadow: 0 0 50px rgba(105,201,208,0.55), 0 0 90px rgba(238,29,82,0.35); }
}
.avatar-placeholder, .avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover;
  background: var(--bg-mid);
  display: flex; align-items: center; justify-content: center;
}

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-teal) 60%, var(--neon-pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  animation: fadeUp 0.7s ease both;
}
.hero-tagline {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.1s ease both;
}

/* Stats */
.hero-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  backdrop-filter: blur(10px);
}
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
}

/* CTA Button */
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--neon-pink), #c0156b);
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(238,29,82,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.7s 0.3s ease both;
}
.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 36px rgba(238,29,82,0.55);
}
.cta-arrow { transition: transform var(--transition); }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--neon-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}

/* ── Gallery Section ── */
.gallery-section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 60px 24px 80px;
}
.gallery-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.gallery-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem; font-weight: 700;
}
.sort-controls { display: flex; gap: 8px; }
.sort-btn {
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  cursor: pointer; transition: all var(--transition);
}
.sort-btn:hover  { border-color: var(--neon-teal); color: var(--neon-teal); }
.sort-btn.active { background: var(--neon-teal); border-color: var(--neon-teal); color: #0a0a18; font-weight: 600; }

/* ── Video Grid ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Skeleton loaders */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.skeleton-card {
  border-radius: var(--radius-card);
  aspect-ratio: 9/16;
  max-height: 380px;
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Video Cards ── */
.video-card {
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: cardFadeIn 0.5s ease both;
  backdrop-filter: blur(8px);
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.video-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-teal);
}
.card-thumb-wrap {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 340px;
  overflow: hidden;
  background: var(--bg-mid);
}
.card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .card-thumb { transform: scale(1.04); }

.thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-mid);
}
.card-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.video-card:hover .card-overlay { opacity: 1; }
.overlay-play {
  font-size: 2.5rem; color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transform: scale(0.85); transition: transform var(--transition);
}
.video-card:hover .overlay-play { transform: scale(1); }

.card-body { padding: 14px 14px 16px; }
.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; font-weight: 600; line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin-bottom: 10px; }
.card-date { font-size: 0.72rem; color: var(--text-dim); }
.card-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.card-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ── Error State ── */
.error-state {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px; gap: 16px;
}
.error-icon { font-size: 3rem; }
.error-state h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; }
.error-state p  { color: var(--text-muted); max-width: 420px; }
.error-state code {
  background: rgba(255,255,255,0.08); padding: 2px 7px;
  border-radius: 5px; font-size: 0.85rem; color: var(--neon-teal);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-card {
  position: relative;
  background: rgba(14,14,30,0.95);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7), var(--shadow-glow-teal);
  transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,0.08); border: none; color: var(--text-primary);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.18); }
.modal-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--bg-mid);
}
.modal-thumb { width: 100%; height: 100%; object-fit: cover; }
.modal-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background var(--transition);
}
.modal-play-btn:hover { background: rgba(0,0,0,0.25); }
.modal-body { padding: 22px 24px 28px; }
.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 6px;
}
.modal-date { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 14px; }
.modal-stats { display: flex; gap: 20px; margin-bottom: 16px; }
.modal-stat { font-size: 0.9rem; color: var(--text-muted); }
.modal-desc {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 22px;
  white-space: pre-wrap;
}
.modal-cta { width: 100%; justify-content: center; }

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.82rem;
  display: flex; flex-direction: column; gap: 6px;
}
.site-footer a { color: var(--neon-teal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { font-size: 0.75rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { min-height: 85vh; }
  .video-grid, .loading-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-header { flex-direction: column; align-items: flex-start; }
  .modal-card { border-radius: 16px; }
  .modal-thumb-wrap { border-radius: 16px 16px 0 0; aspect-ratio: 4/3; }
}
@media (max-width: 380px) {
  .video-grid, .loading-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   AI-Enhanced Elements
   ════════════════════════════════════════════ */

/* ── Hero Bio ── */
.hero-bio {
  max-width: 580px; margin: 0 auto 28px;
  font-size: 0.97rem; color: var(--text-muted);
  line-height: 1.75; text-align: center;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-bio p + p { margin-top: 10px; }
.hero-tagline { margin-bottom: 16px; }

/* ── AI Badge ── */
.ai-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, rgba(155,93,229,0.25), rgba(105,201,208,0.15));
  border: 1px solid rgba(155,93,229,0.4);
  color: var(--neon-purple); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

/* ── Section header (shared) ── */
.section-header { text-align: center; margin-bottom: 32px; }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem; font-weight: 700; margin-bottom: 8px;
}
.section-subtitle { font-size: 0.9rem; color: var(--text-muted); }

/* ── Featured Section ── */
.featured-section {
  position: relative; z-index: 1;
  padding: 60px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.featured-inner { max-width: 1200px; margin: 0 auto; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.featured-card {
  border-color: rgba(155,93,229,0.3) !important;
  box-shadow: 0 0 20px rgba(155,93,229,0.1);
}
.featured-card:hover {
  border-color: rgba(155,93,229,0.7) !important;
  box-shadow: 0 0 40px rgba(155,93,229,0.25) !important;
}

/* ── Category Tabs ── */
.category-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.cat-btn:hover {
  border-color: var(--cat-color, var(--neon-teal));
  color: var(--cat-color, var(--neon-teal));
}
.cat-btn.active {
  background: var(--cat-color, var(--neon-teal));
  border-color: var(--cat-color, var(--neon-teal));
  color: #07070f; font-weight: 600;
}
.cat-emoji { font-size: 1rem; }
.cat-count {
  background: rgba(0,0,0,0.2); border-radius: 999px;
  padding: 0 6px; font-size: 0.72rem; font-weight: 600;
}

/* ── Card Category Badge ── */
.card-cat-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--cat-color, var(--neon-teal));
  color: var(--cat-color, var(--neon-teal));
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.04em;
}

/* ── Card AI Summary ── */
.card-summary {
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 8px;
  font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Modal AI Elements ── */
.modal-cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--cat-color, var(--neon-teal));
  color: var(--cat-color, var(--neon-teal));
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.modal-ai-summary {
  background: rgba(155,93,229,0.08);
  border-left: 3px solid var(--neon-purple);
  padding: 10px 14px; border-radius: 0 8px 8px 0;
  font-size: 0.88rem; color: var(--text-muted);
  font-style: italic; line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Empty Category ── */
.empty-cat {
  grid-column: 1/-1; text-align: center;
  padding: 60px 24px; color: var(--text-dim);
  font-size: 0.9rem;
}

