/* styles.css - Compact hierarchical display with podcast subscriptions */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --bg-hover: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-dim: #707070;
  --accent: #00a8ff;
  --accent-hover: #0091e0;
  --error: #ff4444;
  --success: #44ff44;
  --border: #333;
  --shadow: rgba(0, 0, 0, 0.5);
  
  /* Discovery method colors */
  --global-color: #ff6b6b;
  --filtered-color: #4dabf7;
  --hybrid-color: #51cf66;
  
  /* Podcast colors */
  --podcast-bg: #1a1a1a;
  --podcast-hover: #2a2a2a;
  --rss-color: #ff9000;
  --indicator-bg: #ff6b35;
  --indicator-text: #fff;
  --panel-bg: #2d3748;
  --panel-border: #4a5568;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header - Compact */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.95);
}

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

.site-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.search-icon {
  margin-left: auto;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover {
  background: var(--bg-hover);
  color: var(--accent) !important;
  transform: scale(1.1);
}

/* Main content - Compact */
main {
  flex: 1;
  padding: 1rem 0;
}

/* Status bar - Compact */
.status {
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}

#status-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#updated {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Categories container - Compact */
.categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Category sections - Compact */
.category {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.category.depth-1 {
  margin-left: 1.5rem;
  padding: 0.875rem;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent);
}

.category.depth-2 {
  margin-left: 3rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--text-dim);
  opacity: 0.95;
}

/* Category header - Compact */
.category-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: all 0.2s;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.depth-1 .category-title {
  font-size: 1.1rem;
}

.depth-2 .category-title {
  font-size: 1rem;
}

/* Inline subscription buttons */
/* Podcast indicators - compact bubbles */
.podcast-indicators {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.podcast-indicator {
  position: relative;
  padding: 0.2rem 0.5rem;
  background: var(--indicator-bg);
  color: var(--indicator-text);
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}

.podcast-indicator:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.podcast-indicator.panel-open {
  background: var(--accent);
}

.summary-indicator {
  background: #51cf66;
}

.deepdive-indicator {
  background: #4dabf7;
}

/* Subscription panel - expandable details */
.subscription-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.75rem;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.subscription-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.subscription-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--panel-border);
}

