/* Amsterdam Investment Club Podcast - Digital Finance Episodes */
/* Professional academic styling */

:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8a;
  --primary-dark: #0f1f33;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Dark mode */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-light: #93c5fd;
  --primary-dark: #3b82f6;
  --accent: #fbbf24;
  --background: #0f172a;
  --background-alt: #1e293b;
  --text: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #64748b;
  --border: #334155;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* Navigation */
.navbar {
  background: var(--primary-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: white;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Subscribe Buttons */
.subscribe-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  text-decoration: none;
  color: white;
}

.btn-youtube {
  background: #ff0000;
  color: white;
}

.btn-youtube:hover {
  background: #cc0000;
  color: white;
}

.btn-spotify {
  background: #1db954;
  color: white;
}

.btn-spotify:hover {
  background: #1aa34a;
  color: white;
}

/* Episode Cards */
.episodes-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-light);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.episode-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.episode-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--primary);
  overflow: hidden;
}

.episode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.episode-content {
  padding: 1.5rem;
}

.episode-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.episode-tag {
  background: var(--background-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--primary);
}

.episode-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.episode-title a {
  color: var(--text);
}

.episode-title a:hover {
  color: var(--primary);
}

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

.episode-guest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.guest-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.guest-info {
  flex: 1;
}

.guest-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.guest-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Featured Episode */
.featured-episode {
  background: var(--background-alt);
  padding: 5rem 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-media iframe {
  width: 100%;
  height: 100%;
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 1rem;
}

.play-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.play-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.featured-content h2 {
  margin-bottom: 1rem;
}

.featured-content .episode-meta {
  margin-bottom: 1rem;
}

.featured-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.key-topics {
  margin-bottom: 1.5rem;
}

.key-topics h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Episode Page Styles */
.episode-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 0;
}

.episode-header-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.guest-photo {
  text-align: center;
}

.guest-photo-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  margin: 0 auto 1rem;
}

.guest-photo-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.guest-photo-affiliation {
  opacity: 0.9;
  font-size: 0.9375rem;
}

.episode-header-info h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.episode-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

/* Media Players */
.media-section {
  padding: 3rem 0;
  background: var(--background-alt);
}

.media-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.video-player {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-player iframe {
  width: 100%;
  height: 100%;
}

.audio-player {
  background: var(--background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.audio-player h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.spotify-embed {
  border-radius: 12px;
}

/* Key Takeaways */
.takeaways-section {
  padding: 4rem 0;
}

.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.takeaway-card {
  background: var(--background-alt);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.takeaway-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.takeaway-text h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.takeaway-text p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0;
}

/* Quotes Section */
.quotes-section {
  padding: 4rem 0;
  background: var(--background-alt);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.quote-card {
  background: var(--background);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}

.quote-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.quote-timestamp {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Transcript Section */
.transcript-section {
  padding: 4rem 0;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.transcript-search {
  display: flex;
  gap: 0.5rem;
}

.transcript-search input {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  width: 250px;
}

.transcript-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.transcript-content {
  background: var(--background-alt);
  border-radius: 12px;
  padding: 2rem;
}

.transcript-segment {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.transcript-segment:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.segment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.segment-time {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.segment-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.segment-content {
  padding-left: 0;
}

.dialogue {
  margin-bottom: 1rem;
}

.speaker {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.speaker.host {
  color: var(--text);
}

.speech {
  color: var(--text-light);
  line-height: 1.7;
}

.timestamp-link {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

.timestamp-link:hover {
  text-decoration: underline;
}

/* Resources Section */
.resources-section {
  padding: 4rem 0;
  background: var(--background-alt);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.resource-category {
  background: var(--background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.resource-category h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.resource-list {
  list-style: none;
}

.resource-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resource-list span {
  color: var(--text-light);
  font-size: 0.8125rem;
}

/* Guest Bio */
.bio-section {
  padding: 4rem 0;
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.bio-sidebar {
  background: var(--background-alt);
  border-radius: 12px;
  padding: 1.5rem;
}

.bio-sidebar h3 {
  margin-bottom: 1rem;
}

.bio-links {
  list-style: none;
}

.bio-links li {
  margin-bottom: 0.75rem;
}

.bio-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bio-main h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.bio-positions {
  list-style: none;
  margin-bottom: 1.5rem;
}

.bio-positions li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.bio-positions li:last-child {
  border-bottom: none;
}

.position-title {
  font-weight: 600;
  color: var(--text);
}

.position-org {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* Related Episodes */
.related-section {
  padding: 4rem 0;
  background: var(--background-alt);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  display: block;
  padding: 0.375rem 0;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-card,
  .bio-content,
  .episode-header-content {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .navbar-nav {
    display: none;
  }

  .episodes-grid {
    grid-template-columns: 1fr;
  }

  .transcript-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .transcript-search input {
    width: 100%;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.highlight { background: rgba(245, 158, 11, 0.2); padding: 0 0.25rem; }
