/* ==========================================================================
   SOMACAST — AUDIO PODCAST & MICRO-LESSON HUB STYLES
   Namespace: .soc-*
   ========================================================================== */

:root {
  --soc-bg: #f8fafc;
  --soc-card-bg: #ffffff;
  --soc-player-bg: #0f172a;
  --soc-primary: #06b6d4;
  --soc-primary-hover: #0891b2;
  --soc-primary-light: #ecfeff;
  --soc-accent: #6366f1;
  --soc-accent-light: #eef2ff;
  --soc-success: #10b981;
  --soc-border: #e2e8f0;
  --soc-border-light: #f1f5f9;
  --soc-text-main: #0f172a;
  --soc-text-muted: #64748b;
  --soc-text-subtle: #94a3b8;
  --soc-radius-sm: 8px;
  --soc-radius-md: 14px;
  --soc-radius-lg: 20px;
  --soc-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --soc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --soc-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
}

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

body.soc-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--soc-bg);
  color: var(--soc-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.soc-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--soc-border);
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.soc-header-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.soc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--soc-text-main);
}

.soc-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.25);
}

.soc-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.soc-brand-tagline {
  font-size: 11px;
  color: var(--soc-text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.soc-live-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soc-text-muted);
}

.soc-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.soc-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--soc-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.soc-nav-links a:hover, .soc-nav-links a.soc-active {
  color: var(--soc-primary);
}

/* MAIN CONTAINER */
.soc-main-container {
  max-width: 1350px;
  margin: 32px auto 60px;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

/* PODCAST HERO CANVAS */
.soc-podcast-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  margin-bottom: 40px;
}

/* LEFT: AUDIO PLAYER STAGE */
.soc-player-stage {
  display: flex;
  flex-direction: column;
}

.soc-audio-player-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--soc-radius-lg);
  padding: 28px;
  color: #ffffff;
  box-shadow: var(--soc-shadow-lg);
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.soc-player-cover {
  width: 140px;
  height: 140px;
  border-radius: var(--soc-radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.soc-player-controls-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.soc-now-playing-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
}

.soc-now-playing-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

/* CSS ANIMATED AUDIO WAVEFORM */
.soc-waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  padding: 4px 0;
}

.soc-wave-bar {
  width: 4px;
  background-color: #38bdf8;
  border-radius: 2px;
  height: 20%;
  transition: height 0.2s ease;
}

.soc-playing .soc-wave-bar:nth-child(1) { animation: socWave 0.8s infinite ease-in-out alternate; }
.soc-playing .soc-wave-bar:nth-child(2) { animation: socWave 1.1s infinite ease-in-out alternate 0.1s; }
.soc-playing .soc-wave-bar:nth-child(3) { animation: socWave 0.7s infinite ease-in-out alternate 0.2s; }
.soc-playing .soc-wave-bar:nth-child(4) { animation: socWave 1.3s infinite ease-in-out alternate 0.3s; }
.soc-playing .soc-wave-bar:nth-child(5) { animation: socWave 0.9s infinite ease-in-out alternate 0.15s; }
.soc-playing .soc-wave-bar:nth-child(6) { animation: socWave 1.2s infinite ease-in-out alternate 0.25s; }
.soc-playing .soc-wave-bar:nth-child(7) { animation: socWave 0.8s infinite ease-in-out alternate 0.05s; }
.soc-playing .soc-wave-bar:nth-child(8) { animation: socWave 1.0s infinite ease-in-out alternate 0.35s; }

@keyframes socWave {
  0% { height: 15%; }
  100% { height: 95%; }
}

.soc-player-buttons-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.soc-btn-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
  transition: transform 0.2s ease;
}

.soc-btn-play:hover {
  transform: scale(1.08);
}

.soc-btn-skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.soc-btn-skip:hover {
  color: #ffffff;
}

.soc-time-track {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.soc-speed-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  margin-left: auto;
}

/* EPISODE DETAILS & TABS */
.soc-episode-meta-card {
  background-color: var(--soc-card-bg);
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-lg);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--soc-shadow-sm);
}

.soc-tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--soc-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.soc-tab-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--soc-text-muted);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--soc-radius-sm);
  transition: all 0.2s ease;
}

.soc-tab-btn:hover {
  color: var(--soc-primary);
  background-color: #f1f5f9;
}

