/* ═══════════════════════════════════════════
   VitalPulse — Health Video Site
   Aesthetic: Editorial medical, clean & warm
   ═══════════════════════════════════════════ */

:root {
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-accent: #F0F5F1;
  --text-primary: #1A1D1A;
  --text-secondary: #5A6B5A;
  --text-muted: #8A978A;
  --accent: #2D8F5E;
  --accent-hover: #237A4D;
  --accent-light: #E8F5EC;
  --border: #E2E8E3;
  --border-light: #EEF2EF;
  --shadow-sm: 0 1px 3px rgba(26,29,26,0.04);
  --shadow-md: 0 4px 16px rgba(26,29,26,0.06);
  --shadow-lg: 0 8px 32px rgba(26,29,26,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo {
  font-family: var(--serif); font-size: 1.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.86rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: var(--accent-light);
}
.nav-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.4rem 0.8rem;
}
.nav-search input {
  border: none; outline: none; background: none;
  font-family: var(--sans); font-size: 0.84rem;
  width: 150px; color: var(--text-primary);
}
.nav-search input::placeholder { color: var(--text-muted); }

/* ─── HERO ─── */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}
.hero h1 {
  font-family: var(--serif); font-size: 3.2rem;
  font-weight: 400; line-height: 1.12; max-width: 700px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub {
  margin-top: 1rem; font-size: 1.02rem;
  color: var(--text-secondary); max-width: 560px; line-height: 1.7;
}

/* ─── PILLS ─── */
.categories {
  max-width: 1280px; margin: 0 auto;
  padding: 0.5rem 2rem 1.5rem;
  display: flex; gap: 0.45rem; flex-wrap: wrap;
}
.cat-pill {
  padding: 0.42rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); transition: all 0.2s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--accent); color: white; border-color: var(--accent);
}

/* ─── AD SLOTS ─── */
.ad-slot {
  background: linear-gradient(135deg, #f8f8f4 0%, #f0f0ec 100%);
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ad-zone-banner { max-width: 1280px; margin: 0 auto 1.5rem; padding: 0 2rem; }
.ad-zone-banner .ad-slot { height: 90px; }
.ad-zone-infeed { margin: 0.5rem 0; }
.ad-zone-infeed .ad-slot { height: 110px; }
.ad-zone-sidebar .ad-slot { height: 250px; margin-bottom: 1.5rem; }
.ad-zone-sidebar .ad-slot.tall { height: 600px; }
.ad-zone-footer { max-width: 1280px; margin: 0 auto 1rem; padding: 0 2rem; }
.ad-zone-footer .ad-slot { height: 90px; }

/* ─── MAIN LAYOUT ─── */
.main-layout {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem;
}

/* ─── FEATURED ─── */
.featured { margin-bottom: 2rem; }
.featured-video {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: #111;
  aspect-ratio: 16/9; box-shadow: var(--shadow-lg);
}
.featured-video iframe { width: 100%; height: 100%; border: none; }
.featured-meta { margin-top: 1.2rem; }
.featured-tag {
  display: inline-block; background: var(--accent-light);
  color: var(--accent); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem; border-radius: 6px; margin-bottom: 0.5rem;
}
.featured-meta h2 {
  font-family: var(--serif); font-size: 1.65rem;
  font-weight: 400; line-height: 1.3; margin-bottom: 0.45rem;
}
.featured-meta p {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.7; max-width: 640px;
}
.featured-info {
  display: flex; gap: 1.5rem; margin-top: 0.7rem;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ─── SECTIONS ─── */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem; margin-top: 0.5rem;
}
.section-header h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.section-header a { color: var(--accent); font-size: 0.82rem; font-weight: 500; }

/* ─── VIDEO GRID ─── */
.video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem; margin-bottom: 1.5rem;
}

/* ─── BROWSE LAYOUT ─── */
.browse-layout {
  max-width: 1400px; margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.video-grid.browse-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}
.browse-grid .video-card { border: none; background: transparent; }
.browse-grid .video-card:hover { box-shadow: none; transform: none; }
.browse-grid .video-thumb { border-radius: 8px; }
.browse-grid .video-body { padding: 0.4rem 0.1rem 0.3rem; }
.browse-grid .video-body h4 { font-size: 0.75rem; margin-bottom: 0.1rem; line-height: 1.3; }
.browse-grid .video-body .desc { display: none; }
.browse-grid .video-body .cat-label { font-size: 0.55rem; margin-bottom: 0.15rem; }
.browse-grid .video-body .meta { font-size: 0.6rem; gap: 0.5rem; margin-top: 0.2rem; }
.video-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.video-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
  border-color: var(--border);
}
.video-thumb {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden; background: #E8EBE8;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.12); opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn span {
  width: 46px; height: 46px; background: rgba(255,255,255,0.95);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.play-btn span::after {
  content: ''; border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--accent); margin-left: 2px;
}
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: white;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.18rem 0.45rem; border-radius: 4px;
}
.video-body { padding: 0.85rem 0.95rem 0.95rem; }
.video-body .cat-label {
  font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); margin-bottom: 0.3rem;
}
.video-body h4 {
  font-size: 0.9rem; font-weight: 600; line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.video-body .desc {
  font-size: 0.78rem; color: var(--text-secondary);
  line-height: 1.55; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-body .meta {
  display: flex; gap: 1rem; margin-top: 0.55rem;
  font-size: 0.7rem; color: var(--text-muted);
}

/* ─── VIDEO PAGE ─── */
.video-page { max-width: 1280px; margin: 0 auto; padding: 2rem; }
.video-page-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem;
}
.video-player {
  border-radius: var(--radius-lg); overflow: hidden;
  background: #111; aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg); margin-bottom: 1.5rem;
}
.video-player iframe { width: 100%; height: 100%; border: none; }
.video-page-meta h1 {
  font-family: var(--serif); font-size: 2rem;
  font-weight: 400; line-height: 1.25; margin-bottom: 0.8rem;
}
.video-page-info {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.video-page-desc {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 2rem;
}
.video-page-desc p { margin-bottom: 1rem; }
.takeaways {
  background: var(--bg-accent); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 2rem;
}
.takeaways h3 {
  font-family: var(--serif); font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.takeaways ul {
  list-style: none; padding: 0;
}
.takeaways li {
  padding: 0.4rem 0; font-size: 0.88rem;
  color: var(--text-secondary); line-height: 1.55;
  padding-left: 1.2rem; position: relative;
}
.takeaways li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}
.video-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 2rem;
}
.video-tags .tag {
  padding: 0.3rem 0.7rem; border-radius: 6px;
  font-size: 0.72rem; background: var(--accent-light);
  color: var(--accent); font-weight: 500;
}

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-section {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem;
}
.sidebar-section h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.8rem; }
.trending-item {
  display: flex; gap: 0.7rem; padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: opacity 0.2s;
}
.trending-item:last-child { border: none; }
.trending-item:hover { opacity: 0.7; }
.trending-num {
  font-family: var(--serif); font-size: 1.4rem;
  color: var(--border); line-height: 1; min-width: 22px;
}
.trending-text h5 { font-size: 0.8rem; font-weight: 600; line-height: 1.35; }
.trending-text span { font-size: 0.7rem; color: var(--text-muted); }

