/*
 Theme Name: StackForFree Child
 Template: astra
 Description: StackForFree custom child theme — dark tech brand
 Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0A0A0F;
  --bg2:       #0F0F18;
  --card:      #12121E;
  --blue:      #2563EB;
  --blue-dark: #1D4ED8;
  --muted:     #94A3B8;
  --white:     #F8FAFC;
  --border:    rgba(37,99,235,0.18);
  --font-head: 'Big Shoulders Display', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html, body {
  background: var(--bg) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  margin: 0; padding: 0;
}

/* =============================================
   ASTRA OVERRIDES — kill white backgrounds
   ============================================= */
#page, .site, .ast-container, .ast-page-builder-template .site-content,
.entry-content, .ast-wide-layout .site-content { background: var(--bg) !important; }

/* =============================================
   NAVBAR
   ============================================= */
.site-header, #masthead, .ast-primary-header-bar {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
}
.main-header-bar { background: var(--bg) !important; padding: 0 40px !important; }
.site-title a, .ast-site-identity { color: var(--white) !important; font-family: var(--font-head) !important; font-weight: 800 !important; font-size: 22px !important; letter-spacing: -0.5px; }
.main-header-menu .menu-item a { color: var(--muted) !important; font-family: var(--font-body) !important; font-size: 14px !important; font-weight: 500; transition: color .2s; }
.main-header-menu .menu-item a:hover { color: var(--white) !important; }

/* =============================================
   GLOBAL HEADINGS
   ============================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head) !important;
  color: var(--white) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}
p { color: var(--muted); font-family: var(--font-body); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #60A5FA; }

/* =============================================
   BUTTONS
   ============================================= */
.sff-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff !important;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none !important;
}
.sff-btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff !important; }
.sff-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white) !important;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  transition: border-color .2s, background .2s; text-decoration: none !important;
}
.sff-btn-ghost:hover { border-color: var(--blue); background: rgba(37,99,235,0.08); }

/* =============================================
   LABEL / BADGE
   ============================================= */
.sff-label {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 14px; font-family: var(--font-body);
}

/* =============================================
   HERO SECTION
   ============================================= */
.sff-hero {
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.sff-hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.sff-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.sff-hero h1 { font-size: clamp(52px, 8vw, 96px) !important; margin: 20px 0 12px !important; }
.sff-hero h1 span { color: var(--blue) !important; }
.sff-hero p { font-size: 18px; max-width: 600px; margin: 0 auto 36px; color: var(--muted); }
.sff-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   STATS BAR
   ============================================= */
.sff-stats {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 24px; background: var(--bg2);
}
.sff-stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.sff-stat { text-align: center; }
.sff-stat-number { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--blue); display: block; }
.sff-stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* =============================================
   SECTION SHARED
   ============================================= */
.sff-section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.sff-section-header { margin-bottom: 48px; }
.sff-section-header h2 { font-size: clamp(32px,5vw,52px) !important; margin-bottom: 8px !important; }
.sff-section-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sff-see-all { font-size: 13px; color: var(--blue); font-weight: 500; }
.sff-see-all:hover { color: #60A5FA; }

/* =============================================
   VIDEO CARDS
   ============================================= */
.sff-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.sff-video-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.sff-video-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.sff-video-thumb {
  aspect-ratio: 16/9; background: #1a1a2e; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.sff-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(37,99,235,0.9); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; transition: background .2s, transform .2s;
}
.sff-video-card:hover .sff-play-btn { background: var(--blue); transform: scale(1.08); }
.sff-video-info { padding: 16px; }
.sff-video-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.sff-video-meta { font-size: 12px; color: var(--muted); }

/* =============================================
   BLOG / REVIEW CARDS
   ============================================= */
.sff-reviews-list { display: flex; flex-direction: column; gap: 12px; }
.sff-review-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; cursor: pointer; transition: border-color .2s, background .2s;
  text-decoration: none !important;
}
.sff-review-card:hover { border-color: var(--blue); background: rgba(37,99,235,0.04); }
.sff-review-card-left { flex: 1; }
.sff-review-card h3 { font-size: 17px !important; font-weight: 700 !important; margin-bottom: 6px !important; color: var(--white) !important; }
.sff-review-card p { font-size: 13px; color: var(--muted); margin: 0; }
.sff-review-card .sff-read-time { font-size: 11px; color: var(--blue); margin-top: 8px; display: block; font-weight: 500; }
.sff-review-arrow { color: var(--blue); font-size: 18px; flex-shrink: 0; }

