/*
Theme Name: Release Reward Auction
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: release-auction
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* Zero the default block gap between the template's top-level sections so
   sections butt edge-to-edge and own their vertical rhythm. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* main carries its own vertical padding for templates we don't author.
   Full-bleed templates opt out with is-flush and own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ---------------------------------------------------------------- header */
.rra-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #ffffff;
	border-bottom: 1px solid #e8eaf0;
}
.rra-header__inner {
	gap: 24px;
	align-items: center;
}
.rra-brand {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}
.rra-brand a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.rra-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
}
.rra-nav .wp-block-navigation-item a {
	font-size: 0.94rem;
	font-weight: 500;
	color: #3a3f55;
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
}

/* ---------------------------------------------------------------- hero */
.rra-hero {
	background:
		radial-gradient(circle at 12% 22%, rgba(79, 140, 255, 0.4), transparent 54%),
		radial-gradient(circle at 90% 12%, rgba(255, 111, 97, 0.34), transparent 48%),
		radial-gradient(circle at 72% 88%, rgba(139, 92, 246, 0.36), transparent 52%),
		#ffffff;
}
.rra-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 22px;
}
.rra-eyebrow {
	display: inline-block;
	margin: 0;
	padding: 6px 14px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #4f8cff;
	background: #ffffff;
	border: 1px solid #e8eaf0;
	border-radius: 999px;
}
.rra-cause .rra-eyebrow,
.rra-how .rra-eyebrow {
	margin-bottom: 20px;
}
.rra-hero__title {
	font-size: clamp(2.6rem, 6.5vw, 4.8rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 0;
	max-width: 14ch;
}
.rra-hero__sub {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.6;
	color: #454b63;
	max-width: 46ch;
}

/* ----------------------------------------------------------- countdown */
.rra-countdown {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: #ffffff;
	border: 1px solid #e8eaf0;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(79, 140, 255, 0.18);
	margin: 4px 0;
	box-sizing: border-box;
	max-width: 100%;
}
.rra-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 6px 10px;
	border-radius: 999px;
}
.rra-countdown__num {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
	color: #4f8cff;
	font-variant-numeric: tabular-nums;
}
.rra-countdown__lbl {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7080;
	margin-top: 4px;
}

/* ------------------------------------------------------------- buttons */
.rra-btn-primary .wp-block-button__link {
	box-shadow: 0 8px 24px rgba(79, 140, 255, 0.32);
}
.rra-btn-primary .wp-block-button__link:hover {
	background: #3d7bf0;
}
.rra-btn-secondary .wp-block-button__link {
	color: #0f1222;
	background: transparent;
	border: 1px solid #0f1222;
	box-shadow: none;
}
.rra-btn-secondary .wp-block-button__link:hover {
	background: #0f1222;
	color: #ffffff;
}

/* -------------------------------------------------------------- albums */
.rra-albums {
	background: #ffffff;
}
.rra-section-head {
	gap: 16px;
	align-items: baseline;
	margin-bottom: 36px;
}
.rra-section-title {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1.05;
}
.rra-section-link {
	margin: 0;
	font-weight: 600;
	color: #4f8cff;
}
.rra-section-link a {
	text-decoration: none;
}

