/* StoryStream AI — Custom Styles */
/* Complementary to Tailwind CSS */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== FONTS ===== */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #e879f9, #d946ef, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO BACKGROUND ===== */
.hero-gradient {
  background: radial-gradient(ellipse at 50% 0%, rgba(217,70,239,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(99,102,241,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(168,85,247,0.08) 0%, transparent 50%);
}

/* ===== VIDEO CARDS ===== */
.video-card:hover .video-overlay {
  opacity: 1;
}

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

.video-card:hover .play-btn {
  transform: scale(1.1);
  opacity: 1;
}

/* ===== GENRE PILLS ===== */
.genre-pill.active {
  background: linear-gradient(135deg, #d946ef, #6366f1);
  color: white;
  border-color: transparent;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(217,70,239,0.3); }
  50% { box-shadow: 0 0 40px rgba(217,70,239,0.6); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.float-anim {
  animation: float 3s ease-in-out infinite;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  background: linear-gradient(90deg, #d946ef, #6366f1);
}

/* ===== SHIMMER EFFECT ===== */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0b1f;
}

::-webkit-scrollbar-thumb {
  background: #701a75;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a21caf;
}

/* ===== CARD SHINE OVERLAY ===== */
.card-shine {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
}

/* ===== UTILITY OVERRIDES ===== */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}