/* ============================================
   Another Frakkin Podcast — Public Site Styles
   Dark sci-fi podcast theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #ff4444;
  --color-primary-dark: #cc2222;
  --color-primary-light: #ff6666;
  --color-accent: #00d4ff;
  --color-accent-dark: #00a8cc;
  --color-bg: #0a0a14;
  --color-bg-alt: #111122;
  --color-surface: #161628;
  --color-surface-hover: #1c1c36;
  --color-text: #e0e0e8;
  --color-text-muted: #8888a0;
  --color-border: #2a2a44;
  --color-hero-bg: #0d0d1a;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --glow-red: 0 0 20px rgba(255,68,68,0.3);
  --glow-blue: 0 0 20px rgba(0,212,255,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-dark); }
img { max-width: 100%; height: auto; }

/* ---- Header / Nav ---- */
.site-header {
  background: rgba(10,10,20,0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: 2px;
}
.logo:hover { color: var(--color-primary); }

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--color-primary);
  box-shadow: var(--glow-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: all 0.2s;
}
.nav-links a:hover {
  background: var(--color-surface);
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,68,68,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(0,212,255,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-hero-bg) 0%, var(--color-bg) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-banner {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-content-centered {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content-centered .hero-tagline {
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-content-centered .hero-links {
  justify-content: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; }

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.highlight {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 32px;
  font-weight: 300;
  max-width: 520px;
}

.hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image { flex-shrink: 0; z-index: 1; }

.podcast-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--color-primary);
  box-shadow: var(--glow-red), var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--glow-red);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-accent);
}
.btn-secondary:hover {
  background: rgba(0,212,255,0.1);
  color: var(--color-accent);
  box-shadow: var(--glow-blue);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  background: var(--color-surface);
}

/* ---- Section Titles ---- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Livestream Section ---- */
.livestream-section {
  padding: 60px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.stream-note {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}

/* ---- Spotify Section ---- */
.spotify-section {
  padding: 60px 0;
}

.spotify-embed {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---- Podcast Platforms Section ---- */
.platforms-section {
  padding: 60px 0 80px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.25s;
}

.platform-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--glow-red);
}

.platform-card:hover .platform-icon {
  fill: var(--color-primary);
}

.platform-icon {
  width: 48px;
  height: 48px;
  fill: var(--color-text-muted);
  transition: fill 0.25s;
}

.platform-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---- Posts ---- */
.recent-posts {
  padding: 60px 0 80px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.post-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-primary); }

.post-card time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 12px;
}

.post-card p { color: var(--color-text-muted); font-size: 0.95rem; }

.read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.post-header { margin-bottom: 32px; }
.post-header time { color: var(--color-text-muted); font-size: 0.95rem; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 500; }

/* ---- Episodes Page ---- */
.episodes-page { padding: 60px 0; }

.page-intro {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.episodes-grid {
  display: grid;
  gap: 16px;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.episode-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.episode-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--color-primary);
  background: rgba(255,68,68,0.1);
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 1px;
  min-width: 65px;
  text-align: center;
}

.episode-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.episode-info p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---- Social Page ---- */
.social-page { padding: 60px 0; }

.social-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}
.social-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.social-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}
.social-heading svg { fill: var(--color-accent); }

.social-embed-container {
  max-width: 800px;
}

.social-follow-btn {
  margin-top: 20px;
}

.social-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.social-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.social-profile-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--color-accent); }
.social-profile-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Bluesky feed cards */
.bsky-post {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.bsky-post:hover { border-color: var(--color-accent); }

.bsky-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bsky-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.bsky-post-author { font-weight: 600; font-size: 0.95rem; }
.bsky-post-handle { color: var(--color-text-muted); font-size: 0.85rem; }
.bsky-post-date { color: var(--color-text-muted); font-size: 0.85rem; margin-left: auto; }
.bsky-post-text { line-height: 1.6; font-size: 0.95rem; word-wrap: break-word; }
.bsky-post-text a { color: var(--color-accent); }

.bsky-post-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.bsky-post-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 300px;
}

.social-loading {
  padding: 40px;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* ---- Page Content ---- */
.page-content {
  padding: 60px 0;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
}
.content-body h2 { font-size: 1.6rem; margin: 32px 0 12px; font-family: var(--font-display); letter-spacing: 1px; }
.content-body h3 { font-size: 1.3rem; margin: 24px 0 8px; }
.content-body p { margin-bottom: 16px; }
.content-body ul, .content-body ol { margin-bottom: 16px; padding-left: 24px; }
.content-body img { border-radius: var(--radius); margin: 16px 0; }
.content-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(255,68,68,0.05);
  border-radius: 0 8px 8px 0;
}
.content-body pre {
  background: #0d0d1a;
  color: #cdd6f4;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--color-border);
}
.content-body code {
  background: rgba(0,212,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.content-body pre code { background: none; padding: 0; }

/* ---- Error Page ---- */
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: 6rem; color: var(--color-primary); }
.error-page p { margin-bottom: 24px; color: var(--color-text-muted); font-size: 1.1rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-hero-bg);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 4px;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--color-accent); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; margin: 0 auto 24px; }
  .hero-links { justify-content: center; }
  .podcast-img { width: 200px; height: 200px; }

  .hero-banner { margin-bottom: 24px; }

  .platforms-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
  .platform-card { padding: 24px 14px; }
  .platform-icon { width: 36px; height: 36px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,10,20,0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }

  .posts-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }

  .social-profile-card { flex-direction: column; text-align: center; }

  .episode-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-links { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
