/* ============================================================
   KriptoFX FAZA 7 — Page-specific overrides
   Inherits from single-post.css. Adds:
   - Pillar hero (with category emoji + color)
   - Page header (corporate style, no author/share)
   - Sidebar CTA link
   - No-sidebar single column variant
   ============================================================ */

/* Page hero (used by pillar pages) */
.kfx-page-pillar .kfx-page-hero {
  text-align: center;
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--kfx-border);
  background: radial-gradient(
    800px circle at 50% 0%,
    color-mix(in srgb, var(--kfx-cat-color, var(--kfx-accent)) 14%, transparent),
    transparent 60%
  );
  position: relative;
}
.kfx-page-pillar .kfx-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.kfx-page-pillar .kfx-page-hero > .kfx-shell { position: relative; }
.kfx-page-pillar .kfx-cat-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}
.kfx-page-pillar .kfx-cat-h1 {
  font-family: var(--kfx-font-h);
  font-size: clamp(36px, 4vw + 12px, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: var(--kfx-text);
  line-height: 1.1;
}
.kfx-page-pillar .kfx-cat-desc {
  color: var(--kfx-text-2);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.kfx-page-pillar .kfx-cat-stats {
  font-size: 13px;
  color: var(--kfx-muted);
}

/* Standard / corporate page header */
.kfx-page-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--kfx-border);
  margin-bottom: 32px;
}
.kfx-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--kfx-muted);
  margin-top: 16px;
}

/* No-sidebar variant: center the article in a wider shell */
.kfx-article-grid.kfx-no-sidebar {
  grid-template-columns: 1fr;
}
.kfx-article-grid.kfx-no-sidebar .kfx-article {
  max-width: 760px;
  margin: 0 auto;
}

/* Pillar pages: article uses default 720px content + sticky sidebar */
.kfx-page-pillar .kfx-article-grid {
  padding-top: 48px;
}

/* Sidebar CTA link */
.kfx-side-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kfx-accent);
  transition: var(--kfx-tx);
}
.kfx-side-cta:hover { gap: 8px; }
.kfx-side-cta svg { width: 14px; height: 14px; }

/* Corporate page typography slightly smaller h1 */
.kfx-page-corp .kfx-post-title {
  font-size: clamp(26px, 2.4vw + 12px, 36px);
}

/* Featured image inside .kfx-shell (instead of constrained .kfx-featured wrapper width) */
.kfx-page .kfx-featured {
  margin: 32px auto;
  max-width: var(--kfx-content-w);
}


/* === FAZA 12 — Footer + Side-Newsletter (2026-05-06) === */
/* Footer-bottom grid — copy left, meta right (row 1), disclaimer centered (row 2) */
.kfx-footer-bottom {
    border-top: 1px solid var(--kfx-border, #1E293B);
    padding: 20px 0 16px;
    display: grid;
    grid-template-areas: "copy meta" "disclaimer disclaimer";
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px 16px;
    font-size: 12px;
    color: var(--kfx-muted, #B4BCC9);
}
.kfx-footer-bottom > div:first-child { grid-area: copy; }
.kfx-footer-bottom > .kfx-disclaimer { grid-area: disclaimer; justify-self: center; }
.kfx-footer-bottom > .kfx-footer-meta { grid-area: meta; justify-self: end; }
.kfx-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 999px;
    color: var(--kfx-warning, #F59E0B);
    font-weight: 500;
    font-size: 11px;
    line-height: 1.4;
}
.kfx-disclaimer svg { width: 12px; height: 12px; flex-shrink: 0; }
.kfx-footer-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.kfx-footer-meta a { color: var(--kfx-muted, #B4BCC9); transition: color 0.15s; }
.kfx-footer-meta a:hover { color: var(--kfx-text, #fff); }

@media (max-width: 768px) {
    .kfx-footer-bottom {
        grid-template-areas: "copy" "meta" "disclaimer";
        grid-template-columns: 1fr;
        text-align: center;
        padding: 18px 0 14px;
        gap: 10px;
    }
    .kfx-footer-bottom > div:first-child,
    .kfx-footer-bottom > .kfx-disclaimer,
    .kfx-footer-bottom > .kfx-footer-meta { justify-self: center; }
    .kfx-footer-meta { justify-content: center; }
}

/* Side-newsletter form (pillar sidebar) — input + button were unstyled, overflowing */
.kfx-side-newsletter form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kfx-side-newsletter input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    background: var(--kfx-card-2, #0F1521);
    border: 1px solid var(--kfx-border, #1E293B);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--kfx-text, #E5E7EB);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.kfx-side-newsletter input[type="email"]:focus {
    border-color: var(--kfx-accent, #00C896);
    background: var(--kfx-card, #121826);
    box-shadow: 0 0 0 2px rgba(0,200,150,0.15);
}
.kfx-side-newsletter input[type="email"]::placeholder { color: var(--kfx-muted, #6B7589); }
.kfx-side-newsletter button {
    width: 100%;
    box-sizing: border-box;
    background: var(--kfx-accent, #00C896);
    color: #0B0F19;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.kfx-side-newsletter button:hover { background: #00B585; transform: translateY(-1px); }
