/* ============================================
   You've Already Been Hacked - Podcast CSS
   Dark Purple Cybersecurity Theme
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0015;
  --color-bg-secondary: #12002a;
  --color-bg-card: #1a0035;
  --color-accent-primary: #cc00ff;
  --color-accent-secondary: #00f0ff;
  --color-accent-magenta: #ff00ff;
  --color-accent-pink: #ff006e;
  --color-text: #f0e6ff;
  --color-text-muted: #9966bb;
  --color-border: #cc00ff;
  --color-glow-primary: rgba(204, 0, 255, 0.4);
  --color-glow-secondary: rgba(0, 240, 255, 0.4);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Share Tech Mono', monospace;
  --max-width: 1100px;
  --border-radius: 6px;
  --transition-speed: 0.25s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at 50% 0%, #2a0050 0%, #1a0035 30%, #0a0015 70%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: #d06fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-accent-primary);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.12em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 0.1em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: 0.08em; }

p {
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- Navigation Bar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: rgba(18, 0, 42, 0.92);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 0 20px rgba(204, 0, 255, 0.3), 0 2px 30px rgba(0, 240, 255, 0.1);
  padding: 0.8rem 1rem;
  backdrop-filter: blur(12px);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--color-accent-primary);
  text-shadow: 0 0 8px #cc00ff, 0 0 20px rgba(204, 0, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-speed), border-color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-primary);
  border-bottom-color: var(--color-accent-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-accent-primary);
  transition: transform var(--transition-speed);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-accent-primary);
  transition: transform var(--transition-speed);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: box-shadow var(--transition-speed), transform var(--transition-speed), background-color var(--transition-speed), color var(--transition-speed);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  box-shadow: 0 0 15px var(--color-glow-primary), 0 0 30px var(--color-glow-secondary);
  text-shadow: 0 0 8px #00f0ff;
  transform: translateY(-2px);
  color: var(--color-bg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-secondary);
  border-color: var(--color-accent-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-accent-secondary);
  color: var(--color-bg);
  box-shadow: 0 0 15px var(--color-glow-primary), 0 0 30px var(--color-glow-secondary);
  text-shadow: 0 0 8px #00f0ff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.btn-outline:hover {
  background-color: var(--color-accent-primary);
  color: var(--color-bg);
  box-shadow: 0 0 15px var(--color-glow-primary), 0 0 30px var(--color-glow-secondary);
  text-shadow: 0 0 8px #00f0ff;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(rgba(10,0,21,0.82), rgba(10,0,21,0.88)),
              url('/assets/images/virtual-studio.webp') center/cover no-repeat;
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* synthwave perspective grid */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) perspective(300px) rotateX(60deg);
  transform-origin: bottom center;
  width: 200%;
  height: 60%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 0, 255, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 0;
  border: 3px solid var(--color-accent-primary);
  overflow: hidden;
  box-shadow: 0 0 30px var(--color-glow-primary);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  font-family: var(--font-heading);
  color: var(--color-accent-primary);
  font-size: 3rem;
}

.hero-title {
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Section Base --- */
.section {
  padding: 3rem 0;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent-primary);
  margin: 0.5rem auto 0;
}

.section-cta {
  text-align: center;
  padding: 2rem 0;
}

/* --- Episode Cards --- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.episode-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.episode-card:hover {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 20px var(--color-glow-primary),
              0 0 40px var(--color-glow-secondary),
              inset 0 0 15px rgba(0, 240, 255, 0.08);
  transform: translateY(-3px);
}

.episode-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.episode-card-number {
  font-family: var(--font-heading);
  color: var(--color-accent-primary);
  font-size: 0.85rem;
}

.episode-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.episode-title {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.episode-description {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* --- Audio Player --- */
.audio-player {
  width: 100%;
  margin-top: 1rem;
}

.audio-player audio {
  width: 100%;
  height: 40px;
  border-radius: var(--border-radius);
  background-color: var(--color-bg-secondary);
}

/* --- Subscribe Section --- */
.subscribe-section {
  background: linear-gradient(rgba(18,0,36,0.88), rgba(18,0,36,0.92)),
              url('/assets/images/channel-art.webp') center/cover no-repeat;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.subscribe-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.subscribe-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.8rem 1.4rem;
  font-family: var(--font-heading);
  color: var(--color-text);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.subscribe-link:hover {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 15px var(--color-glow-primary), 0 0 30px var(--color-glow-secondary);
  transform: translateY(-2px);
  color: var(--color-accent-primary);
}

.subscribe-link-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-accent-primary);
}

