/* ============================================================
   thecoachdinesh.com/courses/ai — shared stylesheet
   Design: deep navy tech meets human warmth
   ============================================================ */

:root {
  --navy:    #0a1628;
  --navy2:   #0f2040;
  --blue:    #1a56db;
  --blue-lt: #3b82f6;
  --accent:  #f59e0b;        /* amber — signal color */
  --accent2: #10b981;        /* emerald — success/labs */
  --white:   #ffffff;
  --off-white: #e8edf5;
  --muted:   #8fa3bc;
  --border:  rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--off-white);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── BACKGROUND TEXTURE ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, #1a56db18, transparent),
    radial-gradient(ellipse 40% 60% at 90% 100%, #f59e0b0a, transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }

p { color: var(--muted); }
p strong { color: var(--off-white); }

a { color: var(--blue-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-brand .logo-dot {
  color: var(--accent);
}

.navbar-brand .course-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--white);
  background: var(--card-bg);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item-dropdown > a::after {
  content: '›';
  font-size: 1rem;
  transform: rotate(90deg);
  display: inline-block;
  transition: transform var(--transition);
}

.nav-item-dropdown:hover > a::after {
  transform: rotate(-90deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 1001;
}

/* Invisible hover bridge to keep dropdown open */
.nav-item-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: auto;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-item-dropdown:hover::before {
  pointer-events: auto;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--off-white);
}

.dropdown-menu a:hover {
  background: var(--card-hover);
  color: var(--white);
}

.dropdown-menu a .session-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  min-width: 28px;
}

.navbar-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.navbar-cta:hover {
  background: var(--blue-lt) !important;
  color: var(--white) !important;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── MAIN WRAPPER ────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-top: 68px;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
section {
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 56px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-lt); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--card-bg);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
}
.btn-accent:hover { background: #fbbf24; color: var(--navy); }

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ── TAGS ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.tag-blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-lt); border: 1px solid rgba(59,130,246,0.25); }
.tag-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent); border: 1px solid rgba(245,158,11,0.25); }
.tag-green { background: rgba(16, 185, 129, 0.12); color: var(--accent2); border: 1px solid rgba(16,185,129,0.25); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 60px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a:hover { color: var(--white); }

/* ── AGENT DETAIL PAGES ─────────────────────────────────── */
.agent-hero { padding: 100px 60px 40px; max-width: 1200px; margin: 0 auto; }
.agent-icon-badge { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.agent-hero h1 { color: var(--white); margin-bottom: 12px; }
.agent-tagline { font-size: 1.05rem; max-width: 640px; margin-bottom: 24px; }
.agent-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.agent-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.agent-section { max-width: 1200px; margin: 0 auto; padding: 48px 60px; }
.agent-section-narrow { max-width: 900px; }

.flow-diagram {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--off-white);
  line-height: 1.9;
  white-space: pre;
  overflow-x: auto;
}
.flow-diagram .arrow { color: var(--accent); }

.info-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.info-table th, .info-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.info-table th { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.info-table td { color: var(--off-white); }
.info-table td code { font-family: var(--font-mono); color: var(--blue-lt); font-size: 0.82rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap .info-table { margin-top: 0; }
.table-wrap tr:last-child td { border-bottom: none; }

.step-list { display: flex; flex-direction: column; gap: 4px; }
.step-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent);
}
.step-body h4 { color: var(--white); margin-bottom: 6px; font-size: 0.98rem; }
.step-body p { font-size: 0.88rem; margin-bottom: 8px; }

.code-block {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--accent2); overflow-x: auto; white-space: pre; margin: 8px 0;
}

.callout { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.85rem; margin: 10px 0; border: 1px solid; }
.callout-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: var(--off-white); }
.callout-warn { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: var(--off-white); }

.extend-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.extend-list li { font-size: 0.9rem; padding-left: 22px; position: relative; color: var(--off-white); }
.extend-list li::before { content: '💡'; position: absolute; left: 0; }

.builtwith-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.agent-footer-nav {
  display: flex; justify-content: space-between; gap: 16px; padding: 40px 60px;
  border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  section { padding: 56px 24px; }
  .divider { margin: 0 24px; }
  .site-footer { padding: 32px 24px; }
  .hamburger { display: flex; }
  .navbar-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 12px 16px; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }

  .agent-hero { padding: 80px 24px 32px; }
  .agent-section { padding: 40px 24px; }
  .agent-footer-nav { padding: 32px 24px; }
  .flow-diagram { font-size: 0.75rem; }
}