.panel-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.panel-btn {
  padding: 0.4rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.panel-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.panel-btn.copy-rss:hover {
  background: var(--rss-color);
  color: white;
}

.panel-btn.copied {
  background: var(--success);
  color: white;
}

/* Legacy inline subscription styles for backward compatibility */
.inline-subscription {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.inline-sub-btn {
  padding: 0.25rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
  text-decoration: none;
}

.inline-sub-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.inline-sub-btn.copied {
  background: var(--success);
  color: var(--bg-primary);
  border-color: var(--success);
}

.inline-sub-btn svg {
  width: 12px;
  height: 12px;
}

.summary-sub {
  border-color: var(--rss-color);
}

.summary-sub:hover {
  border-color: var(--rss-color);
  color: var(--rss-color);
}

.deepdive-sub {
  border-color: var(--accent);
}

.deepdive-sub:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Discovery badges - Compact */
.badge {
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-global {
  background: var(--global-color);
  color: white;
}

.badge-filtered {
  background: var(--filtered-color);
  color: white;
}

.badge-hybrid {
  background: var(--hybrid-color);
  color: white;
}

/* Summary item - Compact */
.summary-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 1.25rem; /* Increased spacing between articles */
}

.summary-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.summary-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Podcast Section - NEW */
.podcast-section {
  background: var(--podcast-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  margin-bottom: 0.875rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.podcast-toggle {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-align: left;
}

.podcast-toggle:hover {
  background: var(--podcast-hover);
  color: var(--accent);
}

.podcast-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.podcast-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid var(--border);
}

.podcast-section.expanded .podcast-options {
  max-height: 300px;
}

.podcast-feed {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.podcast-feed:last-child {
  border-bottom: none;
}

.feed-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.subscribe-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sub-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.sub-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.sub-btn svg {
  width: 14px;
  height: 14px;
}

.sub-copy {
  background: var(--bg-tertiary);
}

.sub-copy:hover {
  background: var(--rss-color);
  color: white;
  border-color: var(--rss-color);
}

.sub-copy.copied {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.sub-rss {
  background: var(--rss-color);
  color: white;
  border-color: var(--rss-color);
}

.sub-rss:hover {
  background: #ff7a00;
  border-color: #ff7a00;
}

.sub-app {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.sub-app:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Stories section - Compact */
.stories-section {
  margin-top: 0.5rem;
}

.section-header {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Story items - Compact */
.story-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem; /* Increased spacing between articles */
  transition: all 0.2s;
}

.story-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateX(2px);
}

/* Content item - Unified style for all content */
.content-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem; /* Increased spacing between articles */
  transition: all 0.2s;
}

.content-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateX(2px);
}

.story-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.story-title,
.item-title {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Play buttons - Compact */
.play-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.play-button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.play-button.playing {
  background: var(--success);
}

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

.summary-play {
  padding: 0.4rem 1rem;
}

.story-play {
  padding: 0.3rem 0.625rem;
  font-size: 0.75rem;
}

.play-button svg {
  width: 16px;
  height: 16px;
}

.story-play svg {
  width: 14px;
  height: 14px;
}

/* Audio controls container */
.audio-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Speed selector */
.speed-selector {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 60px;
}

.speed-selector:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.speed-selector:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

/* Subcategories - Compact */
.subcategories {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Error and no content states - Compact */
.error-message,
.no-content {
  text-align: center;
  padding: 2rem 1.5rem;
}

.error-message h2,
.no-content h2 {
  color: var(--error);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.error-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.375rem;
  font-family: monospace;
}

.retry-button {
  margin-top: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Loading skeleton - Compact */
.skeleton {
  animation: pulse 1.5s infinite;
}

.skeleton-text {
  background: var(--bg-tertiary);
  border-radius: 0.25rem;
  height: 1rem;
  margin-bottom: 0.375rem;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Footer - Compact */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: auto;
}

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

/* Responsive design - Compact */

/* ========================================
   ADD THESE STYLES TO YOUR EXISTING styles.css
   Expandable Categories Feature
   ======================================== */

/* Tree controls bar */
.tree-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.tree-controls button {
  padding: 0.375rem 0.875rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tree-controls button:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Expand/collapse button */

.category.has-subcategories > .category-header {
  padding-right: 0.5rem;
}

.expand-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.expand-toggle:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-color: var(--accent);
}

.expand-toggle svg {
  transition: transform 0.2s ease;
}

.category.expanded .expand-toggle svg {
  transform: rotate(90deg);
}

/* Subcategory count indicator */
.subcategory-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: normal;
  margin-left: 0.5rem;
}

/* Category content wrapper */
.category-content {
  position: relative;
}

/* Collapsible subcategories with smooth animation */
.subcategories {
  overflow: hidden;
  transition: all 0.3s ease;
}

.category.collapsed .subcategories {
  display: none;
}

.category.expanded .subcategories {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Visual indicators for expandable categories */
.category.has-subcategories {
  position: relative;
}

.category.has-subcategories > .category-header {
  background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.03));
  padding: 0.75rem;
  margin: -0.75rem -0.75rem 0.75rem -0.75rem;
  border-radius: 0.375rem 0.375rem 0 0;
  cursor: pointer;
  user-select: none;
}

.category.has-subcategories > .category-header:hover {
  background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.08));
}

/* Depth-specific styling for expandable categories */
.category.depth-0.has-subcategories.expanded {
  border-left: 3px solid var(--accent);
  padding-left: calc(1rem - 3px);
}

.category.depth-1.has-subcategories.expanded {
  border-left-color: var(--text-secondary);
}

/* Collapsed state visual feedback */
.category.has-subcategories.collapsed > .category-header {
  opacity: 0.95;
}

.category.has-subcategories.collapsed > .category-header:hover {
  opacity: 1;
}

/* Loading state for expanding categories */
.subcategories.loading {
  position: relative;
  min-height: 100px;
}

.subcategories.loading::after {
  content: 'Loading subcategories...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Smooth transitions for category state changes */
.category {
  transition: border-color 0.2s, opacity 0.2s;
}

/* Better visual hierarchy when expanded */
.category.expanded > .subcategories {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tree-controls {
    flex-wrap: wrap;
    padding: 0.5rem;
  }
  
  .tree-controls button {
    flex: 1;
    min-width: 90px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .expand-toggle {
    width: 28px;
    height: 28px;
  }
  
  .subcategory-count {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
  
  .category.has-subcategories > .category-header {
    padding: 0.625rem;
    margin: -0.625rem -0.625rem 0.625rem -0.625rem;
  }
}

@media (max-width: 480px) {
  .tree-controls button {
    min-width: auto;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .expand-toggle {
    width: 32px;
    height: 32px;
  }
  
  .category-header {
    gap: 0.375rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .inline-subscription {
    gap: 0.25rem;
    margin-top: 0.25rem;
  }
  
  .inline-sub-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Transcript link */
.transcript-button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 0.5rem;
  transition: color 0.2s;
}

.transcript-button:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* Transcript modal */
.transcript-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.transcript-modal.show {
  opacity: 1;
  visibility: visible;
}

.transcript-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.transcript-modal-content {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.transcript-modal.show .transcript-modal-content {
  transform: scale(1);
}

.transcript-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 0.5rem 0.5rem 0 0;
}

.transcript-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.transcript-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.transcript-modal-close:hover {
  color: var(--text-primary);
}

.transcript-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.transcript-title {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.transcript-text {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Mobile transcript modal adjustments */
@media (max-width: 768px) {
  .transcript-modal-content {
    width: 95%;
    max-height: 85vh;
    margin: 1rem;
  }

  .transcript-modal-header {
    padding: 0.75rem 1rem;
  }

  .transcript-modal-header h3 {
    font-size: 1.1rem;
  }

  .transcript-modal-body {
    padding: 1rem;
  }

  .transcript-title {
    font-size: 1rem;
  }

  .transcript-text {
    font-size: 0.9rem;
  }

  /* Mobile-friendly transcript button styling */
  .transcript-button {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    margin-top: 0.1rem;
  }
}

/* Print styles - expand all for printing */
@media print {
  .category.has-subcategories {
    page-break-inside: avoid;
  }

  .subcategories {
    display: block !important;
  }

  .expand-toggle,
  .tree-controls {
    display: none;
  }
}