/*
Theme Name: FineShot
Description: FineShot.AI landing page with the blog below it.
Version: 1.1.0
Requires PHP: 8.0
Text Domain: fineshot
*/

:root {
  --bg: #07080b;
  --text: #f3f4f7;
  --muted: #9196a6;
  --red: #ff242c;
  --red-soft: rgba(255,36,44,0.35);
  --card: rgba(255,255,255,0.035);
  --line: rgba(255,255,255,0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- animated background (fixed behind everything) ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.grid-tex {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, black 10%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 42%, black 10%, transparent 72%);
}
.blob { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.blob-a { background: radial-gradient(circle, var(--red) 0%, transparent 70%); top: -10%; left: -8%; animation: drift-a 22s ease-in-out infinite; }
.blob-b { background: radial-gradient(circle, #ff8a3d 0%, transparent 70%); bottom: -14%; right: -6%; opacity: 0.32; animation: drift-b 26s ease-in-out infinite; }
.blob-c { background: radial-gradient(circle, #7a1114 0%, transparent 72%); top: 30%; right: 18%; width: 34vw; height: 34vw; opacity: 0.4; animation: drift-c 19s ease-in-out infinite; }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,8vh) scale(1.12); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,-6vh) scale(1.08); } }
@keyframes drift-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,7vh) scale(0.92); } }
.spotlight { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(255,36,44,0.14), transparent 60%); }
.vignette { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 35%, var(--bg) 92%); }
canvas#sparks { position: absolute; inset: 0; opacity: 0.55; }

.site { position: relative; z-index: 2; }

/* ---------- hero (the original landing page) ---------- */
.stage {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  position: relative;
}
.logo-wrap { width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; animation: float 5s ease-in-out infinite; }
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 24px var(--red-soft)) drop-shadow(0 0 60px rgba(255,36,44,0.18)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.wordmark { font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 6vw, 52px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.1; }
.wordmark .shot { color: var(--red); }
.tagline { font-size: 16px; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 44px; }
.tagline .dot { color: var(--red); margin: 0 8px; }
.socials { display: flex; gap: 18px; justify-content: center; }
.social-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px); color: var(--text); text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { transform: translateY(-5px); border-color: var(--red); background: rgba(255,36,44,0.1); box-shadow: 0 10px 28px rgba(255,36,44,0.28); }
.handle { margin-top: 40px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #565a68; }
.handle span { color: var(--muted); }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue svg { width: 18px; height: 18px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- top bar (inner pages and paged lists) ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 22px 24px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.topbar .brand img { width: 34px; height: 34px; }
.topbar .brand .shot { color: var(--red); }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 20px; }
.topbar nav a:hover { color: var(--text); }

/* ---------- blog list ---------- */
.blog { max-width: 1100px; margin: 0 auto; padding: 72px 24px 96px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.section-head h2 .shot { color: var(--red); }
.section-head p { color: var(--muted); font-size: 15px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 12px 32px rgba(255,36,44,0.2); }
.card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(255,36,44,0.25), rgba(122,17,20,0.25)); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta .dot { color: var(--red); margin: 0 6px; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.card .excerpt { color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; color: var(--red); font-size: 14px; font-weight: 500; }
.empty { text-align: center; color: var(--muted); padding: 48px 24px; border: 1px dashed var(--line); border-radius: 16px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 21px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--red); color: var(--text); background: rgba(255,36,44,0.1); }

/* ---------- single post / page ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.article header { margin-bottom: 32px; }
.article h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 0; }
.article .hero-img { margin: 0 0 32px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.article .hero-img img { display: block; width: 100%; }
.entry { font-size: 17px; color: #d6d8df; }
.entry > * + * { margin-top: 1.2em; }
.entry h2, .entry h3, .entry h4 { font-family: 'Space Grotesk', sans-serif; color: var(--text); line-height: 1.25; margin-top: 1.8em; }
.entry h2 { font-size: 28px; } .entry h3 { font-size: 22px; }
.entry a { color: var(--red); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry blockquote { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; }
.entry pre, .entry code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: rgba(255,255,255,0.06); border-radius: 6px; }
.entry code { padding: 2px 6px; }
.entry pre { padding: 16px; overflow-x: auto; border: 1px solid var(--line); }
.entry pre code { padding: 0; background: none; }
.entry img, .entry figure { border-radius: 12px; }
.entry figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.post-nav a { color: var(--muted); text-decoration: none; }
.post-nav a:hover { color: var(--red); }

.site-footer { text-align: center; padding: 32px 24px 48px; color: #565a68; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer a { color: var(--muted); text-decoration: none; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 480px) {
  .socials { gap: 14px; }
  .social-btn { width: 50px; height: 50px; }
  .posts { grid-template-columns: 1fr; }
  .topbar nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .logo-wrap, .scroll-cue svg { animation: none; }
}
.entry .wp-block-table { overflow-x: auto; }

/* footer links + post notice */
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.notice { margin-top: 48px; padding: 18px 20px; border: 1px solid var(--red-soft); border-left: 3px solid var(--red); border-radius: 12px; background: rgba(255,36,44,0.06); font-size: 15px; color: #d6d8df; }
.notice a { color: var(--red); }
.all-posts { text-align: center; margin-top: 36px; } .all-posts a { color: var(--red); text-decoration: none; font-weight: 500; } .all-posts a:hover { text-decoration: underline; }
