/* ============================================================
   fluent.co — main.css
   Shared across static site and Ghost theme
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #183257;
  --blue:      #0a8fef;
  --blue-light:#e8f4fd;
  --white:     #fff;
  --off-white: #f8f9fc;
  --gray-200:  #e4e8f0;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-900:  #111827;
  --font:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(24,50,87,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; text-decoration: none;
}
.nav-logo em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
}

/* Mobile nav toggle (hidden by default, JS controls) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 130px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,143,239,0.12) 0%, transparent 70%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); background: rgba(10,143,239,0.12);
  padding: 0.3rem 0.85rem; border-radius: 20px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800;
  color: var(--white); line-height: 1.1; letter-spacing: -1.5px;
  max-width: 680px; margin-bottom: 1rem;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.58);
  max-width: 520px; line-height: 1.75;
}

/* ── Featured article ─────────────────────────────────────── */
.featured-wrap {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
  padding: 60px 5%;
}
.featured-inner { max-width: 1100px; margin: 0 auto; }
.featured-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem;
}
.featured-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  transition: box-shadow 0.25s; cursor: pointer;
  text-decoration: none; color: inherit;
}
.featured-card:hover { box-shadow: 0 12px 40px rgba(24,50,87,0.12); }
.featured-img {
  background: var(--navy); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.featured-img-text {
  font-size: 5rem; font-weight: 900; color: rgba(255,255,255,0.04);
  letter-spacing: -3px; position: absolute;
}
.featured-img-badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  background: var(--blue); color: var(--white);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 20px;
}
.featured-img-visual { position: relative; z-index: 1; }
.featured-body {
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-topic {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light);
  padding: 0.25rem 0.65rem; border-radius: 20px;
  display: inline-block; margin-bottom: 1rem;
}
.featured-body h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 0.85rem;
}
.featured-body p {
  font-size: 0.95rem; color: var(--gray-500); line-height: 1.75; margin-bottom: 1.5rem;
}
.featured-meta { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 1.5rem; }
.featured-meta strong { color: var(--navy); font-weight: 600; }
.read-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 700; color: var(--blue);
  text-decoration: none; transition: gap 0.2s;
}
.read-link:hover { gap: 0.7rem; }

/* ── Filter + grid section ────────────────────────────────── */
.grid-section { padding: 60px 5% 88px; }
.grid-inner { max-width: 1100px; margin: 0 auto; }

.filter-row {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: 0.825rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-500);
  cursor: pointer; transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.type-row {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--gray-200); margin-bottom: 2.5rem;
}
.type-btn {
  font-size: 0.85rem; font-weight: 600; padding: 0.65rem 1.25rem;
  border: none; background: none; color: var(--gray-400);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color 0.18s, border-color 0.18s;
}
.type-btn:hover { color: var(--navy); }
.type-btn.active { color: var(--navy); border-bottom-color: var(--blue); }
.type-btn .coming {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--gray-400); background: var(--gray-200);
  padding: 0.1rem 0.4rem; border-radius: 10px;
  margin-left: 0.4rem; vertical-align: middle;
}

/* ── Article grid ─────────────────────────────────────────── */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.article-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  overflow: hidden; transition: box-shadow 0.25s, transform 0.2s;
  cursor: pointer; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.article-card:hover { box-shadow: 0 8px 30px rgba(24,50,87,0.1); transform: translateY(-3px); }
.article-img {
  height: 150px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.article-img-text {
  font-size: 2.8rem; font-weight: 900; color: rgba(255,255,255,0.05);
  letter-spacing: -2px; position: absolute;
}
.article-img-icon {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(10,143,239,0.2);
  display: flex; align-items: center; justify-content: center;
}
.article-img-icon svg {
  width: 22px; height: 22px;
  stroke: #5bbcff; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.article-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.article-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light);
  padding: 0.2rem 0.6rem; border-radius: 20px;
  display: inline-block; margin-bottom: 0.65rem; align-self: flex-start;
}
.article-card h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin-bottom: 0.45rem;
}
.article-card p { font-size: 0.825rem; color: var(--gray-500); line-height: 1.65; flex: 1; }
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200);
}
.article-meta { font-size: 0.73rem; color: var(--gray-400); }
.article-arrow { font-size: 0.85rem; color: var(--blue); font-weight: 700; }

.empty-state { grid-column: span 3; text-align: center; padding: 4rem 0; color: var(--gray-400); }
.empty-state p { font-size: 0.95rem; }

/* ── Ghost Koenig editor classes (required) ───────────────── */
.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--gray-900); }
.post-content h2 { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin: 2.5rem 0 0.75rem; letter-spacing: -0.4px; }
.post-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.6rem; }
.post-content p  { margin-bottom: 1.4rem; }
.post-content ul,
.post-content ol { margin: 0 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
  border-left: 3px solid var(--blue); padding: 0.6rem 1.25rem;
  margin: 2rem 0; color: var(--gray-500); font-style: italic;
}
.post-content a   { color: var(--blue); }
.post-content img { max-width: 100%; border-radius: 10px; margin: 1.5rem 0; }
.post-content hr  { border: none; border-top: 1px solid var(--gray-200); margin: 2.5rem 0; }

.kg-width-wide {
  margin-left: calc(50% - min(45vw, 560px));
  margin-right: calc(50% - min(45vw, 560px));
  width: min(90vw, 1120px);
  max-width: unset;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw; max-width: unset; border-radius: 0;
}
.kg-image { max-width: 100%; }
.kg-image-card { margin: 1.5rem 0; }
.kg-image-card figcaption {
  font-size: 0.78rem; color: var(--gray-400);
  text-align: center; margin-top: 0.5rem;
}
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter { background: var(--navy); padding: 60px 5%; }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter h2 {
  font-size: 1.75rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px; margin-bottom: 0.6rem;
}
.newsletter p {
  font-size: 0.95rem; color: rgba(255,255,255,0.55);
  line-height: 1.7; margin-bottom: 1.75rem;
}
.newsletter-form { display: flex; gap: 0.6rem; max-width: 440px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: 0.8rem 1rem; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white); font-family: var(--font); font-size: 0.875rem;
  outline: none; transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: var(--blue); }
.newsletter-btn {
  background: var(--blue); color: var(--white); border: none;
  padding: 0.8rem 1.4rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background 0.2s; white-space: nowrap;
}
.newsletter-btn:hover { background: #0880d8; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 5%;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.footer-logo em { color: var(--blue); font-style: normal; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
  width: 100%; margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img  { min-height: 200px; }
}
@media (max-width: 600px) {
  .articles-grid   { grid-template-columns: 1fr; }
  .nav-links       { display: none; }
  .nav-links.open  { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(24,50,87,0.98); padding: 1.5rem 5%; gap: 1.25rem; }
  .nav-toggle      { display: flex; }
  .newsletter-form { flex-direction: column; }
  .empty-state     { grid-column: span 1; }
}
