/* LeaseAI Blog — Shared Styles */

:root {
  --bg: #070B14;
  --bg-card: #0D1424;
  --bg-card-hover: #111929;
  --bg-header: rgba(7, 11, 20, 0.95);
  --accent-blue: #4F8EF7;
  --accent-purple: #7C5CFC;
  --accent-gradient: linear-gradient(135deg, #4F8EF7 0%, #7C5CFC 100%);
  --text: #E8EDF5;
  --text-muted: #8895AA;
  --text-subtle: #576070;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(79, 142, 247, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
  --article-width: 740px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── HEADER ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── HERO ────────────────────────────────────────────── */

.blog-hero {
  padding: 72px 24px 56px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.hero-eyebrow::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.blog-hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── ARTICLE GRID ────────────────────────────────────── */

.articles-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Featured first card */
.articles-grid .article-card:first-child {
  grid-column: 1 / -1;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

.article-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.article-card:hover::before {
  opacity: 1;
}

.articles-grid .article-card:first-child {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.card-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-purple);
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.card-featured-label::before {
  content: '★';
  font-size: 9px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--text-subtle);
  border-radius: 50%;
}

.card-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
}

.card-content {
  flex: 1;
}

.card-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.article-card:first-child .card-content h2 {
  font-size: 28px;
}

.card-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.article-card:hover .read-more {
  gap: 10px;
}

/* ─── ARTICLE PAGE ────────────────────────────────────── */

.article-header {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  padding: 6px 0;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--accent-blue);
}

.article-back svg {
  transition: transform 0.2s;
}

.article-back:hover svg {
  transform: translateX(-3px);
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.article-header .article-lede {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.byline-info {
  flex: 1;
}

.byline-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.byline-detail {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.byline-detail .dot {
  width: 3px;
  height: 3px;
  background: var(--text-subtle);
  border-radius: 50%;
}

/* ─── ARTICLE BODY ────────────────────────────────────── */

.article-body {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-body p:first-child {
  font-size: 18px;
  color: var(--text);
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.article-body ul li, .article-body ol li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.75;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Highlighted box */
.callout {
  background: rgba(79, 142, 247, 0.07);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

/* ─── CTA BLOCK ───────────────────────────────────────── */

.article-cta {
  max-width: var(--article-width);
  margin: 0 auto 80px;
  padding: 0 24px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1) 0%, rgba(124, 92, 252, 0.1) 100%);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.cta-box h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.2px;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ─── FOOTER ──────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-brand a {
  color: var(--accent-blue);
  text-decoration: none;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo-badge {
    display: none;
  }

  .nav-link:not(.nav-cta) {
    display: none;
  }

  .blog-hero {
    padding: 48px 16px 40px;
  }

  .articles-section {
    padding: 0 16px 60px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .articles-grid .article-card:first-child {
    flex-direction: column;
    gap: 16px;
  }

  .article-card {
    padding: 24px;
  }

  .article-header {
    padding: 40px 16px 28px;
  }

  .article-body {
    padding: 0 16px 32px;
  }

  .article-cta {
    padding: 0 16px;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-box h2 {
    font-size: 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .article-header .article-lede {
    font-size: 16px;
  }

  .article-body p {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 22px;
  }
}