/* --- About Page --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.host-avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--border-radius);
  border: 3px solid var(--color-accent-primary);
  overflow: hidden;
  margin: 0 auto;
  background-color: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--color-glow-primary);
}

.host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-avatar-placeholder {
  font-family: var(--font-heading);
  color: var(--color-accent-primary);
  font-size: 3rem;
}

.host-info {
  text-align: center;
  margin-top: 1.5rem;
}

.host-name {
  font-family: var(--font-heading);
  color: var(--color-accent-primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.host-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.host-bio p {
  color: var(--color-text-muted);
}

.host-bio .highlight {
  color: var(--color-accent-primary);
  font-family: var(--font-heading);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  margin: 0 auto;
  max-width: 280px;
  height: auto;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

/* --- Utility Classes --- */
.text-purple { color: var(--color-accent-primary); }
.text-cyan { color: var(--color-accent-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* === SYNTHWAVE ENHANCEMENTS === */

/* --- SCANLINE OVERLAY --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.07) 0px,
    rgba(0, 0, 0, 0.07) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 8px #cc00ff, 0 0 18px rgba(204, 0, 255, 0.6), 0 0 30px rgba(255, 0, 255, 0.25);
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 4px #cc00ff, 0 0 12px rgba(204, 0, 255, 0.4);
    opacity: 0.92;
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 8px #cc00ff, 0 0 20px rgba(204, 0, 255, 0.6), 0 0 35px rgba(255, 0, 255, 0.25);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.85;
  }
}

@keyframes border-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--color-glow-primary), inset 0 0 8px rgba(204, 0, 255, 0.05); }
  50%       { box-shadow: 0 0 18px var(--color-glow-primary), 0 0 35px rgba(0, 240, 255, 0.2), inset 0 0 12px rgba(204, 0, 255, 0.08); }
}

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

/* --- HEADING GLOWS --- */
h1, h2, h3 {
  text-shadow: none;
}

.hero-title {
  animation: neon-flicker 6s step-end infinite;
}

/* --- CARD GLOWS --- */
.card, .episode-card, [class*="card"] {
  border: 1px solid rgba(204, 0, 255, 0.5);
  box-shadow: 0 0 12px var(--color-glow-primary),
              inset 0 0 12px rgba(204, 0, 255, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  animation: border-glow-pulse 4s ease-in-out infinite;
}

.card:hover, .episode-card:hover, [class*="card"]:hover {
  border-color: var(--color-accent-secondary);
  box-shadow: 0 0 25px var(--color-glow-primary),
              0 0 50px var(--color-glow-secondary),
              inset 0 0 20px rgba(0, 240, 255, 0.1);
  animation: none;
}

/* --- BORDER GLOWS --- */
hr, .divider, header, footer, nav {
  border-color: var(--color-border);
  box-shadow: 0 0 8px var(--color-glow-secondary);
}

/* --- SYNTHWAVE HORIZON LINE --- */
header::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00f0ff 25%, #cc00ff 50%, #ff00ff 75%, transparent 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px #00f0ff, 0 0 25px #cc00ff;
  animation: horizon-sweep 4s linear infinite;
}

/* --- NAV LINK GLOWS --- */
nav a {
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

nav a:hover {
  color: var(--color-accent-secondary);
  text-shadow: 0 0 8px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.6);
}

/* --- BUTTON GLOWS --- */
a[href], button {
  transition: box-shadow 0.2s ease, text-shadow 0.2s ease;
}

button:hover, .btn:hover, a.btn:hover {
  box-shadow: 0 0 15px var(--color-glow-primary), 0 0 30px var(--color-glow-secondary);
  text-shadow: 0 0 8px #00f0ff;
}

/* --- Responsive: Tablet (768px) --- */
@media (min-width: 768px) {
  .about-content {
  max-width: 800px;
  margin: 0 auto;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .host-bio {
    text-align: left;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }
}

/* --- Responsive: Desktop (1024px) --- */
@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0 5rem;
  }

  .section {
    padding: 4rem 0;
  }
}

/* --- Responsive: Mobile Nav --- */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    border-bottom-color: var(--color-accent-primary);
  }
}