/* =============================================
   CTA BANNER
   ============================================= */
.sff-cta-banner {
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(37,99,235,0.05) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 80px 24px;
}
.sff-cta-banner h2 { font-size: clamp(32px,5vw,56px) !important; margin-bottom: 12px !important; }
.sff-cta-banner p { font-size: 16px; color: var(--muted); margin-bottom: 32px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer, #colophon { background: var(--bg) !important; border-top: 1px solid var(--border) !important; }
.sff-footer { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; }
.sff-footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.sff-footer-brand .sff-logo { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--white); }
.sff-footer-brand .sff-logo span { color: var(--blue); }
.sff-footer-brand p { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 220px; }
.sff-footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.sff-footer-col h4 { font-size: 12px !important; font-weight: 600 !important; color: var(--white) !important; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px !important; }
.sff-footer-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sff-footer-col a:hover { color: var(--white); }
.sff-footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sff-footer-bottom p { font-size: 12px; color: var(--muted); margin: 0; }
.sff-disclaimer { font-size: 11px; color: #64748B; text-align: center; max-width: 700px; margin: 16px auto 0; line-height: 1.5; }

/* =============================================
   BRIDGE PAGE
   ============================================= */
.sff-bridge { background: var(--bg); padding: 80px 24px; min-height: 100vh; }
.sff-bridge-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.sff-bridge h1 { font-size: clamp(40px,6vw,72px) !important; margin-bottom: 16px !important; }
.sff-bridge h1 span { color: var(--blue) !important; }
.sff-bridge .sff-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 48px; }
.sff-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px; margin: 48px 0;
}
.sff-feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; text-align: left;
}
.sff-feature-card .sff-check { color: var(--blue); font-size: 18px; margin-bottom: 10px; display: block; }
.sff-feature-card h4 { font-size: 15px !important; font-weight: 700 !important; color: var(--white) !important; margin-bottom: 4px !important; }
.sff-feature-card p { font-size: 13px; color: var(--muted); margin: 0; }
.sff-trust-signals { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 32px 0; }
.sff-trust { font-size: 13px; color: var(--muted); }
.sff-trust strong { color: var(--white); }
.sff-bridge-cta { margin-top: 40px; }
.sff-bridge-cta .sff-btn-primary { font-size: 17px; padding: 17px 40px; }
.sff-affiliate-disclaimer { margin-top: 24px; font-size: 11px; color: #64748B; }

/* =============================================
   LOGO MARKUP
   ============================================= */
.sff-logo-text { font-family: var(--font-head); font-weight: 800; line-height: 1; }
.sff-logo-text .part-white { color: var(--white); }
.sff-logo-text .part-blue { color: var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 1px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .sff-hero { padding: 100px 20px 60px; }
  .sff-stats-inner { justify-content: center; }
  .sff-footer-top { flex-direction: column; }
  .sff-footer-links { gap: 24px; }
  .sff-review-card { flex-direction: column; }
}

/* Hide default Astra elements on full-width pages */
.sff-fullwidth .ast-container, .sff-fullwidth .entry-header { display: none; }
.page-template-sff-fullwidth .entry-content { padding: 0 !important; margin: 0 !important; }
.page-template-sff-fullwidth .site-content { padding: 0 !important; }