/* Product grid rendered by woocommerce/all-products — style as Aurora cards */
.wc-block-all-products .wc-block-grid__products {
	gap: 20px;
}
.wc-block-all-products .wc-block-grid__product {
	border: 1px solid #e8eaf0;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	transition: transform 300ms ease-out, box-shadow 300ms ease-out;
	text-align: left;
}
.wc-block-all-products .wc-block-grid__product:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(15, 18, 34, 0.08);
}
.wc-block-all-products .wc-block-grid__product-image {
	margin: 0;
	background: #f7f9ff;
}
.wc-block-all-products .wc-block-grid__product-image img {
	border-radius: 0;
}
.wc-block-all-products .wc-block-grid__product-title {
	font-weight: 600;
	line-height: 1.25;
	font-size: 1.05rem;
	padding: 0 18px;
	display: block;
}
.wc-block-all-products .wc-block-grid__product-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.wc-block-all-products .wc-block-grid__product-title a:hover {
	color: #4f8cff;
}
.wc-block-all-products .wc-block-grid__product-price {
	padding: 6px 18px 0;
}
.wc-block-all-products .rra-price {
	font-weight: 700;
	color: var(--wp--preset--color--text);
	font-size: 1.05rem;
}
.wc-block-all-products .rra-price strong {
	color: #4f8cff;
}
.wc-block-all-products .wc-block-grid__product-rating {
	padding: 2px 18px;
}
.wc-block-all-products .wc-block-grid__product-add-to-cart {
	padding: 10px 18px 18px;
}
.wc-block-all-products .wc-block-grid__product-add-to-cart .wp-block-button__link {
	font-size: 0.88rem;
}

/* ---------------------------------------------------- albums grid (product collection) */
.rra-albums ul.wc-block-product-template > li {
	background: #ffffff;
	border: 1px solid #e8eaf0;
	border-radius: 14px;
	padding: 12px 12px 20px;
	box-shadow: 0 2px 10px rgba(15, 18, 34, 0.05);
	transition: transform 250ms ease, box-shadow 250ms ease;
}
.rra-albums ul.wc-block-product-template > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(15, 18, 34, 0.1);
}
.rra-albums .wc-block-product .wc-block-components-product-image {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 14px;
	background: #f7f9ff;
}
.rra-albums .wc-block-product .wc-block-components-product-title {
	font-size: 1.02rem;
	margin-bottom: 8px;
}
.rra-albums .wc-block-product .wc-block-components-product-price {
	font-weight: 700;
	color: var(--wp--preset--color--text);
}

/* -------------------------------------------------------------- cause */
.rra-cause {
	background: var(--wp--preset--color--tint-coral);
}.rra-cause__cols {
	align-items: center;
	gap: 48px;
}
.rra-cause__text {
	font-size: 1.1rem;
	line-height: 1.65;
	color: #443f52;
	max-width: 52ch;
}
.rra-cause__card {
	background: #ffffff;
	border-radius: 14px;
	padding: 34px 30px;
	box-shadow: 0 10px 30px rgba(15, 18, 34, 0.08);
}
.rra-cause__card-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ff6f61;
}
.rra-cause__card-site {
	margin: 8px 0 0;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.1;
}
.rra-cause__card-site a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.rra-cause__card-site a:hover {
	color: #ff6f61;
}
.rra-cause__card-note {
	margin: 18px 0 0;
	color: #5a5f73;
	line-height: 1.6;
}

