/* Bradley Murdoch Case Media Tracker - Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #212121;
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.site-tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255,255,255,0.1);
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.completion-summary {
  margin-bottom: 2rem;
}

.completion-summary h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.progress-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.progress-fill {
  transition: stroke-dashoffset 0.3s ease;
}

.progress-text {
  font-size: 1.2rem;
  font-weight: 600;
  fill: #ffffff;
}

.completion-note {
  font-size: 0.9rem;
  opacity: 0.9;
}

.filters-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 120px;
}

.filter-select {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #ffffff;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-select option {
  background: #2d2d44;
  color: #ffffff;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.8rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.section-intro {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.timeline-controls {
  margin-bottom: 1.5rem;
}

.view-toggle {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.2s;
}

.view-toggle:hover,
.view-toggle.active {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #667eea;
  transition: transform 0.2s, box-shadow 0.2s;
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.media-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.media-badge {
  background: #667eea;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.media-year {
  background: #e0e0e0;
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.media-platform {
  background: #4CAF50;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.watchlist-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #667eea;
  background: #ffffff;
  color: #667eea;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watchlist-btn.watched {
  background: #667eea;
  color: #ffffff;
}

.media-title {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.media-description {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.media-actions {
  display: flex;
  gap: 0.75rem;
}

.details-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.watch-link {
  background: #667eea;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}

.watchlist-section,
.stats-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.watchlist-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.clear-all-btn,
.export-btn,
.import-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}

.clear-all-btn:hover {
  background: #ffebee;
}

.export-btn:hover {
  background: #e8f5e9;
}

.import-btn:hover {
  background: #fff3e0;
}

.watchlist-items {
  min-height: 200px;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #667eea;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.usage-guide,
.assumptions,
.faq-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.guide-item,
.faq-item {
  padding: 1rem;
  border-left: 3px solid #667eea;
}

.guide-item h3,
.faq-item h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.last-updated {
  text-align: center;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.site-footer {
  background: #212121;
  color: #aaaaaa;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-note {
  font-size: 0.9rem;
}

.footer-nav a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-link {
    padding: 1rem;
  }

  .hero-section {
    padding: 1.5rem 1rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .filters-section {
    flex-direction: column;
    align-items: center;
  }

  .guide-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .media-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .media-title {
    font-size: 1.1rem;
  }
  
  .watchlist-btn {
    align-self: flex-end;
  }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
