/* Fanverly Marketplace — public styles, light/dark switchable */

:root {
	--fvm-bg: #FFFFFF;
	--fvm-panel: #F7F8FA;
	--fvm-panel2: #EFF1F4;
	--fvm-border: #E2E4E8;
	--fvm-text: #14161A;
	--fvm-text-dim: #565B66;
	--fvm-text-faint: #8A8F99;
	--fvm-accent: #D11A2A;
	--fvm-accent-dim: #FBE2E4;
	--fvm-trust: #0E8A78;
	--fvm-trust-dim: #DCF3EE;
	--fvm-warn-bg: #FEF3C7;
	--fvm-warn-fg: #92400E;
}

[data-fvm-theme="dark"] {
	--fvm-bg: #0E0F13;
	--fvm-panel: #16181F;
	--fvm-panel2: #1B1E27;
	--fvm-border: #262A35;
	--fvm-text: #F1F2F5;
	--fvm-text-dim: #9297A6;
	--fvm-text-faint: #5A5F6E;
	--fvm-accent: #FF5A1F;
	--fvm-accent-dim: #7A3319;
	--fvm-trust: #3ED5C4;
	--fvm-trust-dim: #1D4C46;
	--fvm-warn-bg: #2e2410;
	--fvm-warn-fg: #F2B84B;
}

body { background: var(--fvm-bg) !important; color: var(--fvm-text) !important; }

.fvm-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.fvm-wrap h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2rem; margin-bottom: 12px; color: var(--fvm-text) !important; }
.fvm-wrap h2 { font-family: 'DM Sans', sans-serif; font-weight: 700; margin-top: 28px; color: var(--fvm-text) !important; }

.fvm-theme-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--fvm-border); border-radius: 20px; padding: 4px; cursor: pointer; background: var(--fvm-panel) !important; }
.fvm-theme-toggle button { border: none; background: transparent !important; padding: 5px 10px; border-radius: 16px; font-size: 0.8rem; color: var(--fvm-text-dim) !important; cursor: pointer; }
.fvm-theme-toggle button.fvm-theme-active { background: var(--fvm-accent) !important; color: #fff !important; }

.fvm-btn { display: inline-block; padding: 10px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; margin: 4px 6px 4px 0; }
.fvm-btn-primary, .fvm-btn-accent { background: var(--fvm-accent) !important; color: #fff !important; }
.fvm-btn-secondary { background: var(--fvm-panel2) !important; color: var(--fvm-text) !important; border: 1px solid var(--fvm-border); }
.fvm-btn-warn { background: transparent !important; color: var(--fvm-accent) !important; border: 1px solid var(--fvm-accent); }
.fvm-btn-small { padding: 6px 12px; font-size: 0.85rem; }

.fvm-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.fvm-tier-card { border: 1px solid var(--fvm-border); background: var(--fvm-panel) !important; border-radius: 10px; padding: 18px; color: var(--fvm-text) !important; }
.fvm-tier-open { border-top: 4px solid var(--fvm-text-faint); }
.fvm-tier-verified { border-top: 4px solid var(--fvm-trust); }
.fvm-tier-trusted { border-top: 4px solid var(--fvm-accent); }
.fvm-tier-fee { font-size: 1.4rem; font-weight: 800; }

.fvm-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; margin-left: 8px; }
.fvm-badge-pending { background: var(--fvm-warn-bg) !important; color: var(--fvm-warn-fg) !important; }

.fvm-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.fvm-table th, .fvm-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--fvm-border); color: var(--fvm-text) !important; }

.fvm-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.fvm-pill-open { background: var(--fvm-panel2) !important; color: var(--fvm-text-faint) !important; }
.fvm-pill-verified { background: var(--fvm-trust-dim) !important; color: var(--fvm-trust) !important; }
.fvm-pill-trusted { background: var(--fvm-accent-dim) !important; color: var(--fvm-accent) !important; }

.fvm-oauth-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fvm-btn-oauth { background: var(--fvm-panel2) !important; color: var(--fvm-text) !important; border: 1px solid var(--fvm-border); }

