/*
Theme Name: ValueSeekers
Theme URI: https://valueseekers.net
Author: ValueSeekers
Description: Warm, editorial block theme for valueseekers.net — affiliate-ready product cards, top picks, comparisons and guides. Every section is a block pattern, so content can be managed from the editor or programmatically (REST API / MCP).
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: valueseekers
*/

:root {
	--vs-radius: 12px;
	--vs-shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 8px 24px rgba(60, 40, 10, .07);
	--vs-shadow-hover: 0 2px 4px rgba(60, 40, 10, .06), 0 14px 34px rgba(60, 40, 10, .12);
	--vs-gold: var(--wp--preset--color--primary);
	--vs-line: var(--wp--preset--color--line);
}

body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
::selection { background: var(--wp--preset--color--primary-light); }

/* ---------- Header ---------- */
.vs-topbar { font-size: var(--wp--preset--font-size--xs); letter-spacing: .02em; }
.vs-topbar p { margin: 0; }
.vs-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--vs-line); }
.admin-bar .vs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vs-header { top: 0; } }
.vs-logo img { display: block; }
.vs-logo a { display: inline-flex; }
.vs-header .wp-block-navigation a:hover { color: var(--vs-gold); }
.vs-header .wp-block-button__link { padding: .55rem 1.1rem; }
.vs-header .wp-block-search__button { background: transparent; color: var(--wp--preset--color--contrast); }

/* ---------- Eyebrows, small text helpers ---------- */
.vs-eyebrow { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--vs-gold); margin-bottom: .25rem !important; }
.vs-section-sub { color: var(--wp--preset--color--muted); margin-top: .35rem !important; }
.vs-rule { width: 56px; height: 3px; background: var(--vs-gold); border: 0; margin: .9rem 0 0 !important; opacity: 1; }
.vs-more a, a.vs-more { font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.vs-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(ellipse 60% 70% at 78% 30%, rgba(255, 214, 140, .55), rgba(255, 214, 140, 0) 70%),
		linear-gradient(180deg, #FFF9EE 0%, #FBEFD9 55%, #F3E2C1 100%);
}
.vs-hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 38%; opacity: .7;
	background: url("assets/img/mountains.svg") bottom center / cover no-repeat;
	pointer-events: none; z-index: 0;
}
.vs-hero > * { position: relative; z-index: 1; }
.vs-hero h1 { line-height: 1.04; margin-top: .4rem; }
.vs-hero h1 mark { background: none; color: var(--vs-gold); }
.vs-hero .vs-hero-lead { font-size: var(--wp--preset--font-size--large); color: #3d2f22; max-width: 34ch; }
.vs-hero-figure { margin: 0 auto !important; max-width: 420px; }
.vs-hero-figure img { width: 100%; filter: drop-shadow(0 18px 30px rgba(90, 55, 10, .25)); }
.vs-hero-columns { align-items: center !important; }
@media (max-width: 781px) {
	.vs-hero-figure { max-width: 260px; }
	.vs-hero-columns { flex-direction: column-reverse; }
}
.vs-trust-row { gap: 1.25rem 2rem !important; }
.vs-trust-item { gap: .6rem !important; }
.vs-trust-item img { width: 34px; height: 34px; }
.vs-trust-item p { font-size: var(--wp--preset--font-size--xs); font-weight: 600; line-height: 1.3; margin: 0; }

/* ---------- Cards (shared) ---------- */
.vs-card, .vs-product-card, .vs-cat-card, .vs-post-card {
	background: var(--wp--preset--color--surface); border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius); box-shadow: var(--vs-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}
.vs-product-card:hover, .vs-cat-card:hover, .vs-post-card:hover { box-shadow: var(--vs-shadow-hover); transform: translateY(-2px); }

/* Category card */
.vs-cat-card { overflow: hidden; text-align: center; padding-bottom: 1.25rem; }
.vs-cat-card figure { margin: 0 !important; }
.vs-cat-card figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.vs-cat-card h3 { margin: 1rem 1rem .35rem !important; font-size: 1.2rem; }
.vs-cat-card p { margin: 0 1.1rem !important; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.vs-cat-card .vs-more { margin-top: .8rem !important; }

/* Product card */
.vs-product-card { position: relative; padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; height: 100%; }
.vs-product-card > * { margin-block: 0 !important; }
.vs-product-card .vs-badge { align-self: flex-start; }
.vs-badge { display: inline-block; background: var(--vs-gold); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 4px; line-height: 1.3; }
.vs-product-card figure { margin: .75rem 0 !important; }
.vs-product-card figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 8px; }
.vs-product-card h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.vs-product-card .vs-product-sub { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin-top: .25rem !important; flex-grow: 1; }
.vs-product-card .wp-block-buttons { margin-top: 1rem !important; }
.vs-product-card .wp-block-button, .vs-product-card .wp-block-button__link { width: 100%; text-align: center; }
.vs-grid-products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem !important; }
.vs-grid-products > * { margin: 0 !important; }

