/*
Theme Name: GameCon
Theme URI: https://gamecon.us
Author: GameCon
Description: Bold, playful block theme for GameCon, the world's greatest gaming convention for teens. Art by Ben Worrell of Sheath Comics.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamecon
*/

/* ---------- Block styles (registered in functions.php) ---------- */

/* Card: white panel with a chunky, playful offset shadow. */
.is-style-card {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 20px;
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
	padding: clamp(1.25rem, 3vw, 2rem);
	transition: transform .15s ease, box-shadow .15s ease;
}
.is-style-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--wp--preset--color--ink); }

/* Starry: twinkly dots over whatever background/gradient the group has. */
.is-style-starry { position: relative; isolation: isolate; }
.is-style-starry::before {
	content: "";
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 40% 80%, #ffe9a8 50%, transparent 51%),
		radial-gradient(1px 1px at 85% 65%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 10% 85%, #cfe9ff 50%, transparent 51%),
		radial-gradient(1px 1px at 55% 45%, #fff 50%, transparent 51%);
	background-size: 260px 260px;
	opacity: .55;
}

/* Tilted: a framed image set at a slight angle, like a poster on a wall. */
.wp-block-image.is-style-tilted img {
	border: 6px solid var(--wp--preset--color--white);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(23, 19, 59, .28);
	transform: rotate(-2deg);
}
.wp-block-image.is-style-tilted:nth-child(even) img { transform: rotate(2deg); }

/* Rounded photo galleries. */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 14px; }

/* Buttons: lift on hover. */
.wp-element-button, .wp-block-button__link { transition: transform .12s ease, background-color .12s ease; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 3px solid currentColor;
	background: transparent;
	color: inherit;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--white);
}

/* Eyebrow label above headings. */
.is-style-eyebrow {
	display: block;
	width: fit-content;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .85rem;
	padding: .25em .9em;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

.is-style-eyebrow.has-text-align-center { margin-left: auto !important; margin-right: auto !important; }

/* FAQ accordions. */
.wp-block-details { border: 3px solid var(--wp--preset--color--ink); box-shadow: 4px 4px 0 var(--wp--preset--color--ink); }
.wp-block-details summary { font-weight: 900; font-size: 1.15rem; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* Header. */
.gc-header { border-bottom: 4px solid var(--wp--preset--color--gold); }
.gc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--blue); }
.gc-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--wp--preset--color--gold); }

/* Footer links stay readable on dark backgrounds. */
.gc-footer a { color: var(--wp--preset--color--sky); }
.gc-footer a:hover { color: var(--wp--preset--color--gold); }

/* Big date badge in the hero. */
.gc-date-badge {
	display: inline-block;
	transform: rotate(-2deg);
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	border: 3px solid var(--wp--preset--color--ink);
	box-shadow: 5px 5px 0 var(--wp--preset--color--ink);
	border-radius: 14px;
	padding: .4em 1em;
}

/* Logos row: keep partner logos tidy. */
.gc-logos .wp-block-image img { max-height: 110px; width: auto; object-fit: contain; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
	.is-style-card, .wp-element-button, .wp-block-button__link { transition: none; }
	.is-style-card:hover, .wp-element-button:hover, .wp-block-button__link:hover { transform: none; }
}

/* ---------- Contact form (Contact Form 7) ---------- */
.wpcf7 form > p { margin-block: 0 1.1rem; }
.wpcf7 label { display: block; font-weight: 800; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	padding: .7em .9em;
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 12px;
}
.wpcf7 textarea { min-height: 9rem; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--blue);
}
.wpcf7 .wpcf7-quiz-label { display: block; font-weight: 400; margin-top: .2rem; }
.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 900;
	font-size: 1.05rem;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--red);
	border: 0;
	border-radius: 999px;
	padding: .8em 1.8em;
	cursor: pointer;
	transition: transform .12s ease;
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-2px); background: var(--wp--preset--color--ink); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--wp--preset--color--red); font-weight: 800; font-size: .95rem; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 1rem 0 0; padding: .8em 1em; }

/* ---------- News (posts) ---------- */
.gc-post-card { padding: 0 !important; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.gc-post-card .wp-block-post-featured-image { margin: 0; border-bottom: 3px solid var(--wp--preset--color--ink); }
.gc-post-card__body { padding: 1.1rem 1.4rem 1.4rem; flex: 1; }
.gc-post-card__body > * { margin-block: 0 .5rem; }
.gc-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.gc-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--blue); }
.gc-post-card .wp-block-post-excerpt__more-link { font-weight: 800; }
.gc-post-date { font-weight: 800; color: var(--wp--preset--color--blue); }
.gc-single-head .gc-post-date { color: var(--wp--preset--color--sky); }
/* Category label as a little pill. */
.gc-post-cat a {
	display: inline-block;
	font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
	text-decoration: none;
	padding: .15em .8em; border-radius: 999px;
	background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink);
}
.gc-post-cat .wp-block-post-terms__separator { display: none; }
.gc-post-cat a + a, .gc-post-cat span + a { margin-left: .35em; }
/* Single post: framed featured image at content width. */
.gc-single .gc-single-image { max-width: var(--wp--style--global--content-size); margin-inline: auto !important; }
.gc-single .gc-single-image img { border: 3px solid var(--wp--preset--color--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--wp--preset--color--ink); }
.gc-post-nav { max-width: var(--wp--style--global--content-size); margin-inline: auto !important; font-weight: 800; }
.gc-post-nav .post-navigation-link__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--blue); }
.wp-block-query-pagination { font-weight: 800; margin-top: var(--wp--preset--spacing--50); }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--gold); border-radius: 999px; padding: .1em .6em; }
