/* YouTube For Professionals — shared styles */
/* Palette: Slate Blue #2C3E6B / Warm Amber #E8A020 / Soft White #F8F6F2 / Charcoal #2D2D2D */

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

:root {
  --bg: #2C3E6B;               /* Slate Blue — primary background */
  --bg-2: #1E2B4D;              /* Deeper slate — panels/contrast */
  --panel: #35487A;             /* Slate panel, slightly lighter */
  --border: rgba(232, 160, 32, 0.2);  /* Amber at low alpha */
  --text: #F8F6F2;              /* Soft white body text */
  --text-2: #C8CFDD;            /* Muted secondary on dark */
  --muted: #92A0B8;             /* Very muted metadata */
  --accent: #E8A020;            /* Warm Amber */
  --accent-bright: #F4B93A;     /* Brightened amber for glows */
  --accent-dim: rgba(232, 160, 32, 0.08);
  --charcoal: #2D2D2D;
  --white: #F8F6F2;
  --green: #3FB950;             /* LIVE state */
  --orange: #E8A020;            /* CREATED NOT LIVE state */
  --red: #B85C5C;               /* Muted red (not aggressive) */
}

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Fraunces:wght@500;600;700;900&display=swap');

html, body {
  font-family: 'Merriweather', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 880px; margin: 0 auto; padding: 48px 24px; }

.brand-mark {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--text);
}

h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

p, li {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
}

.subtitle {
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 32px;
  font-style: italic;
}

.tag {
  display: inline-block;
  background: rgba(232, 160, 32, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 8px;
  font-family: 'Fraunces', serif;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.bullet-list { list-style: none; padding: 0; }
.bullet-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 16px;
}
.bullet-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.video-embed iframe, .video-embed .placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-embed .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.video-embed .placeholder .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}
.btn-block { width: 100%; }

.gate-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 43, 77, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.gate-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
}
.gate-box h2 { margin-top: 0; color: var(--accent); font-family: 'Fraunces', serif; }
.gate-box input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Merriweather', serif;
  font-size: 15px;
}
.gate-box input:focus { outline: none; border-color: var(--accent); }

body.has-sidebar { display: flex; min-height: 100vh; }
.sidebar {
  width: 280px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.sidebar-brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
  font-family: 'Fraunces', serif;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: 'Fraunces', serif;
}
.sidebar-nav a {
  display: block;
  padding: 8px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.sidebar-nav a:hover { color: var(--accent); }
.sidebar-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'Fraunces', serif;
}
.main-content { flex: 1; min-width: 0; }

.playbook-card {
  display: block;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}
.playbook-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.playbook-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.playbook-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--accent);
}
.playbook-info {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