/* Top picks list */
.vs-top-picks { padding: .5rem 1.25rem !important; }
.vs-pick-row { padding: 1rem 0; border-bottom: 1px solid var(--vs-line); gap: 1rem !important; }
.vs-pick-row:last-child { border-bottom: 0; }
.vs-pick-row > * { margin: 0 !important; }
.vs-rank { font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--vs-gold); background: var(--wp--preset--color--soft); border-radius: 6px; width: 2.6rem; text-align: center; padding: .35rem 0; flex-shrink: 0; }
.vs-pick-row figure { width: 56px; flex-shrink: 0; }
.vs-pick-row figure img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.vs-pick-info { flex: 1 1 auto; min-width: 0; }
.vs-pick-info p { margin: 0 !important; }
.vs-pick-name { font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.vs-pick-for { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }
.vs-pick-row .wp-block-button__link { padding: .45rem .9rem; }

/* Featured guide */
.vs-feature { overflow: hidden; padding: 0 !important; }
.vs-feature .wp-block-columns { gap: 0 !important; margin: 0 !important; }
.vs-feature figure { margin: 0 !important; height: 100%; }
.vs-feature figure img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.vs-feature-body { padding: 1.5rem 1.6rem !important; }

/* Comparison table */
.vs-compare table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--vs-line); border-radius: var(--vs-radius); overflow: hidden; font-size: var(--wp--preset--font-size--small); }
.vs-compare th { background: var(--wp--preset--color--soft); font-family: var(--wp--preset--font-family--heading); text-align: left; }
.vs-compare th, .vs-compare td { padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--vs-line); }
.vs-compare tr:last-child td { border-bottom: 0; }
.vs-compare figcaption { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }
@media (max-width: 700px) { .vs-compare { overflow-x: auto; } .vs-compare table { min-width: 560px; } }

/* Why trust / features */
.vs-feature-item img { width: 40px; height: 40px; }
.vs-feature-item h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; margin: .6rem 0 .25rem !important; }
.vs-feature-item p { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin: 0 !important; }

