/*
 * Fan Reviews in the Saturday Clay look.
 * Loads after the plugin's frontend.css. Uses the same tokens as
 * /mesostyles.css: cream cards, 3px navy outline, offset shadow,
 * Fredoka labels and buttons, marigold primary buttons.
 *
 * Form builder settings this file expects (Fan Reviews → Review Forms):
 *   Accent color  #2E3AC4   (stars, score plates, accent text)
 *   Color scheme  Light, with the visitor light/dark toggle off
 *   Stripe        None
 */

/* ---- Tokens -------------------------------------------------------------- */

.fanrev {
	--fanrev-ink: #1A1F4A;
	--fanrev-muted: #464C7E;
	--fanrev-paper: #F6F7FF;
	--fanrev-wash: #ECEEFF;
	--fanrev-line: rgba(10, 13, 51, .2);
	--fanrev-radius: 20px;
	--fanrev-shadow: transparent;
	--fanrev-btn-text: #1A1F4A;
	--mmf-outline: #0A0D33;
	--mmf-marigold: #FFC93C;
	--mmf-aqua: #6ADCE4;
	--mmf-display: "Fredoka", "Trebuchet MS", sans-serif;
	max-width: 960px;
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16.5px;
}

/* The site's global link color is white (for the blue page background).
   Inside Fan Reviews, links sit on cream, so give them the card link blue.
   Same specificity as the site rule, loaded later, so it wins; the plugin's
   own button/link rules are more specific and still win over this. */
.fanrev a:where(:link, :visited) {
	color: #2E3AC4;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(46, 58, 196, .35);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.fanrev a:where(:hover) {
	color: #1A1F4A;
	text-decoration-color: currentColor;
}

/* ---- Panels: clay cards -------------------------------------------------- */

.fanrev-panel {
	border: 3px solid var(--mmf-outline);
	box-shadow: 6px 6px 0 var(--mmf-outline);
}

.fanrev-actionbar {
	border-bottom: 3px solid var(--mmf-outline);
}

/* ---- Type ---------------------------------------------------------------- */

.fanrev h1,
.fanrev h2,
.fanrev h3,
.fanrev h4,
.fanrev-heading,
.fanrev-card__title,
.fanrev-single__title,
.fanrev-summary__title,
.fanrev-success__title {
	font-family: var(--mmf-display);
	font-weight: 600;
	letter-spacing: 0;
}

.fanrev-heading {
	font-size: 1.5em;
}

/* ---- Buttons: squishy marigold pills ------------------------------------- */

.fanrev-button {
	background: var(--mmf-marigold);
	border: 3px solid var(--mmf-outline);
	box-shadow: 4px 4px 0 var(--mmf-outline);
	font-family: var(--mmf-display);
	font-weight: 600;
	transition: transform .12s ease, box-shadow .12s ease;
}

.fanrev-button:hover {
	filter: none;
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--mmf-outline);
}

.fanrev-button:active {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 var(--mmf-outline);
}

.fanrev-button--ghost,
a.fanrev-button--ghost:link,
a.fanrev-button--ghost:visited,
a.fanrev-button--ghost:hover,
a.fanrev-button--ghost:focus,
a.fanrev-button--ghost:active {
	background: #FFFFFF;
	color: var(--fanrev-ink) !important;
	box-shadow: 4px 4px 0 var(--mmf-outline);
}

/* ---- Form fields --------------------------------------------------------- */

.fanrev-form input[type="text"],
.fanrev-form input[type="email"],
.fanrev-form input[type="url"],
.fanrev-form input[type="number"],
.fanrev-form select,
.fanrev-form textarea {
	border: 2px solid var(--mmf-outline);
	border-radius: 12px;
	background: #FFFFFF;
}

.fanrev-group {
	border: 2px dotted rgba(10, 13, 51, .25);
	border-radius: 16px;
}

/* ---- Review cards: full outline instead of the left accent bar ----------- */

.fanrev-card {
	border: 3px solid var(--mmf-outline);
	border-radius: 16px;
	box-shadow: 4px 4px 0 var(--mmf-outline);
}

.fanrev-card--flat .fanrev-card__scoreplate {
	border-right: 3px solid var(--mmf-outline);
	font-family: var(--mmf-display);
}

/* Featured / contributor / platform badges read as clay chips */
.fanrev-badge {
	border: 2px solid var(--mmf-outline);
	border-radius: 999px;
	font-family: var(--mmf-display);
	font-weight: 600;
}

/* ---- Phones -------------------------------------------------------------- */

@media (max-width: 600px) {
	.fanrev {
		font-size: 16px;
	}

	.fanrev-panel {
		box-shadow: 4px 4px 0 var(--mmf-outline);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fanrev-button,
	.fanrev-button:hover,
	.fanrev-button:active {
		transition: none;
		transform: none;
	}
}

/* ---- Sidebar widgets on the site's PHP pages ----------------------------- */
/* includes/reviews-sidebar.php wraps the "MesozoicMind.com sidebar" widget
   area in .side-reviews, below "From the mailbag". */

.side-reviews {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.side-reviews .fanrev {
	max-width: none;
	margin: 0;
	background: var(--fanrev-paper);
	border: 3px solid var(--mmf-outline);
	border-radius: 20px;
	box-shadow: 6px 6px 0 var(--mmf-outline);
	overflow: hidden;
}

.mm-reviews-widget__title {
	margin: 0 0 10px;
	color: #FFFFFF;
	font-family: "Fredoka", "Trebuchet MS", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 3px 3px 0 #0A0D33;
}

/* On the homepage the widgets sit under the mailbag letter */
.home-fanmail .side-reviews {
	margin-top: 32px;
}
