/* AI Espresso - Brand System CSS */
/* Based on Brand Guidelines v1.0 - December 2024 */

/* ========== CSS VARIABLES ========== */
:root {
  /* Brand Colors */
  --ai-cyan: #00D4FF;
  --neural-purple: #7C4DFF;
  --espresso-brown: #6B4423;
  --dark-bg: #1a1a1a;
  --deep-black: #0f0f0f;
  --success-green: #00E676;
  --alert-orange: #FF6D00;
  --cream: #F5E6D3;
  --white: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #00D4FF 0%, #7C4DFF 100%);
  --gradient-dark: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  --gradient-warm: linear-gradient(135deg, #6B4423 0%, #3E2723 100%);
  --gradient-success: linear-gradient(90deg, #00E676 0%, #00D4FF 100%);

  /* Spacing System */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;

  /* Container Widths */
  --container-mobile: calc(100% - 32px);
  --container-tablet: 768px;
  --container-desktop: 1200px;
  --container-wide: 1400px;

  /* Breakpoints */
  --mobile: 320px;
  --tablet: 768px;
  --desktop: 1024px;
  --wide: 1400px;
  --ultrawide: 1920px;

  /* Typography Scale */
  --font-size-h1-desktop: 72px;
  --font-size-h1-mobile: 48px;
  --font-size-h2-desktop: 48px;
  --font-size-h2-mobile: 36px;
  --font-size-h3-desktop: 32px;
  --font-size-h3-mobile: 28px;
  --font-size-body-desktop: 18px;
  --font-size-body-mobile: 16px;
  --font-size-caption-desktop: 14px;
  --font-size-caption-mobile: 12px;

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-heading: 1.2;
  --line-height-subheading: 1.3;
  --line-height-body: 1.6;
  --line-height-caption: 1.4;

  /* Border Radius */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 32px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 24px rgba(0, 212, 255, 0.2);
  --shadow-large: 0 12px 32px rgba(0, 212, 255, 0.3);
  --shadow-glow: 0 10px 30px rgba(0, 212, 255, 0.4);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--dark-bg);
  color: var(--white);
  line-height: var(--line-height-body);
  font-size: var(--font-size-body-mobile);
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    font-size: var(--font-size-body-desktop);
  }
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: var(--space-m);
}

h1 {
  font-size: var(--font-size-h1-mobile);
  line-height: var(--line-height-tight);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-h1-desktop);
  }
}

h2 {
  font-size: var(--font-size-h2-mobile);
  line-height: var(--line-height-heading);
  color: var(--white);
  font-weight: 700;
}

@media (min-width: 768px) {
  h2 {
    font-size: var(--font-size-h2-desktop);
  }
}

h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--font-size-h3-mobile);
  line-height: var(--line-height-subheading);
  font-weight: 700;
  color: var(--white);
}

@media (min-width: 768px) {
  h3 {
    font-size: var(--font-size-h3-desktop);
  }
}

p {
  margin-bottom: var(--space-s);
  color: rgba(255, 255, 255, 0.9);
}

.subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25em;
  font-weight: 500;
  color: var(--ai-cyan);
  margin-bottom: var(--space-l);
}

.caption {
  font-size: var(--font-size-caption-mobile);
  line-height: var(--line-height-caption);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .caption {
    font-size: var(--font-size-caption-desktop);
  }
}

.episode-number {
  color: var(--neural-purple);
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ========== LAYOUT SYSTEM ========== */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-s);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-m);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-s);
}

@media (min-width: 768px) {
  .grid {
    gap: var(--space-m);
  }
}

.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 767px) {
  .col-6, .col-4, .col-3 {
    grid-column: span 12;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-s) var(--space-l);
  border-radius: var(--radius-l);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--ai-cyan);
  border: 2px solid var(--ai-cyan);
}

.btn-secondary:hover {
  background: var(--ai-cyan);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-play {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-glow);
  padding: 0;
}

.btn-play:hover {
  transform: scale(1.1);
}

.btn-play svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
  margin-left: 4px; /* Visual alignment for play icon */
}

/* ========== CARDS ========== */
.card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--ai-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.episode-card {
  position: relative;
  overflow: hidden;
}

.episode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.episode-card:hover::before {
  transform: translateX(0);
}

.episode-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: var(--space-xs) 0 var(--space-s);
  line-height: 1.3;
}

.episode-duration {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--ai-cyan);
  font-size: 14px;
  font-weight: 500;
}

.episode-description {
  margin-top: var(--space-s);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-xl);
}

@media (min-width: 768px) {
  .hero-logo {
    width: 300px;
    height: 300px;
  }
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.98);
  box-shadow: var(--shadow-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-l);
  margin: 0;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--ai-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--space-xxxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxxl);
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes neural-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes steam-animation {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  }
}

.neural-pulse {
  animation: neural-pulse 2s ease-in-out infinite;
}

.steam-animation {
  animation: steam-animation 3s ease-in-out infinite;
}

.glow-effect {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-s { margin-top: var(--space-s); }
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: var(--space-xxl); }

.color-primary { color: var(--ai-cyan); }
.color-secondary { color: var(--neural-purple); }
.color-accent { color: var(--alert-orange); }
.color-success { color: var(--success-green); }
.color-muted { color: rgba(255, 255, 255, 0.7); }

.bg-dark { background: var(--dark-bg); }
.bg-darker { background: var(--deep-black); }
.bg-gradient { background: var(--gradient-hero); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 767px) {
  .mobile-hidden { display: none !important; }
  .mobile-center { text-align: center !important; }
}

@media (min-width: 768px) {
  .desktop-hidden { display: none !important; }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ai-cyan);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --ai-cyan: #00FFFF;
    --neural-purple: #9F6FFF;
    --dark-bg: #000000;
    --white: #FFFFFF;
  }
}