/* ---------------------------------------------------------------- how */
.rra-how {
	background: #ffffff;
}
.rra-steps {
	gap: 28px;
}
.rra-steps .wp-block-column {
	border-radius: 14px;
	padding: 26px 24px;
	border: 1px solid #e8eaf0;
	background: #ffffff;
}
.rra-steps .wp-block-column:nth-child(1) { border-top: 4px solid #4f8cff; }
.rra-steps .wp-block-column:nth-child(2) { border-top: 4px solid #ff6f61; }
.rra-steps .wp-block-column:nth-child(3) { border-top: 4px solid #8b5cf6; }
.rra-step-num {
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
}
.rra-steps .wp-block-column:nth-child(1) .rra-step-num { color: #4f8cff; }
.rra-steps .wp-block-column:nth-child(2) .rra-step-num { color: #ff6f61; }
.rra-steps .wp-block-column:nth-child(3) .rra-step-num { color: #8b5cf6; }
.rra-step-title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	line-height: 1.2;
}
.rra-step-text {
	margin: 0;
	color: #5a5f73;
	line-height: 1.6;
}

/* ---------------------------------------------------------------- cta */
.rra-cta {
	background:
		radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.4), transparent 52%),
		radial-gradient(circle at 85% 25%, rgba(79, 140, 255, 0.4), transparent 50%),
		radial-gradient(circle at 70% 95%, rgba(255, 111, 97, 0.32), transparent 55%),
		#ffffff;
	text-align: center;
}
.rra-cta__title {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	letter-spacing: -0.03em;
	margin: 0 0 16px;
	line-height: 1;
}
.rra-cta__text {
	margin: 0 0 26px;
	font-size: 1.12rem;
	color: #454b63;
	max-width: 46ch;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------- footer */
.rra-footer {
	background: #ffffff;
	border-top: 1px solid #e8eaf0;
}
.rra-footer__top {
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}
.rra-footer__top p {
	margin: 0;
	color: #5a5f73;
	line-height: 1.6;
}
.rra-footer__top a {
	text-decoration: none;
}
.rra-footer .wp-block-separator {
	max-width: none;
	margin: 0 0 22px;
	border-color: #e8eaf0;
}
.rra-footer__bottom {
	align-items: center;
	gap: 12px;
}
.rra-footer__bottom p {
	margin: 0;
	color: #6b7080;
}
.rra-footer__bottom a {
	text-decoration: none;
}

/* ---------------------------------------------------------- bid form */
.rra-auction {
	margin-top: 22px;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e8eaf0;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(15, 18, 34, 0.06);
}
.rra-auction__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eef0f5;
	margin-bottom: 0;
}
.rra-auction__head br {
	display: none;
}
.rra-auction__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b7080;
}
.rra-auction__amount {
	display: block;
	font-size: 2.7rem;
	font-weight: 700;
	line-height: 1.05;
	color: var(--wp--preset--color--text);
	margin: 2px 0;
}
.rra-auction__amount .woocommerce-Price-amount {
	color: var(--wp--preset--color--text);
}
.rra-auction__leader {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #ff6f61;
	background: var(--wp--preset--color--tint-coral);
	border-radius: 999px;
	padding: 4px 12px;
}
.rra-auction__leader.is-empty {
	color: #6b7080;
	background: #f2f4f8;
}
.rra-auction__eta {
	text-align: center;
}
.rra-auction__closes {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1f2338;
	margin-top: 2px;
}
.rra-bid-form {
	max-width: 400px;
	margin: 20px auto 0;
}
.rra-bid-form__row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}
.rra-bid-form__field {
	flex: 1;
}
.rra-bid-form__field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #454b63;
	margin-bottom: 6px;
}
.rra-bid-form__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 1rem;
	border: 1px solid #d8dce8;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--text);
}
.rra-bid-form__field input:focus {
	outline: none;
	border-color: #4f8cff;
	box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}
.rra-bid-form__submit {
	white-space: nowrap;
	background: #4f8cff;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 14px 26px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(79, 140, 255, 0.3);
	transition: background 200ms ease-out;
	width: 100%;
}
.rra-bid-form__submit:hover {
	background: #3d7bf0;
}
.rra-bid-form__hint {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: #6b7080;
}
.rra-bid-form__login,
.rra-bid-form__closed {
	display: inline-block;
	margin: 0;
	font-weight: 600;
	color: #4f8cff;
	text-decoration: none;
}
.rra-bid-form__closed {
	color: #6b7080;
}
.rra-auction__history {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #eef0f5;
}
.rra-auction__history h4 {
	margin: 0 0 10px;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	color: #454b63;
}
.rra-auction__bids {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rra-auction__bids li {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
}
.rra-auction__bid-amount {
	font-weight: 700;
	color: var(--wp--preset--color--text);
}
.rra-auction__bid-name {
	color: #6b7080;
}

/* WooCommerce "Current bid" price on shop/catalog */
.rra-price strong {
	font-weight: 700;
}

/* ------------------------------------------------- WooCommerce shop */
.woocommerce select,
.woocommerce-ordering select,
.wc-block-catalog-sorting select,
.wc-block-product-collection select {
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--wp--preset--color--text);
	background-color: #ffffff;
	border: 1px solid #d8dce8;
	border-radius: 999px;
	padding: 9px 34px 9px 16px;
	line-height: 1.4;
	min-height: 40px;
	cursor: pointer;
	transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.woocommerce select:focus,
.woocommerce-ordering select:focus,
.wc-block-catalog-sorting select:focus {
	outline: none;
	border-color: #4f8cff;
	box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}
.wc-block-catalog-sorting {
	display: flex;
	align-items: center;
	gap: 10px;
}
.woocommerce-ordering {
	margin: 0;
}

/* Shop page heading */
.woocommerce .woocommerce-result-count,
.wc-block-products-result-count {
	color: #5a5f73;
	font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 782px) {
	.is-hidden-on-mobile {
		display: none !important;
	}
	.rra-header__inner {
		flex-wrap: wrap;
		gap: 12px;
	}
	.rra-nav ul {
		gap: 2px;
	}
	.rra-countdown {
		width: 100%;
		justify-content: space-between;
	}
	.rra-countdown__unit {
		min-width: 0;
		flex: 1;
	}
	/* Mobile drawer: full-width, evenly padded rows so the hover/tap highlight
	   reads as an intentional row instead of a floating pill. */
	.wp-block-navigation__responsive-container-content .rra-nav .wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: 100%;
	}
	.wp-block-navigation__responsive-container-content .rra-nav .wp-block-navigation-item {
		width: 100%;
	}
	.wp-block-navigation__responsive-container-content .rra-nav .wp-block-navigation-item a {
		width: 100%;
		border-radius: 14px;
		padding: 14px 16px;
		font-size: 1.05rem;
	}
}

