/*
Theme Name: FreeScreenRec
Theme URI: https://freescreenrec.site
Author: FreeScreenRec Team
Author URI: https://freescreenrec.site
Description: Custom theme for FreeScreenRec, a free screen recorder for tutorial creators. Click-ripple highlights and shape annotations inspired the design system.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: freescreenrec
*/

/* ============================================================
   FreeScreenRec — Design System
   Grounded in the product itself: click-ripple highlights (red)
   and rectangle/circle shape annotations (yellow) are the two
   real tools this app gives tutorial creators — so they become
   the two accent colors and the recurring visual motifs here.
   ============================================================ */

:root{
  --bg:        #0f0f16;
  --surface:   #171720;
  --surface-2: #1e1e29;
  --border:    #2b2b39;
  --text:      #f1f1f4;
  --text-dim:  #9d9dae;
  --text-faint:#6c6c7d;

  --ripple:    #ff3b5c;   /* click-ripple red   */
  --ripple-dim:#ff3b5c33;
  --shape:     #ffcf3f;   /* annotation yellow  */
  --ok:        #35d68f;   /* free/no-cost green */

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ background:#0f0f16 !important; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; line-height:1.15; margin:0 0 .5em; letter-spacing:-0.01em; }
p{ margin:0 0 1.1em; color:var(--text-dim); }
.wrap{ max-width:var(--container); margin:0 auto; padding:0 24px; }
::selection{ background:var(--ripple); color:#fff; }
:focus-visible{ outline:2px solid var(--shape); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--ripple); font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before{
  content:""; width:9px; height:9px; border-radius:50%;
  background:var(--ripple); box-shadow:0 0 0 0 var(--ripple-dim);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(255,59,92,.5); }
  70%{ box-shadow:0 0 0 8px rgba(255,59,92,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,59,92,0); }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  padding:13px 24px; border-radius:999px; border:1px solid transparent;
  cursor:pointer; transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--ripple); color:#fff; }
.btn-primary:hover{ background:#ff5473; }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--border); }
.btn-ghost:hover{ border-color:var(--text-dim); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Header / nav (renamed to fsr-header to avoid clashing
   with the theme's own ".site-header" class) ---------- */
.fsr-header{
  position:sticky; top:0; z-index:50;
  background:rgba(15,15,22,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; }
.logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:19px; }
.logo-mark{ width:30px; height:30px; flex:none; }
.logo-mark .dot{ fill:var(--ripple); }
.logo-mark .ring{ fill:none; stroke:var(--ripple); stroke-width:2; opacity:.55; }
.logo strong{ color:var(--ripple); }

.nav-links{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.nav-links a{ font-size:14.5px; color:var(--text-dim); font-weight:500; }
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-cta .btn{ padding:10px 20px; font-size:14px; }
.nav-toggle{ display:none; }

@media (max-width:860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; background:none; border:1px solid var(--border); color:var(--text); border-radius:8px; padding:8px 10px; }
}

/* ---------- Hero ---------- */
.hero{
  padding:88px 0 60px;
  background:
    radial-gradient(560px 320px at 82% 8%, rgba(255,59,92,.14), transparent 60%),
    radial-gradient(420px 260px at 8% 90%, rgba(255,207,63,.08), transparent 60%);
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }

.hero h1{ font-size:clamp(34px,5vw,54px); }
.hero h1 .accent{ color:var(--ripple); }
.hero-sub{ font-size:17.5px; max-width:520px; margin-bottom:28px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:22px; }
.hero-meta{ display:flex; gap:18px; flex-wrap:wrap; font-family:var(--font-mono); font-size:12.5px; color:var(--text-faint); }
.hero-meta span{ display:flex; align-items:center; gap:6px; }
.hero-meta .ok{ color:var(--ok); }

/* recording-window mockup */
.chrome{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:0 30px 70px -30px rgba(0,0,0,.7);
}
.chrome-bar{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); background:var(--surface-2); }
.chrome-dot{ width:10px; height:10px; border-radius:50%; background:#3a3a4a; }
.chrome-rec{ margin-left:auto; display:flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:11.5px; color:var(--ripple); }
.chrome-rec::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--ripple); animation:pulse 1.6s infinite; }
.chrome-canvas{ position:relative; aspect-ratio:16/10; background:
    linear-gradient(180deg,#14141d,#0f0f16);
  overflow:hidden;
}
.cursor-ripple{ position:absolute; top:46%; left:38%; }
.cursor-ripple .ring{ position:absolute; border:2px solid var(--ripple); border-radius:50%; opacity:0; animation:ripple 2.4s ease-out infinite; }
.cursor-ripple .ring:nth-child(2){ animation-delay:.8s; }
.cursor-ripple .ring:nth-child(3){ animation-delay:1.6s; }
@keyframes ripple{
  0%{ width:8px; height:8px; margin:-4px 0 0 -4px; opacity:.9; }
  100%{ width:70px; height:70px; margin:-35px 0 0 -35px; opacity:0; }
}
.cursor-dot{ position:absolute; top:46%; left:38%; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:var(--ripple); }
.shape-rect{ position:absolute; top:20%; left:56%; width:150px; height:70px; border:2px dashed var(--shape); border-radius:6px; opacity:.85; }
.shape-circle{ position:absolute; bottom:14%; left:14%; width:90px; height:90px; border:2px dashed var(--shape); border-radius:50%; opacity:.7; }
.chrome-label{ position:absolute; bottom:14px; right:16px; font-family:var(--font-mono); font-size:11px; color:var(--text-faint); background:rgba(0,0,0,.35); padding:4px 8px; border-radius:6px; }

/* ---------- Sections ---------- */
.section{ padding:88px 0; }
.section-alt{ background:var(--surface); }
.section-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.section-head h2{ font-size:clamp(26px,3.4vw,36px); }
.section-head p{ font-size:16.5px; }
.section-head.left{ text-align:left; margin:0 0 44px; }

/* feature / value grid using the ripple bullet motif */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:820px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:28px 26px;
}
.section-alt .card{ background:var(--bg); }
.card .ripple-icon{ width:38px; height:38px; margin-bottom:16px; }
.card h3{ font-size:18.5px; margin-bottom:8px; }
.card p{ font-size:14.75px; margin:0; }

.ripple-icon{ position:relative; }
.ripple-icon .r1,.ripple-icon .r2{ position:absolute; inset:0; border:2px solid var(--ripple); border-radius:50%; }
.ripple-icon .r2{ transform:scale(.55); opacity:.55; }
.ripple-icon .r1{ opacity:.3; }
.ripple-icon .dot{ position:absolute; inset:0; margin:auto; width:9px; height:9px; border-radius:50%; background:var(--ripple); }

/* ripple-bulleted list, used instead of generic bullets */
.ripple-list{ list-style:none; margin:0 0 1.2em; padding:0; display:grid; gap:12px; }
.ripple-list li{ display:flex; gap:12px; align-items:flex-start; color:var(--text-dim); font-size:15px; }
.ripple-list li::before{
  content:""; flex:none; width:9px; height:9px; margin-top:6px; border-radius:50%;
  background:var(--ripple); box-shadow:0 0 0 3px var(--ripple-dim);
}

/* steps (real sequence -> numbering justified) */
.steps{ counter-reset:step; display:grid; gap:0; }
.step{ display:grid; grid-template-columns:64px 1fr; gap:20px; padding:26px 0; border-top:1px solid var(--border); }
.step:first-child{ border-top:none; }
.step-num{ font-family:var(--font-mono); font-size:13px; color:var(--ripple); padding-top:3px; }
.step h3{ font-size:18px; margin-bottom:6px; }
.step p{ margin:0; font-size:14.75px; }

/* CTA band */
.cta-band{
  border-radius:var(--radius-lg); padding:56px 44px; text-align:center;
  background:linear-gradient(135deg, rgba(255,59,92,.12), rgba(255,207,63,.06));
  border:1px solid var(--border);
}
.cta-band h2{ font-size:clamp(24px,3.2vw,32px); margin-bottom:10px; }
.cta-band p{ max-width:480px; margin:0 auto 26px; }
.cta-band .hero-ctas{ justify-content:center; }

/* pricing / free badge strip */
.strip{ display:flex; flex-wrap:wrap; gap:14px 30px; justify-content:center; font-family:var(--font-mono); font-size:12.5px; color:var(--text-faint); padding:22px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.strip span{ display:flex; align-items:center; gap:7px; }
.strip .ok{ color:var(--ok); }

/* ---------- Page header (for interior pages) ---------- */
.page-head{ padding:64px 0 40px; border-bottom:1px solid var(--border); }
.page-head .eyebrow{ margin-bottom:10px; }
.page-head h1{ font-size:clamp(30px,4.4vw,42px); }
.page-head p{ font-size:16.5px; max-width:640px; }

/* ---------- Prose (about/privacy/terms/blog body) ---------- */
.prose{ max-width:760px; margin:0 auto; padding:56px 0; }
.prose h2{ font-size:24px; margin-top:1.6em; }
.prose h3{ font-size:19px; margin-top:1.3em; }
.prose p{ font-size:16px; }
.prose ul, .prose ol{ color:var(--text-dim); padding-left:1.3em; margin:0 0 1.2em; }
.prose li{ margin-bottom:.4em; }
.prose a{ color:var(--shape); text-decoration:underline; text-underline-offset:3px; }
.prose blockquote{ border-left:3px solid var(--ripple); margin:1.6em 0; padding:.4em 0 .4em 1.2em; color:var(--text-dim); font-style:italic; }
.prose code{ background:var(--surface-2); padding:2px 6px; border-radius:5px; font-family:var(--font-mono); font-size:.9em; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:20px; }
@media (max-width:700px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:26px; }
.contact-card .k{ font-family:var(--font-mono); font-size:11.5px; color:var(--ripple); text-transform:uppercase; letter-spacing:.08em; display:block; margin-bottom:8px; }
.contact-card a{ color:var(--shape); }

/* ---------- Blog listing ---------- */
.post-grid{ display:grid; gap:20px; }
.post-card{ display:grid; grid-template-columns:130px 1fr; gap:20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px; align-items:center; }
@media (max-width:640px){ .post-card{ grid-template-columns:1fr; } }
.post-date{ font-family:var(--font-mono); font-size:12px; color:var(--text-faint); }
.post-card h3{ font-size:18.5px; margin:6px 0 8px; }
.post-card p{ font-size:14.5px; margin:0; }
.post-tag{ display:inline-block; font-family:var(--font-mono); font-size:11px; color:var(--ripple); border:1px solid var(--ripple-dim); padding:3px 9px; border-radius:999px; margin-bottom:10px; }

/* blog post header meta */
.post-meta{ display:flex; gap:16px; flex-wrap:wrap; font-family:var(--font-mono); font-size:12px; color:var(--text-faint); margin-bottom:18px; }

/* ---------- 404 ---------- */
.error-page{ padding:120px 0; text-align:center; }
.error-code{ font-family:var(--font-mono); font-size:clamp(64px,12vw,120px); color:var(--ripple); line-height:1; margin-bottom:8px; opacity:.85; }

/* ---------- Footer (renamed to fsr-footer to avoid clashing with the
   theme's own ".site-footer" class) ---------- */
.fsr-footer{ background:var(--surface); border-top:1px solid var(--border); padding:60px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; margin-bottom:44px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand p{ font-size:14px; max-width:280px; }
.footer-col h4{ font-family:var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); margin-bottom:16px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer-col a{ font-size:14.5px; color:var(--text-dim); }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding-top:24px; border-top:1px solid var(--border); font-size:13px; color:var(--text-faint); }