.fvm-form-card { background: var(--fvm-panel) !important; border: 1px solid var(--fvm-border); border-radius: 12px; padding: 22px; max-width: 520px; }

#fvm-manual-review-form label,
#fvm-contact-form label,
#fvm-brand-registration-form label,
#fvm-mgmt-request-form label,
.fvm-form-card label { display: block; margin: 10px 0; font-weight: 600; color: var(--fvm-text) !important; }
#fvm-manual-review-form input,
#fvm-manual-review-form textarea,
#fvm-contact-form input,
#fvm-contact-form textarea,
#fvm-brand-registration-form input,
#fvm-mgmt-request-form input,
#fvm-mgmt-request-form select,
#fvm-mgmt-request-form textarea,
.fvm-form-card input,
.fvm-form-card select,
.fvm-form-card textarea { width: 100%; padding: 8px; background: var(--fvm-bg) !important; border: 1px solid var(--fvm-border); color: var(--fvm-text) !important; border-radius: 6px; font-weight: 400; margin-top: 4px; }

.fvm-cart-total { font-size: 1.3rem; font-weight: 700; margin: 16px 0; color: var(--fvm-text) !important; }

.fvm-overlay-player { position: relative; }
.fvm-overlay-logo { position: absolute; z-index: 10; }

/* ===================================================================
   Real front-end chrome (nav/ticker/hero/cards) — served via the
   blank-canvas template so this actually renders instead of being
   overridden by the active WP theme's own header/footer/CSS.
   =================================================================== */

body.fvm-canvas { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.fvm-main { min-height: 60vh; }

.fvm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fvm-accent) !important; display: inline-block; animation: fvm-pulse 1.6s ease-in-out infinite; }
@keyframes fvm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Nav */
.fvm-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; border-bottom: 1px solid var(--fvm-border); background: var(--fvm-bg) !important; position: sticky; top: 0; z-index: 40; flex-wrap: wrap; gap: 10px; }
.fvm-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--fvm-text) !important; text-decoration: none; }
.fvm-logo-mark { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--fvm-accent), #B33F14) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff !important; }
.fvm-nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.fvm-nav-links a { color: var(--fvm-text-dim) !important; text-decoration: none; font-size: 0.85rem; }
.fvm-nav-links a:hover { color: var(--fvm-text) !important; }
.fvm-nav-right { display: flex; align-items: center; gap: 10px; }
.fvm-icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--fvm-border); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Ticker */
.fvm-ticker-wrap { border-bottom: 1px solid var(--fvm-border); background: var(--fvm-panel) !important; overflow: hidden; white-space: nowrap; }
.fvm-ticker { display: inline-flex; animation: fvm-scroll 30s linear infinite; padding: 8px 0; }
.fvm-ticker-wrap:hover .fvm-ticker { animation-play-state: paused; }
@keyframes fvm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fvm-tick { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-right: 1px solid var(--fvm-border); font-size: 0.75rem; color: var(--fvm-text-dim) !important; }

/* Hero */
.fvm-hero { padding: 48px 0; border-bottom: 1px solid var(--fvm-border); }
.fvm-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.fvm-hero h1 { font-size: 2.4rem; line-height: 1.08; margin: 12px 0 14px; color: var(--fvm-text) !important; }
.fvm-accent-text { color: var(--fvm-accent) !important; }
.fvm-hero p { color: var(--fvm-text-dim) !important; max-width: 440px; margin-bottom: 20px; }
.fvm-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fvm-hero-panel { background: var(--fvm-panel) !important; border: 1px solid var(--fvm-border); border-radius: 14px; padding: 18px; }
.fvm-hero-panel-label { font-size: 0.7rem; color: var(--fvm-text-faint) !important; text-transform: uppercase; margin-bottom: 10px; }
.fvm-hero-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--fvm-border); color: var(--fvm-text) !important; text-decoration: none; font-size: 0.85rem; }
.fvm-hero-row:last-child { border-bottom: none; }
.fvm-empty-note { color: var(--fvm-text-faint) !important; font-size: 0.85rem; }

