/* Topic page extras – sits on top of host.css */

/* Topic page extras – sits on top of host.css */

.topic-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 840px) {
  .topic-header {
    gap: 28px;
  }
}


.topic-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: #000;
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.back-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
}

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

.hero-band {
  margin-bottom: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(43, 52, 88, 0.85);
  background: rgba(3, 5, 14, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.hero-hook {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.topic-section {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(145deg,
    rgba(9, 12, 24, 0.97),
    rgba(16, 21, 38, 0.98)
  );
}

.topic-section h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.topic-section h3 {
  margin-top: 12px;
  margin-bottom: 6px;
}

/* Video + podcast layout */

.revision-media {
  display: grid;
  gap: 16px;
}

@media (min-width: 880px) {
  .revision-media {
    grid-template-columns: 3fr 2fr;
  }
}

.media-column h2 {
  margin-top: 0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.podcast-player {
  width: 100%;
  margin: 8px 0 10px;
}

/* NotebookLM box */

.notebooklm-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 75, 145, 0.5);
}

.notebooklm-box h3 {
  margin-top: 0;
}

.notebook-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4b91, #ff7b5c);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.notebook-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
}

/* Exam practice cards */

.exam-practice .exam-card {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(5, 8, 17, 0.9);
  border: 1px solid rgba(33, 41, 67, 0.9);
}

.exam-card h3 {
  margin-top: 0;
}

.technique {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.model-stem,
.answer-steps {
  font-size: 0.85rem;
}

/* Quick check */

.quick-check ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

.topic-intro {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* YouTube thumbnail card instead of embedded player */
.video-fallback {
  padding-bottom: 0;
  height: auto;
}

.video-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(33, 41, 67, 0.9);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.video-thumb {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px 18px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.05)
  );
}

.video-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.video-text {
  display: flex;
  flex-direction: column;
}

.video-label {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.video-sub {
  font-size: 0.8rem;
  color: #ffcc66;
}

.video-card:hover .video-play-icon {
  transform: scale(1.05);
}

.video-card:hover .video-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.1)
  );
}

.video-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