/* Newsletter */
.vs-newsletter {
	background: linear-gradient(100deg, rgba(43, 33, 24, .96), rgba(43, 33, 24, .78)), url("assets/img/mountains.svg") bottom / cover no-repeat, #2B2118;
	color: #F6EBD6;
}
.vs-newsletter h2 { color: #fff; }
.vs-newsletter p { color: #E6D6B8; }
.vs-form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 520px; }
.vs-form input[type=email] { flex: 1 1 240px; padding: .85rem 1rem; border-radius: 6px; border: 1px solid #ccb68c; font: inherit; font-size: .95rem; background: #fff; color: #2A1E14; }
.vs-form button { background: var(--vs-gold); color: #fff; border: 0; border-radius: 6px; padding: .85rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; }
.vs-form button:hover { background: var(--wp--preset--color--primary-dark); }
.vs-form .vs-consent { flex-basis: 100%; font-size: .78rem; display: flex; gap: .5rem; align-items: flex-start; }
.vs-form .vs-consent a { color: inherit; }
.vs-form .vs-hp { position: absolute; left: -9999px; }
.vs-form-msg { font-weight: 600; }

/* Meet the seeker */
.vs-meet { background: var(--wp--preset--color--soft); border-radius: var(--vs-radius); }
.vs-meet figure img { max-width: 240px; margin: 0 auto; display: block; }

/* Post cards & archives */
.vs-post-card { overflow: hidden; height: 100%; }
.vs-post-card .wp-block-post-featured-image { margin: 0; }
.vs-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.vs-post-card .vs-post-card-body { padding: 1rem 1.2rem 1.3rem; }
.vs-post-card .wp-block-post-title { font-size: 1.2rem; margin: .4rem 0 .4rem; }
.vs-post-card .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.vs-post-card .wp-block-post-terms { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vs-post-card .wp-block-post-terms a { color: var(--vs-gold); text-decoration: none; }
.vs-empty-note { border: 1px dashed var(--wp--preset--color--primary-light); border-radius: var(--vs-radius); padding: 1.25rem; color: var(--wp--preset--color--muted); }

/* Article components */
.vs-disclosure { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); background: var(--wp--preset--color--soft); border-left: 3px solid var(--vs-gold); padding: .7rem 1rem; border-radius: 0 6px 6px 0; }
.vs-verdict { background: #fff; border: 1px solid var(--vs-line); border-top: 4px solid var(--vs-gold); border-radius: var(--vs-radius); padding: 1.4rem 1.5rem !important; box-shadow: var(--vs-shadow); }
.vs-verdict h2, .vs-verdict h3 { margin-top: 0; }
.vs-pros, .vs-cons { border-radius: var(--vs-radius); padding: 1rem 1.25rem !important; }
.vs-pros { background: #F1F4E8; }
.vs-cons { background: #F8EDE6; }
.vs-pros h3, .vs-cons h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; margin-top: 0; }
.vs-pros ul, .vs-cons ul { padding-left: 1.1rem; margin: 0; font-size: var(--wp--preset--font-size--small); }
.wp-block-details { border-bottom: 1px solid var(--vs-line); padding: .75rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.vs-author-box { background: var(--wp--preset--color--soft); border-radius: var(--vs-radius); padding: 1.25rem !important; }
.vs-author-box figure img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; }

/* Footer */
.vs-footer { color: #D9C8A8; background: var(--wp--preset--color--dark); }
.vs-footer h2, .vs-footer h3 { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: .9rem; font-weight: 700; }
.vs-footer a { color: #E9DCC1; text-decoration: none; }
.vs-footer a:hover { color: #fff; text-decoration: underline; }
.vs-footer ul { list-style: none; padding: 0; margin: 0; font-size: .85rem; line-height: 2; }
.vs-footer p { font-size: .85rem; }
.vs-footer .vs-legal-line { font-size: .75rem; color: #B9A684; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1rem; }

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--vs-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Layout helpers ---------- */
.vs-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .vs-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .vs-header-wrap { top: 0; } }
.vs-header { position: static; }
.vs-logo img { width: 42px; height: 42px; }
.vs-wordmark { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; margin: 0; line-height: 1; }
.vs-wordmark a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.vs-wordmark mark { background: none !important; color: var(--vs-gold); font-weight: 500; }
.vs-footer .vs-wordmark a { color: #fff; }
.vs-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.vs-section-tight { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.vs-bg-white { background: var(--wp--preset--color--surface); }
.vs-bg-soft { background: var(--wp--preset--color--soft); }
.vs-section-head { margin-bottom: 1.75rem !important; }
.vs-section-head h2 { margin: 0; }
.vs-hero-inner { padding-top: clamp(2rem, 5vw, 4rem) !important; padding-bottom: clamp(2.5rem, 6vw, 5rem) !important; }
.vs-page-head { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--40) !important; border-bottom: 1px solid var(--vs-line); margin-bottom: var(--wp--preset--spacing--50) !important; }
.vs-post-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); gap: .4rem 1rem !important; }
.vs-post-meta a { color: var(--vs-gold); }
.vs-content > * + * { margin-block-start: 1.2rem; }
.vs-content h2 { margin-top: 2.4rem; }

/* Dynamic product blocks (rendered by ValueSeekers Core plugin) */
.vs-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.vs-products .vs-product-card figure { margin: .75rem 0; }
.vs-products .vs-product-card h3 { margin: 0; }
.vs-products .vs-product-card a.vs-btn, .vs-pick-row a.vs-btn { display: inline-block; background: var(--vs-gold); color: #fff; text-align: center; font-weight: 600; font-size: var(--wp--preset--font-size--small); border-radius: 6px; padding: .7rem 1rem; text-decoration: none; margin-top: 1rem; }
.vs-products .vs-product-card a.vs-btn:hover, .vs-pick-row a.vs-btn:hover { background: var(--wp--preset--color--primary-dark); }
.vs-product-card.is-placeholder { border-style: dashed; box-shadow: none; }
.vs-product-card.is-placeholder .vs-btn { opacity: .55; pointer-events: none; }
.vs-picks-list { list-style: none; margin: 0; padding: 0; }
.vs-picks-list .vs-pick-row { display: flex; align-items: center; }
.vs-picks-list .vs-pick-row a.vs-btn { margin: 0; padding: .45rem .9rem; }
.vs-picks-list .vs-pick-row figure { margin: 0; }

/* Mobile header */
@media (max-width: 600px) {
	.vs-topbar { display: none; }
	.vs-header-actions .wp-block-buttons { display: none; }
	.vs-wordmark { font-size: 1.3rem; }
	.vs-logo img { width: 34px; height: 34px; }
	.vs-header-row { gap: .5rem !important; }
}

.vs-cat-card figure a, .vs-product-card figure a { display: block; }
.vs-products.alignwide, .vs-top-picks.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto; }
.vs-wp-block-column .vs-top-picks, .wp-block-column .vs-top-picks { max-width: none; }
@media (max-width: 781px) {
	.vs-hero-figure { max-width: 220px; }
	.vs-cat-card figure img { aspect-ratio: 16 / 7; }
}
.vs-products .vs-product-card { height: auto; }
.vs-products--single { grid-template-columns: minmax(200px, 260px); }
.vs-pros h3::before { content: "+ "; color: var(--wp--preset--color--olive); }
.vs-cons h3::before { content: "– "; color: #9a4a2b; }