.soc-tab-btn.soc-tab-active {
  color: var(--soc-primary);
  background-color: var(--soc-primary-light);
  font-weight: 700;
}

.soc-tab-pane {
  display: none;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}

.soc-tab-pane.soc-pane-active {
  display: block;
}

.soc-timestamp-tag {
  display: inline-block;
  background-color: #f1f5f9;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

/* RIGHT: PLAYLIST DECK */
.soc-playlist-card {
  background-color: var(--soc-card-bg);
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-lg);
  padding: 24px;
  box-shadow: var(--soc-shadow-sm);
  height: fit-content;
}

.soc-playlist-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soc-border-light);
  margin-bottom: 18px;
}

.soc-playlist-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--soc-text-main);
  margin-bottom: 4px;
}

.soc-playlist-subtitle {
  font-size: 12px;
  color: var(--soc-text-muted);
}

.soc-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.soc-episode-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-md);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soc-episode-item:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.soc-episode-item.soc-ep-active {
  border-color: var(--soc-primary);
  background-color: var(--soc-primary-light);
}

.soc-ep-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.soc-ep-info {
  flex: 1;
}

.soc-ep-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--soc-text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}

.soc-ep-duration {
  font-size: 11px;
  color: var(--soc-text-muted);
}

/* PODCAST SCIENCE SECTION */
.soc-edu-section {
  background-color: var(--soc-card-bg);
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--soc-shadow-sm);
}

.soc-edu-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--soc-text-main);
  margin-bottom: 12px;
}

.soc-edu-desc {
  font-size: 14px;
  color: var(--soc-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.soc-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.soc-principle-box {
  background-color: #f8fafc;
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-md);
  padding: 20px;
}

.soc-principle-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--soc-text-main);
  margin-bottom: 6px;
}

.soc-principle-box p {
  font-size: 13px;
  color: var(--soc-text-muted);
  line-height: 1.5;
}

/* HOST PROFILE STRIP */
.soc-host-strip {
  background-color: var(--soc-card-bg);
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  box-shadow: var(--soc-shadow-sm);
}

.soc-host-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--soc-primary);
  flex-shrink: 0;
}

.soc-host-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--soc-text-main);
  margin-bottom: 4px;
}

.soc-host-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--soc-primary);
  margin-bottom: 8px;
}

.soc-host-info p {
  font-size: 13px;
  color: var(--soc-text-muted);
  line-height: 1.6;
}

/* SUBPAGE CARD */
.soc-subpage-card {
  background-color: var(--soc-card-bg);
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-lg);
  padding: 40px;
  box-shadow: var(--soc-shadow-sm);
  margin-bottom: 32px;
}

.soc-subpage-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--soc-text-main);
  margin-bottom: 8px;
}

.soc-subpage-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--soc-text-main);
  margin: 28px 0 12px;
}

.soc-subpage-card p {
  font-size: 14px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
}

.soc-subpage-card ul, .soc-subpage-card ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.soc-subpage-card li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}

/* FORM STYLES */
.soc-form-group {
  margin-bottom: 20px;
}

.soc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--soc-text-main);
}

.soc-form-input, .soc-form-textarea, .soc-form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--soc-border);
  border-radius: var(--soc-radius-sm);
  font-family: inherit;
  font-size: 14px;
  background-color: #ffffff;
}

.soc-form-input:focus, .soc-form-textarea:focus, .soc-form-select:focus {
  outline: none;
  border-color: var(--soc-primary);
  box-shadow: 0 0 0 3px var(--soc-primary-light);
}

.soc-btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--soc-radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.soc-btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* FOOTER */
.soc-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--soc-border);
  padding: 32px 28px;
  margin-top: auto;
}

.soc-footer-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.soc-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.soc-footer-links a {
  font-size: 13px;
  color: var(--soc-text-muted);
  text-decoration: none;
}

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

.soc-footer-copy {
  font-size: 12px;
  color: var(--soc-text-subtle);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .soc-podcast-grid {
    grid-template-columns: 1fr;
  }
  
  .soc-principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .soc-audio-player-card {
    flex-direction: column;
    text-align: center;
  }
  
  .soc-player-buttons-row {
    justify-content: center;
  }
  
  .soc-waveform {
    justify-content: center;
  }
  
  .soc-host-strip {
    flex-direction: column;
    text-align: center;
  }
}