/* ---------------------------------------------------------- my account: register before login */
.woocommerce-account #customer_login.u-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
	float: none;
	box-sizing: border-box;
	flex: 1 1 0%;
	min-width: 0;
}
.woocommerce-account #customer_login .u-column2 {
	order: 1; /* Register first */
}
.woocommerce-account #customer_login .u-column1 {
	order: 2; /* Login second */
}
@media (max-width: 768px) {
	.woocommerce-account #customer_login .u-column1,
	.woocommerce-account #customer_login .u-column2 {
		flex: 1 1 100%;
	}
}

/* ---------------------------------------------------------- privacy page */
.rra-privacy__updated {
	color: #6b7080;
	font-size: 0.9rem;
}

/* ---------------------------------------------------------- how-it-works intro */
.rra-how__intro {
	max-width: 58ch;
	color: #6b7080;
	margin-bottom: 2.5rem;
}

/* -------------------------------------------------- bid now CTA (shop cards) */
.rra-bid-cta-wrap {
	text-align: center;
}
.rra-bid-cta-wrap .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	background: #4f8cff !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(79, 140, 255, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	will-change: transform;
}
.rra-bid-cta-wrap .wp-block-button__link::after {
	content: " \2192";
	transition: transform 0.18s ease;
}
.rra-bid-cta-wrap .wp-block-button__link:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 14px 32px rgba(79, 140, 255, 0.4);
}
.rra-bid-cta-wrap .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* Album titles: black (they were the same blue as the bid buttons) */
.wc-block-product .wp-block-post-title a,
.wc-block-product .wp-block-post-title a:hover {
	color: var(--wp--preset--color--text, #0f1222);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wc-block-all-products .wc-block-grid__product,
	.rra-btn-primary .wp-block-button__link,
	.rra-bid-form__submit,
	.rra-bid-cta-wrap .wp-block-button__link {
		transition: none;
	}
	.rra-bid-cta-wrap .wp-block-button__link:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------- contact form */
.rra-contact__intro {
	color: var(--wp--preset--color--secondary, #6b7080);
	max-width: 56ch;
	margin-bottom: 2rem;
}
.wp-block-jetpack-contact-form .grunion-field-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #454b63;
	margin-bottom: 6px;
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="url"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border: 1px solid #d8dce8;
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--text);
}
.wp-block-jetpack-contact-form textarea {
	border-radius: 14px;
	min-height: 140px;
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: none;
	border-color: #4f8cff;
	box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}
.wp-block-jetpack-contact-form .grunion-field-wrap {
	margin-bottom: 16px;
}
