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

:root {
  --green-dark: #2d5016;
  --green-mid: #4a7c2e;
  --green-light: #e8f0e0;
  --earth: #8b6f47;
  --earth-light: #f5f0e8;
  --sand: #faf8f4;
  --text: #1a1a1a;
  --text-muted: #666;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero .subtitle {
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
section {
  padding: 3rem 0;
}
section h2 {
  font-size: 1.75rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
section .section-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Show Cards */
.show-cards {
  display: grid;
  gap: 1.5rem;
}
.show-card {
  background: white;
  border: 1px solid #e0ddd5;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.show-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.show-card .show-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}
.show-card h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
}
.show-card .host {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.show-card .episode-title {
  color: var(--earth);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.show-card .product-count {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Product List */
.product-list {
  list-style: none;
}
.product-item {
  border-top: 1px solid #f0ede5;
  padding: 0.75rem 0;
}
.product-item:first-child {
  border-top: none;
}
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.product-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.product-category {
  font-size: 0.75rem;
  color: var(--earth);
  background: var(--earth-light);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}
.product-confidence {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.25rem 0 0.5rem;
}

/* Aesthetic Tags */
.aesthetic-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--green-light);
  color: var(--green-mid);
  font-weight: 500;
}

/* Developer Section */
.dev-section {
  background: var(--earth-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1rem;
}
.dev-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}
.dev-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.dev-section code {
  background: white;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--green-dark);
}
.dev-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.dev-links a {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.dev-links a:hover {
  text-decoration: underline;
}

/* JSON Toggle */
.json-toggle {
  background: var(--green-mid);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
}
.json-toggle:hover {
  background: var(--green-dark);
}
.json-output {
  display: none;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
}
.json-output.visible {
  display: block;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid #e0ddd5;
}
footer a {
  color: var(--green-mid);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero .tagline { font-size: 1.05rem; }
  section { padding: 2rem 0; }
  .show-card .show-header { flex-direction: column; }
  .product-top { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .dev-links { flex-direction: column; }
}
