/* ===== StoriesTalk Theme Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --st-bg: #0b0b0b;
  --st-bg-card: #121212;
  --st-bg-glass: rgba(20,20,20,0.4);
  --st-fg: #ededed;
  --st-fg-muted: #737373;
  --st-border: #242424;
  --st-glass-border: rgba(41,41,41,0.6);
  --st-neon-blue: 200,100%,50%;
  --st-neon-purple: 270,100%,60%;
  --st-neon-crimson: 350,100%,55%;
  --st-primary: hsl(200,100%,50%);
  --st-secondary: hsl(350,100%,55%);
  --st-accent: hsl(270,100%,60%);
  --st-radius: 0.75rem;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--st-bg);
  color: var(--st-fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Orbitron', sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ===== Glass Panel ===== */
.glass-panel {
  background: var(--st-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--st-glass-border);
  border-radius: var(--st-radius);
}

/* ===== Neon Glows ===== */
.neon-glow-blue { box-shadow: 0 0 20px hsla(var(--st-neon-blue),0.5), 0 0 60px hsla(var(--st-neon-blue),0.15); }
.neon-glow-purple { box-shadow: 0 0 20px hsla(var(--st-neon-purple),0.5), 0 0 60px hsla(var(--st-neon-purple),0.15); }
.neon-glow-crimson { box-shadow: 0 0 20px hsla(var(--st-neon-crimson),0.5), 0 0 60px hsla(var(--st-neon-crimson),0.15); }

.neon-border-blue {
  border: 1px solid hsla(var(--st-neon-blue),0.5);
  box-shadow: inset 0 0 20px hsla(var(--st-neon-blue),0.08), 0 0 20px hsla(var(--st-neon-blue),0.25);
}
.neon-border-purple {
  border: 1px solid hsla(var(--st-neon-purple),0.5);
  box-shadow: inset 0 0 20px hsla(var(--st-neon-purple),0.08), 0 0 20px hsla(var(--st-neon-purple),0.25);
}
.neon-border-crimson {
  border: 1px solid hsla(var(--st-neon-crimson),0.5);
  box-shadow: inset 0 0 20px hsla(var(--st-neon-crimson),0.08), 0 0 20px hsla(var(--st-neon-crimson),0.25);
}

/* ===== Text Glows ===== */
.text-glow-blue { text-shadow: 0 0 10px hsla(var(--st-neon-blue),0.6), 0 0 40px hsla(var(--st-neon-blue),0.3); }
.text-glow-purple { text-shadow: 0 0 10px hsla(var(--st-neon-purple),0.6), 0 0 40px hsla(var(--st-neon-purple),0.3); }

/* ===== Kinetic Title ===== */
.kinetic-title {
  background: linear-gradient(135deg, hsl(var(--st-neon-blue)), hsl(var(--st-neon-crimson)), hsl(var(--st-neon-purple)));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kinetic-gradient 4s ease infinite;
}

/* ===== Card Hover ===== */
.card-hover-glow { transition: all 0.3s ease; }
.card-hover-glow:hover {
  box-shadow: 0 0 30px hsla(var(--st-neon-blue),0.3), 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: var(--st-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}
.btn-primary {
  background: var(--st-primary);
  color: var(--st-bg);
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: var(--st-secondary);
  color: #fff;
}
.btn-secondary:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  border: 1px solid hsla(var(--st-neon-blue),0.3);
  color: var(--st-primary);
}
.btn-outline:hover { background: hsla(var(--st-neon-blue),0.1); }

/* ===== Form Inputs ===== */
.st-input {
  width: 100%;
  background: rgba(30,30,30,0.3);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--st-fg);
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.st-input::placeholder { color: var(--st-fg-muted); }
.st-input:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 15px hsla(var(--st-neon-blue),0.2);
}

/* ===== Animations ===== */
@keyframes kinetic-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.5s ease forwards; }

/* ===== Scroll Fade Observer ===== */
.scroll-fade { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-fade.visible { opacity: 1; transform: translateY(0); }

/* ===== Header ===== */
.st-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s;
  padding: 0 1rem;
}
.st-header.scrolled {
  background: rgba(11,11,11,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--st-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.st-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.st-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.st-logo .highlight { color: var(--st-primary); }
.st-logo .icon { color: var(--st-secondary); }
.st-nav { display: flex; align-items: center; gap: 1.5rem; }
.st-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--st-fg-muted);
  transition: color 0.3s;
}
.st-nav a:hover, .st-nav a.active { color: var(--st-primary); }

