/* ============================================================
   INSIGHT , COMPONENT STYLES
   Cards, callouts, buttons, nav, hero, articles
   Depends on: base.css
   ============================================================ */


/* ============================================================
   1. CARDS
   ============================================================ */

.card,
.card-link {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover,
.card-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.card-link:hover {
  transform: translateY(-2px);
}


/* ============================================================
   2. STAT CARDS
   ============================================================ */

.stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.stat-card-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-card-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Color variants , subtle tinted bg + matching border */
.stat-card--learn      { background: linear-gradient(180deg, var(--success-glow), transparent 80%); border-color: rgba(16,185,129,0.18); }
.stat-card--tools      { background: linear-gradient(180deg, var(--primary-glow), transparent 80%); border-color: rgba(107,138,228,0.22); }
.stat-card--frameworks { background: linear-gradient(180deg, var(--warning-glow), transparent 80%); border-color: rgba(245,158,11,0.18); }
.stat-card--0dte       { background: linear-gradient(180deg, var(--danger-glow),  transparent 80%); border-color: rgba(239,68,68,0.18); }
.stat-card--swing      { background: linear-gradient(180deg, var(--purple-glow),  transparent 80%); border-color: rgba(167,139,250,0.18); }


/* ============================================================
   3. CALLOUT BOXES
   ============================================================ */

.callout {
  border-left: 3px solid var(--border-hover);
  background: var(--bg-card);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 18px 22px;
  margin: 20px 0;
}

.callout-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.callout--trap    { border-left-color: var(--danger);  background: var(--danger-glow); }
.callout--trap .callout-title { color: var(--danger); }

.callout--fix     { border-left-color: var(--success); background: var(--success-glow); }
.callout--fix .callout-title { color: var(--success); }

.callout--insight { border-left-color: var(--primary); background: var(--primary-glow); }
.callout--insight .callout-title { color: var(--primary-100); }

.callout--warning { border-left-color: var(--warning); background: var(--warning-glow); }
.callout--warning .callout-title { color: var(--warning); }


/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-strong);
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  background: var(--primary-dim);
  border-color: var(--primary-dim);
  color: #fff;
  transform: translateY(-1px);
}

.btn--success {
  background: var(--success);
  border-color: var(--success);
  color: #0a0a0f;
  font-weight: 600;
}
.btn--success:hover {
  background: #0ea371;
  border-color: #0ea371;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-body);
}

.btn--sm { padding: 8px 14px; font-size: 13px; }


/* ============================================================
   5. HERO (homepage)
   ============================================================ */

.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,138,228,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,138,228,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: rgba(107,138,228,0.08);
  border: 1px solid rgba(107,138,228,0.22);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-100);
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--text);
}

.hero .lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stats .stat { text-align: center; }

.hero-stats .stat .n {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-stats .stat .l {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 6px;
}


/* ============================================================
   6. DAILY INSIGHT CARD
   ============================================================ */

.daily-insight {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, rgba(107,138,228,0.10), rgba(107,138,228,0.03));
  border: 1px solid rgba(107,138,228,0.22);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  overflow: hidden;
}

.daily-insight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(107,138,228,0.12), transparent 70%);
  pointer-events: none;
}

.daily-insight > * { position: relative; z-index: 1; }

.daily-insight-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.daily-insight .label {
  margin-bottom: 6px;
  color: var(--primary-100);
}

.daily-insight-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}


/* ============================================================
   7. RECOMMENDATION CARDS
   ============================================================ */

.rec-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.rec-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(107,138,228,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.rec-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(107,138,228,0.30);
  transform: translateY(-3px);
}

.rec-card:hover::after { opacity: 1; }

.rec-card > * { position: relative; z-index: 1; }

.rec-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.rec-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.rec-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rec-card-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
}


/* ============================================================
   8. TOOL CARDS
   ============================================================ */

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

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(107,138,228,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(107,138,228,0.28);
  transform: translateY(-3px);
}

.tool-card:hover::after { opacity: 1; }

.tool-card > * { position: relative; z-index: 1; }

.tool-card-icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 2px;
}

.tool-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.tool-card-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


/* ============================================================
   9. ARTICLE LAYOUT
   ============================================================ */

.article-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.article-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary-100);
  margin-bottom: 14px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.article-subtitle {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.55;
  max-width: 620px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px 72px;
  color: var(--text-body);
}

.article-body p {
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 22px;
  color: var(--text-body);
}

.article-body h2 {
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--text);
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

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

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

.article-body ol,
.article-body ul {
  margin: 0 0 22px 0;
  padding-left: 24px;
}
.article-body ol { list-style: decimal; }
.article-body ul { list-style: disc; }
.article-body li {
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 12px;
}

.article-footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ============================================================
   10. NAVIGATION BAR
   ============================================================ */

.insight-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(9,9,11,0.92), rgba(9,9,11,0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107,138,228,0.12);
}

.insight-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  gap: 18px;
}

.insight-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

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

.insight-nav-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.insight-nav-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.18em;
}

.insight-nav-by {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.insight-nav-sep {
  color: var(--text-dim);
  flex-shrink: 0;
  font-size: 14px;
}

.insight-nav-breadcrumb {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  letter-spacing: -0.005em;
}

.insight-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.insight-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

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

.insight-nav-link.active {
  background: rgba(107,138,228,0.14);
  color: var(--primary-100);
  font-weight: 600;
}

.insight-nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.insight-nav-hamburger:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  color: var(--text);
}


/* ============================================================
   11. MOBILE DRAWER
   ============================================================ */

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 18px;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-drawer-link:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.nav-drawer-link.active {
  background: rgba(107,138,228,0.14);
  color: var(--primary-100);
  font-weight: 600;
}

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 18px;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-drawer-close:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
}


/* ============================================================
   12. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .insight-nav-links { display: none; }
  .insight-nav-hamburger { display: flex; }
  .insight-nav-by { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat .n { font-size: 22px; }
  .article-header { padding: 36px 0 28px; margin-bottom: 32px; }
}