.newsletter {
  background: var(--accent); color: white;
  border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem;
}
.newsletter h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.35rem; }
.newsletter p { font-size: 0.8rem; opacity: 0.85; margin-bottom: 0.9rem; line-height: 1.5; }
.newsletter input {
  width: 100%; padding: 0.55rem 0.75rem; border: none;
  border-radius: 8px; font-family: var(--sans); font-size: 0.84rem;
  margin-bottom: 0.45rem;
}
.newsletter button {
  width: 100%; padding: 0.55rem;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent; color: white; border-radius: 8px;
  font-family: var(--sans); font-size: 0.84rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.newsletter button:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }

/* ─── DISCLAIMER ─── */
.disclaimer { max-width: 1280px; margin: 0 auto; padding: 0 2rem 1rem; }
.disclaimer-box {
  background: #FFF9EE; border: 1px solid #F0E4CC;
  border-radius: var(--radius); padding: 1rem 1.2rem;
  font-size: 0.76rem; color: #8A7650; line-height: 1.6;
  display: flex; gap: 0.6rem; align-items: flex-start;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border); padding: 2rem;
  text-align: center; color: var(--text-muted); font-size: 0.78rem;
}
footer a { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.8rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .browse-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .main-layout, .video-page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero h1 { font-size: 2.2rem; }
  .video-grid { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links, .nav-search { display: none; }
}
@media (max-width: 600px) {
  .browse-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero { animation: fadeUp 0.5s ease both; }
.featured { animation: fadeUp 0.5s ease 0.1s both; }
.video-card:nth-child(1) { animation: fadeUp 0.5s ease 0.15s both; }
.video-card:nth-child(2) { animation: fadeUp 0.5s ease 0.2s both; }
.video-card:nth-child(3) { animation: fadeUp 0.5s ease 0.25s both; }
.video-card:nth-child(4) { animation: fadeUp 0.5s ease 0.3s both; }
