/*
Theme Name: CRR Chess
Theme URI: https://chessratingrise.com/
Author: Chess Rating Rise (CRR)
Author URI: https://chessratingrise.com/
Description: Chess Rating Rise (CRR) child theme for Twenty Twenty-Five. Gold on green CRR branding, chess-board styling, and ready-made CRR sections (hero, books, Accelerator course, YouTube) for the block editor.
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crr-chess
*/

/* ---------- Chess-board decoration ---------- */

/* A faint chequered board behind any block given the class "crr-board-bg" */
.crr-board-bg {
	background-color: var(--wp--preset--color--crr-green);
	background-image:
		linear-gradient(45deg, rgba(212, 175, 55, 0.07) 25%, transparent 25%),
		linear-gradient(-45deg, rgba(212, 175, 55, 0.07) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.07) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.07) 75%);
	background-size: 64px 64px;
	background-position: 0 0, 0 32px, 32px -32px, -32px 0;
}

/* A thin chequered strip used as a divider (class "crr-board-strip") */
.crr-board-strip {
	height: 14px;
	background-image: repeating-linear-gradient(
		90deg,
		var(--wp--preset--color--crr-gold) 0 14px,
		var(--wp--preset--color--crr-green-dark) 14px 28px
	);
	border: 0;
	margin: 0 !important;
	max-width: none !important;
}

/* Gold frame around a card or image (class "crr-gold-frame") */
.crr-gold-frame {
	border: 2px solid var(--wp--preset--color--crr-gold);
	box-shadow: 0 0 0 6px var(--wp--preset--color--crr-green-dark), 0 0 0 8px var(--wp--preset--color--crr-gold);
}

/* Book / feature cards lift slightly on hover */
.crr-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.crr-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Big chess piece glyph used as an icon */
.crr-piece {
	font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif;
	line-height: 1;
}

/* Site title in the header: gold, serif, no underline */
.wp-block-site-title a {
	text-decoration: none;
}

/* Header navigation: gold underline on hover */
.crr-header .wp-block-navigation-item__content:hover,
.crr-header .wp-block-navigation-item__content:focus {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--crr-gold);
	text-underline-offset: 0.3em;
}

/* Mobile menu overlay in CRR colours */
.crr-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--crr-green-dark) !important;
	color: var(--wp--preset--color--crr-gold-light) !important;
}

/* Header name "Chess Rating Rise (CRR)" */
.crr-site-name { margin: 0; }
.crr-site-name a { text-decoration: none; }
.crr-site-name a:hover { color: var(--wp--preset--color--crr-gold-light) !important; }

/* Social icons in the header */
.crr-header-social { margin: 0; }
.crr-header-social .wp-social-link { transition: transform 0.15s ease, background-color 0.15s ease; }
.crr-header-social .wp-social-link:hover { transform: scale(1.12); background-color: var(--wp--preset--color--crr-gold-light) !important; }
