/* Panda AI — Site Styles */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f0f0f0;
  --muted: #888;
  --accent: #4caf50;      /* bamboo green */
  --accent-dim: #2e7d32;
  --white: #fff;
  --black: #000;
  --border: #222;
  --radius: 12px;
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.25rem; font-weight: 700; color: var(--white);
}
.logo-emoji { font-size: 1.75rem; }
nav { display: flex; gap: 1.5rem; }
nav a {
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
nav a:hover, nav a.active { color: var(--white); }

/* ── Hero ── */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 {
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-secondary { background: var(--surface); color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

/* ── Sections ── */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
section h2 {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1.5rem; color: var(--white);
}

/* ── Episode Cards ── */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.episode-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.episode-card .thumb {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}
.episode-card .card-body { padding: 1.25rem; }
.episode-card h3 {
  font-size: 1rem; font-weight: 600; color: var(--white);
  margin-bottom: 0.5rem; line-height: 1.4;
}
.episode-card .meta {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem;
}
.episode-card .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem; padding: 0.2rem 0.5rem;
  background: var(--bg); border-radius: 4px; color: var(--accent);
}

/* ── Episode Page ── */
.episode-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.ep-header { margin-bottom: 2rem; }
.ep-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.ep-header .meta { color: var(--muted); font-size: 0.9rem; }
.video-embed {
  width: 100%; aspect-ratio: 16/9; border: none;
  border-radius: var(--radius); margin-bottom: 2rem;
  background: var(--surface);
}
.ep-content h2 { font-size: 1.25rem; margin: 2rem 0 1rem; color: var(--white); }
.ep-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; color: var(--accent); }
.ep-content p { margin-bottom: 1rem; color: var(--text); }
.ep-content ul, .ep-content ol { margin: 1rem 0 1rem 1.5rem; color: var(--text); }
.ep-content li { margin-bottom: 0.5rem; }
.ep-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem; margin: 1rem 0;
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-style: italic;
}
.ep-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
}
.ep-content th, .ep-content td {
  padding: 0.75rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.ep-content th { color: var(--accent); font-weight: 600; }
.model-results {
  display: grid; gap: 1rem;
}
.model-result {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.model-result h4 { color: var(--accent); margin-bottom: 0.5rem; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent); }

/* ── About ── */
.about-content { max-width: 680px; }
.about-content p { margin-bottom: 1rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center; color: var(--muted); font-size: 0.85rem;
}
footer a { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .header-inner { flex-direction: column; gap: 0.75rem; }
  nav { gap: 1rem; }
}
