/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-light: #1a1a2e;
  --primary: #6c63ff;
  --primary-light: #8b83ff;
  --primary-dark: #5048c7;
  --text: #e8e8f0;
  --text-secondary: #8888a0;
  --border: #2a2a3e;
  --danger: #ff4757;
  --success: #2ed573;
  --spotify: #1DB954;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(18, 18, 26, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.6rem;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.rss-link {
  background: var(--surface-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== EPISODES GRID ===== */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0 40px;
}

.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.15);
}

.episode-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface-light);
}

.episode-card-body {
  padding: 20px;
}

.episode-card-number {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.episode-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 8px 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 12px;
  display: block;
}

/* ===== EPISODE DETAIL PAGE ===== */
.back-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 20px 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-light);
}

.episode-detail {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.episode-header {
  margin-bottom: 30px;
}

.episode-cover-large {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.episode-meta {
  margin-bottom: 20px;
}

.episode-number {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.episode-detail h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0 12px;
}

.episode-detail time {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Spotify */
.spotify-section {
  margin-bottom: 30px;
}

.btn-spotify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--spotify);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-spotify:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF0000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-youtube:hover {
  opacity: 0.9;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

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

/* Platform links */
.platform-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Player sections */
.player-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.player-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

audio {
  width: 100%;
  border-radius: var(--radius-sm);
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

.download-btn {
  margin-top: 8px;
}

/* Blog content */
.blog-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin: 24px 0 12px;
  color: var(--text);
}

.blog-content h3 {
  font-size: 1.25rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.blog-content p {
  margin-bottom: 16px;
  color: var(--text);
}

.blog-content ul, .blog-content ol {
  margin: 0 0 16px 24px;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--surface-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

/* Infographic */
.infographic-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.infographic-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.infographic {
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.infographic:hover {
  opacity: 0.9;
}

/* ===== SHARE BUTTONS ===== */
.share-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.share-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.2s, opacity 0.2s;
  color: #fff;
}

.share-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
  color: #fff;
}

.share-x { background: #000; }
.share-facebook { background: #1877F2; }
.share-linkedin { background: #0A66C2; }
.share-whatsapp { background: #25D366; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== LOADING ===== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== STATES ===== */
.empty-state, .error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.error-state h2 {
  color: var(--text);
  margin-bottom: 12px;
}

.load-more-container {
  text-align: center;
  padding: 20px 0 40px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 40px;
}

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

.site-footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }

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

  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }

  .episode-detail h2 {
    font-size: 1.5rem;
  }

  .blog-content {
    padding: 20px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