/* Mobile Nav */
.st-mobile-toggle { display: none; background: none; border: none; color: var(--st-fg); cursor: pointer; }
.st-mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(18,18,18,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--st-border);
  padding: 1rem;
}
.st-mobile-nav.open { display: flex; }
.st-mobile-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--st-fg-muted);
}
@media (max-width: 768px) {
  .st-nav { display: none; }
  .st-mobile-toggle { display: block; }
}

/* ===== Hero Section ===== */
.hero-section { position: relative; height: 100vh; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-top { position: absolute; inset: 0; background: linear-gradient(to top, var(--st-bg), rgba(11,11,11,0.8), transparent); }
.hero-overlay-left { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,11,11,0.9), rgba(11,11,11,0.4), transparent); }
.hero-content {
  position: relative; z-index: 10;
  height: 100%; display: flex; align-items: flex-end;
  padding-bottom: 5rem;
}
.hero-dots {
  display: flex; gap: 0.5rem; margin-top: 2rem;
}
.hero-dot {
  height: 4px; border-radius: 9999px;
  border: none; cursor: pointer; transition: all 0.3s;
  background: var(--st-fg-muted);
  width: 16px; opacity: 0.4;
}
.hero-dot.active { width: 40px; background: var(--st-primary); opacity: 1; }

/* ===== Section Titles ===== */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
@media (min-width: 768px) { .section-title { font-size: 1.875rem; } }

/* ===== Story Grid ===== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .story-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .story-grid { grid-template-columns: repeat(6, 1fr); } }

.story-card {
  border-radius: var(--st-radius);
  overflow: hidden;
  background: var(--st-bg-card);
  border: 1px solid rgba(255,255,255,0.05);
}
.story-card .cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.story-card .cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.story-card:hover .cover img { transform: scale(1.05); }
.story-card .cover .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.9), transparent);
}
.story-card .cover .badge {
  position: absolute; top: 6px; right: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.45rem; letter-spacing: 0.1em;
  padding: 2px 6px; border-radius: 4px;
}
.story-card .info { padding: 0.5rem; }
.story-card .info h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.story-card .info .meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; font-size: 0.5rem; color: var(--st-fg-muted);
}

/* ===== Featured Grid (Bigger cards) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .featured-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(5, 1fr); } }

/* ===== Genre Filter Pills ===== */
.genre-filters {
  display: flex; gap: 0.5rem;
  overflow-x: auto; padding-bottom: 0.5rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.genre-filters::-webkit-scrollbar { display: none; }
.genre-pill {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  border: none; cursor: pointer;
  transition: all 0.3s;
  background: rgba(30,30,30,1);
  color: var(--st-fg-muted);
}
.genre-pill:hover { color: var(--st-fg); background: rgba(40,40,40,1); }
.genre-pill.active {
  background: var(--st-primary);
  color: var(--st-bg);
}

/* ===== Blog Cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card .thumb { position: relative; height: 14rem; overflow: hidden; }
.blog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .thumb .cat-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(30,30,30,0.8); backdrop-filter: blur(8px);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.15em;
  color: var(--st-accent);
  padding: 4px 12px; border-radius: 9999px;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px; margin: 0 auto;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card { padding: 2rem; }
.service-card .icon-wrap {
  display: inline-flex; padding: 0.75rem;
  border-radius: var(--st-radius);
  background: rgba(30,30,30,0.5);
  margin-bottom: 1.25rem;
}

/* ===== Contact Split ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1000px; margin: 0 auto;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ===== CTA Box ===== */
.cta-box {
  max-width: 640px; margin: 0 auto;
  text-align: center;
  padding: 2rem;
}
@media (min-width: 768px) { .cta-box { padding: 3.5rem; } }

/* ===== Footer ===== */
.st-footer {
  border-top: 1px solid var(--st-border);
  background: rgba(18,18,18,0.3);
  backdrop-filter: blur(8px);
  margin-top: 5rem;
  padding: 3rem 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--st-border);
  text-align: center;
  font-size: 0.75rem; color: var(--st-fg-muted);
}

/* ===== Story Detail Page ===== */
.story-hero { position: relative; height: 60vh; overflow: hidden; }
.story-hero img { width: 100%; height: 100%; object-fit: cover; }

.chapter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem; cursor: pointer;
}
.chapter-item:hover { transform: translateY(-2px); }
.chapter-item .read-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem; color: var(--st-fg-muted);
  opacity: 0; transition: opacity 0.3s;
}
.chapter-item:hover .read-label { opacity: 1; }

/* ===== Utility ===== */
.text-primary { color: var(--st-primary); }
.text-secondary { color: var(--st-secondary); }
.text-accent { color: var(--st-accent); }
.text-muted { color: var(--st-fg-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-display { font-family: 'Orbitron', sans-serif; }
.tracking-widest { letter-spacing: 0.15em; }
.uppercase { text-transform: uppercase; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-24 { padding-top: 6rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
