/* ============================================================
   AgentFramework.net — Custom Styles
   Bootstrap 5 overrides and additions
   ============================================================ */

:root {
  --af-blue: #0078d4;
  --af-blue-dark: #005a9e;
  --af-blue-light: #e8f3fc;
  --af-surface: #f8f9fa;
  --af-border: #dee2e6;
  --af-code-bg: #282c34;
  --af-text-muted: #6c757d;
}

/* ── Global ────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #212529;
  background-color: #ffffff;
}

a {
  color: var(--af-blue);
}

a:hover {
  color: var(--af-blue-dark);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-af {
  background-color: var(--af-blue) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-af .navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff !important;
  letter-spacing: -0.3px;
}

.navbar-af .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.navbar-af .nav-link:hover,
.navbar-af .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.18);
}

.navbar-af .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-af .navbar-toggler-icon {
  filter: invert(1);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--af-blue) 0%, var(--af-blue-dark) 100%);
  color: #fff;
  padding: 80px 0 70px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 640px;
}

.btn-hero-primary {
  background-color: #fff;
  color: var(--af-blue);
  font-weight: 600;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: var(--af-blue-dark);
}

.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ── Section titles ─────────────────────────────────────── */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.section-subtitle {
  color: var(--af-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.section-divider {
  width: 50px;
  height: 4px;
  background: var(--af-blue);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Feature cards ──────────────────────────────────────── */
.feature-card {
  border: 1px solid var(--af-border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0, 120, 212, 0.12);
  transform: translateY(-3px);
}

.feature-card .feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── Example cards ──────────────────────────────────────── */
.example-card {
  border: 1px solid var(--af-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.example-card:hover {
  box-shadow: 0 8px 28px rgba(0, 120, 212, 0.12);
  transform: translateY(-3px);
}

.example-card .card-header-af {
  background: var(--af-blue);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
}

.example-card .card-body {
  padding: 1.25rem;
}

.example-card .badge-lang {
  background: var(--af-blue-light);
  color: var(--af-blue);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Code blocks ─────────────────────────────────────────── */
.code-block-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-block-wrapper pre {
  margin: 0;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  max-height: 480px;
  overflow-y: auto;
}

.code-block-wrapper .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ccc;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.code-block-wrapper .copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.nuget-block pre {
  background: #1e1e1e;
  color: #ce9178;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-af {
  background: var(--af-blue-light);
  border-bottom: 1px solid #c8dfee;
  padding: 0.6rem 0;
  margin-bottom: 0;
}

.breadcrumb-af .breadcrumb {
  margin: 0;
}

.breadcrumb-af .breadcrumb-item a {
  color: var(--af-blue);
  text-decoration: none;
}

/* ── Comparison table ────────────────────────────────────── */
.compare-table th {
  background: var(--af-blue);
  color: #fff;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-af {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-af a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-af a:hover {
  color: #fff;
}

.footer-af .footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-af .footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-af .footer-links a {
  margin: 0 0.5rem;
  font-size: 0.875rem;
}

.footer-af .footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Page layout util ─────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 576px) {
  .hero {
    padding: 50px 0 45px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}