/* Category tiles */
.fvm-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 18px 0 36px; }
.fvm-cat-tile { background: var(--fvm-panel) !important; border: 1px solid var(--fvm-border); border-radius: 12px; padding: 18px 14px; text-decoration: none; display: block; }
.fvm-cat-tile:hover { border-color: var(--fvm-accent) !important; }
.fvm-cat-tile h4 { margin: 0 0 4px; font-size: 0.85rem; color: var(--fvm-text) !important; }
.fvm-cat-tile span { font-size: 0.75rem; color: var(--fvm-text-faint) !important; }

/* Listing grid + cards */
.fvm-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 40px; }
.fvm-card { background: var(--fvm-panel) !important; border: 1px solid var(--fvm-border); border-radius: 12px; overflow: hidden; text-decoration: none; display: block; transition: transform .15s; }
.fvm-card:hover { transform: translateY(-2px); }
.fvm-card-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--fvm-panel2), var(--fvm-bg)) !important; position: relative; }
.fvm-card-tier { position: absolute; top: 8px; left: 8px; }
.fvm-card-mode { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6) !important; color: #fff !important; font-size: 0.65rem; padding: 3px 8px; border-radius: 20px; }
.fvm-card-body { padding: 13px; }
.fvm-card-plat { font-size: 0.65rem; color: var(--fvm-text-faint) !important; text-transform: uppercase; margin-bottom: 5px; }
.fvm-card-title { font-size: 0.9rem; font-weight: 600; color: var(--fvm-text) !important; margin-bottom: 8px; }
.fvm-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--fvm-border); }
.fvm-price { font-size: 0.95rem; font-weight: 700; color: var(--fvm-text) !important; }
.fvm-eyebrow { font-size: 0.72rem; color: var(--fvm-accent) !important; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* Listing detail */
.fvm-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-top: 20px; }
.fvm-detail-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--fvm-panel2), var(--fvm-bg)) !important; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--fvm-border); }
.fvm-detail-vendor { color: var(--fvm-text-dim) !important; font-size: 0.85rem; }
.fvm-buy-panel { background: var(--fvm-panel) !important; border: 1px solid var(--fvm-border); border-radius: 14px; padding: 20px; height: fit-content; }
.fvm-buy-panel h3 { margin: 0; font-size: 1.4rem; color: var(--fvm-text) !important; }
.fvm-buy-sub { font-size: 0.75rem; color: var(--fvm-text-faint) !important; margin: 4px 0 14px; }
.fvm-buy-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--fvm-text-dim) !important; padding: 6px 0; border-top: 1px solid var(--fvm-border); }
.fvm-field { width: 100%; padding: 10px; background: var(--fvm-bg) !important; border: 1px solid var(--fvm-border); border-radius: 8px; color: var(--fvm-text) !important; margin: 10px 0; }
.fvm-btn-full { width: 100%; text-align: center; }
.fvm-buy-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fvm-border); font-size: 0.72rem; color: var(--fvm-text-faint) !important; }

/* Footer */
.fvm-footer { border-top: 1px solid var(--fvm-border); padding: 36px 28px 20px; margin-top: 30px; }
.fvm-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto 24px; }
.fvm-footer-grid h5 { font-size: 0.7rem; color: var(--fvm-text-faint) !important; text-transform: uppercase; margin-bottom: 10px; }
.fvm-footer-grid a { display: block; font-size: 0.8rem; color: var(--fvm-text-dim) !important; margin-bottom: 7px; text-decoration: none; }
.fvm-footer-grid p { font-size: 0.75rem; color: var(--fvm-text-faint) !important; max-width: 220px; }
.fvm-footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 16px; border-top: 1px solid var(--fvm-border); font-size: 0.72rem; color: var(--fvm-text-faint) !important; }

@media (max-width: 860px) {
	.fvm-hero-grid, .fvm-detail-grid, .fvm-footer-grid { grid-template-columns: 1fr !important; }
}
