/*
Theme Name: Footage Fetish
Theme URI: https://www.footagefetish.com
Author: Footage Fetish
Description: Black and orange film review theme for Footage Fetish. Works with the Footage Fetish Reviews add-on.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: footage-fetish
*/

/* ---------- Fonts (stored on your site, nothing loaded from Google) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Colours and basics ---------- */
:root {
	--bg: #0B0B0C;
	--surface: #121214;
	--raised: #18181B;
	--line: #2A2A2E;
	--line-strong: #3F3F46;
	--text: #F2F2F2;
	--soft: #D4D4D8;
	--muted: #A1A1AA;
	--orange: #FF7A1A;
	--orange-hover: #FF9A4D;
	--display: "Poppins", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:hover { color: var(--orange-hover); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; padding: 12px 18px; background: var(--orange); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: 8px; }

.fft-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.fft-accent { color: var(--orange); }
.fft-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.fft-h1 { font-weight: 800; font-size: clamp(34px, 5vw, 52px); }
.fft-h2 { font-weight: 700; font-size: clamp(24px, 3vw, 28px); margin-bottom: 20px; }
.fft-center { text-align: center; }

.fft-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 26px; background: var(--orange); color: var(--bg); font-weight: 600; font-size: 17px; text-decoration: none; border: 2px solid var(--orange); }
.fft-button:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--bg); }
.fft-button-outline { background: transparent; color: var(--orange); }
.fft-button-outline:hover { background: var(--orange); color: var(--bg); }

.fft-placeholder { display: block; background: var(--raised); }

/* ---------- Logo ---------- */
.fft-logo { display: inline-flex; flex-direction: column; font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: 0.03em; color: var(--text); font-size: 31px; }
.fft-logo-top { white-space: nowrap; }
.fft-logo-bottom { display: inline-flex; align-items: flex-end; gap: 0.14em; }
.fft-reel { width: 0.72em; height: 0.72em; color: var(--orange); vertical-align: baseline; margin: 0 0.04em 0 0.02em; }
.fft-reel + .fft-reel { margin-left: 0; }
.fft-reel .fft-hole { fill: var(--bg); }
.fft-wink { width: 1.07em; height: 0.82em; color: var(--orange); margin-bottom: 0.1em; flex: none; }

/* ---------- Header ---------- */
.fft-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.fft-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.fft-logo-link { text-decoration: none; display: inline-flex; padding: 4px 0; }
.fft-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fft-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fft-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 22px; }
.fft-menu a:hover, .fft-menu .current-menu-item > a { color: var(--orange); }

.fft-search { position: relative; }
.fft-search summary { list-style: none; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.fft-search summary::-webkit-details-marker { display: none; }
.fft-search summary svg { width: 20px; height: 20px; }
.fft-search[open] summary { border-color: var(--orange); color: var(--orange); }
.fft-search-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(360px, calc(100vw - 32px)); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.search-form .search-submit { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--orange); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Review cards (the homepage timeline) ---------- */
.fft-main { display: block; }
.fft-timeline { padding-top: 40px; padding-bottom: 72px; }
.fft-stack { display: flex; flex-direction: column; gap: 32px; }
.fft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }

.fft-card { position: relative; aspect-ratio: 21 / 9; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.fft-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.fft-card:hover .fft-card-img { transform: scale(1.02); }
.fft-badge { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; align-items: baseline; gap: 2px; padding: 8px 14px; border-radius: 12px; background: var(--bg); font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--orange); }
.fft-badge small { font-size: 14px; color: var(--muted); font-weight: 700; }
.fft-card-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 26px 32px; background: rgba(11, 11, 12, 0.86); }
.fft-card-title { font-weight: 800; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; }
.fft-card-title a { color: var(--text); text-decoration: none; }
.fft-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fft-card:hover .fft-card-title a, .fft-card-title a:focus-visible { color: var(--orange); }
.fft-card-title a:focus-visible { outline: none; }
.fft-card:has(a:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.fft-card-line { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.4; color: #E4E4E7; }

.fft-grid .fft-card { aspect-ratio: 4 / 3; min-height: 0; }
.fft-grid .fft-badge { top: 14px; right: 14px; font-size: 22px; padding: 6px 10px; }
.fft-grid .fft-badge small { font-size: 12px; }
.fft-grid .fft-card-body { padding: 16px 20px; gap: 4px; }
.fft-grid .fft-card-title { font-size: 21px; font-weight: 700; }
.fft-grid .fft-card-line { font-size: 15px; }

.fft-timeline .fft-center { margin-top: 40px; }
.fft-empty { padding: 72px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--soft); font-size: 18px; }
.fft-404 .search-form { width: min(420px, 100%); }
.fft-archive-head { margin-bottom: 32px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Homepage sections ---------- */
.fft-section { padding-bottom: 72px; }
.fft-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fft-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.fft-chips a:hover { border-color: var(--orange); color: var(--orange); }
.fft-chips-lg { gap: 12px; }
.fft-chips-lg a { min-height: 44px; padding: 0 20px; border-radius: 22px; font-size: 16px; }

.fft-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fft-band-inner { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.fft-band-inner > div { flex: 1 1 480px; }
.fft-band-inner .fft-h2 { margin-bottom: 10px; }
.fft-band-inner p { color: var(--soft); font-size: 17px; }

/* ---------- Single review ---------- */
.fft-hero { position: relative; height: clamp(220px, 32vw, 420px); background: var(--raised); border-bottom: 1px solid var(--line); overflow: hidden; }
.fft-hero-img { width: 100%; height: 100%; object-fit: cover; }
.fft-summary { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; margin-top: clamp(-160px, -12vw, -80px); position: relative; }
.fft-poster { flex: 0 0 clamp(140px, 20vw, 260px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #232327; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.fft-poster img, .fft-poster .fft-placeholder { width: 100%; height: 100%; object-fit: cover; background: #232327; }
.fft-summary-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.fft-title { font-weight: 800; font-size: clamp(36px, 5.5vw, 58px); line-height: 1.02; }
.fft-meta { font-size: 17px; color: var(--muted); }
.fft-oneliner { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2vw, 23px); line-height: 1.35; color: var(--text); }
.fft-summary-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 4px; }
.fft-total { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--orange); }
.fft-total small { font-size: 20px; color: var(--muted); }

.fft-review-body { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; padding-top: 56px; padding-bottom: 72px; }
.fft-article { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.fft-facts { flex: 1 1 280px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; position: sticky; top: 24px; }
.fft-facts h2 { font-size: 20px; margin-bottom: 18px; }
.fft-facts dl { margin: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px 16px; font-size: 15px; }
.fft-facts dt { color: var(--muted); }
.fft-facts dd { margin: 0; }

/* Review text */
.fft-content { color: var(--soft); font-size: 18px; line-height: 1.75; }
.fft-content > * + * { margin-top: 24px; }
.fft-content h2 { font-size: 28px; color: var(--text); margin-top: 48px; }
.fft-content h3 { font-size: 22px; color: var(--text); margin-top: 36px; }
.fft-content strong { color: #fff; }
.fft-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fft-content ul, .fft-content ol { padding-left: 1.3em; }
.fft-content figure { margin-left: 0; margin-right: 0; }
.fft-content img { border-radius: 12px; }
.fft-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.fft-content blockquote, .fft-content .wp-block-quote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--orange); font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.4; color: var(--text); }
.fft-content blockquote cite { display: block; margin-top: 8px; font-family: var(--body); font-size: 15px; font-style: normal; font-weight: 400; color: var(--muted); }
.fft-content .ff-spoiler { padding: 18px 20px 18px 54px; border-radius: 12px; background: #1C1408; border: 1px solid #5C3510; color: #F5D9C2; font-size: 16px; line-height: 1.6; position: relative; }
.fft-content .ff-spoiler::before { content: ""; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.fft-content .ff-spoiler p { margin: 0; }
.fft-content .wp-block-embed iframe, .fft-content iframe { max-width: 100%; }
.fft-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.fft-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }

/* Scorecard */
.fft-scorecard { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fft-scorecard > h2 { padding: 22px 28px; font-weight: 700; font-size: 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fft-score-row { display: flex; flex-direction: column; gap: 10px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.fft-score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fft-score-head h3 { font-weight: 600; font-size: 18px; }
.fft-score-num { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--orange); }
.fft-score-num small { font-size: 14px; color: var(--muted); }
.fft-bar { height: 6px; border-radius: 3px; background: #27272A; overflow: hidden; }
.fft-bar span { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.fft-reason { font-size: 16px; line-height: 1.6; color: var(--soft); }
.fft-overall { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; padding: 32px 28px; background: #160F08; }
.fft-overall-num { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 9vw, 88px); line-height: 0.9; color: var(--orange); }
.fft-overall-num small { font-size: 24px; color: var(--soft); }
.fft-overall-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fft-verdict { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.4; color: var(--text); }

.fft-more { border-top: 1px solid var(--line); padding: 56px 0 64px; }

/* Plain pages */
.fft-page { padding-top: 56px; padding-bottom: 80px; max-width: calc(800px + 2 * var(--gutter)); }
.fft-page .fft-h1 { margin-bottom: 28px; }
.fft-listing { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fft-listing .fft-card-title { font-size: 24px; margin-bottom: 6px; }
.fft-listing .fft-card-title a::after { content: none; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--bg); }

/* ---------- Footer ---------- */
.fft-footer { border-top: 1px solid var(--line); }
.fft-footer-inner { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 44px; }
.fft-footer-logo { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.03em; color: var(--text); text-decoration: none; }
.fft-menu-footer a { color: var(--muted); font-weight: 400; font-size: 15px; padding: 0 10px; }
.fft-copy { width: 100%; font-size: 14px; color: var(--muted); }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
	body { font-size: 16px; }
	.fft-logo { font-size: 24px; }
	.fft-timeline { padding-top: 24px; }
	.fft-stack { gap: 20px; }
	.fft-card { aspect-ratio: 4 / 5; min-height: 0; }
	.fft-card-body { padding: 18px 20px; }
	.fft-badge { top: 14px; right: 14px; font-size: 24px; padding: 6px 10px; }
	.fft-badge small { font-size: 12px; }
	.fft-summary { align-items: flex-start; }
	.fft-facts { position: static; }
	.fft-score-row, .fft-scorecard > h2, .fft-overall { padding-left: 20px; padding-right: 20px; }
	.fft-content { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fft-card-img { transition: none; }
}
