/*
Theme Name: HC Catwyck Shop
Theme URI: https://hccwebshop.azurewebsites.net/
Description: Child theme of Twenty Twenty-Four for the Hockey Club Catwyck webshop. Club branding in Geel & Blauw (yellow & blue) with Oswald condensed headings, and tailored WooCommerce shop, product, cart and checkout styling.
Author: HC Catwyck
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.2
Text Domain: hccatwyck-shop
*/

/*
 * Most styling lives in theme.json (colors, typography, blocks) which is the
 * correct approach for a block theme. This file is intentionally minimal — it
 * only holds the required theme header plus a few rules that are easier to
 * express as plain CSS than as theme.json settings.
 */

/* === Member Dashboard Layout & styling (US1.2) === */

.hcc-dashboard-container {
	margin-top: 30px;
	margin-bottom: 30px;
}

/* Blocked Banner styling */
.hcc-blocked-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, #FFF0F2 0%, #FFE5E8 100%);
	border-left: 6px solid #D9383A;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 4px 12px rgba(217, 56, 58, 0.08);
}

.hcc-blocked-icon {
	font-size: 28px;
	line-height: 1;
}

.hcc-blocked-text {
	color: #6B1D20;
	font-size: 1.05rem;
	line-height: 1.5;
}

.hcc-blocked-text strong {
	color: #9C2022;
}

/* Dashboard Grid */
.hcc-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 992px) {
	.hcc-dashboard-grid {
		grid-template-columns: 1fr 2fr;
	}
}

/* Cards */
.hcc-card {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 4px 15px rgba(20, 24, 31, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hcc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(20, 24, 31, 0.08);
}

.hcc-card-title {
	font-family: var(--wp--preset--font-family--oswald), sans-serif;
	font-size: 1.35rem;
	color: var(--wp--preset--color--primary, #0054A6);
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--wp--preset--color--secondary, #F2DF00);
	padding-bottom: 10px;
	letter-spacing: 0.02em;
}

/* Info Card Rows */
.hcc-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #F0F2F6;
}

.hcc-info-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.hcc-info-label {
	font-weight: 600;
	color: var(--wp--preset--color--contrast-soft, #5A6472);
	font-size: 0.95rem;
}

.hcc-info-value {
	color: var(--wp--preset--color--contrast, #14181F);
	font-weight: 500;
}

/* Status Badges */
.hcc-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hcc-status-badge.active {
	background-color: #E6F6ED;
	color: #15803D;
}

.hcc-status-badge.blocked {
	background-color: #FEE2E2;
	color: #991B1B;
}

.hcc-status-badge.suspended {
	background-color: #FEF3C7;
	color: #92400E;
}

/* Table styling */
.hcc-table-responsive {
	overflow-x: auto;
}

.hcc-loans-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.hcc-loans-table th {
	font-family: var(--wp--preset--font-family--oswald), sans-serif;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--contrast-soft, #5A6472);
	background-color: var(--wp--preset--color--base-soft, #F4F6F9);
	padding: 12px 16px;
	text-align: left;
	border: none;
}

.hcc-loans-table td {
	padding: 16px;
	vertical-align: middle;
	border-bottom: 1px solid var(--wp--preset--color--border, #E1E5EC);
	color: var(--wp--preset--color--contrast, #14181F);
}

.hcc-loans-table tr:last-child td {
	border-bottom: none;
}

.hcc-product-name {
	color: var(--wp--preset--color--primary, #0054A6);
}

.hcc-size-tag {
	display: inline-block;
	background-color: var(--wp--preset--color--base-soft, #F4F6F9);
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
	color: var(--wp--preset--color--contrast, #14181F);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
}

.hcc-sku code {
	background-color: transparent;
	padding: 0;
	color: var(--wp--preset--color--contrast-soft, #5A6472);
}

.hcc-no-loans {
	color: var(--wp--preset--color--contrast-soft, #5A6472);
	font-style: italic;
	margin: 0;
}

/* Checkout Custom Policy Checkbox styling */
.hcc-policy-checkbox {
	margin-top: 20px;
	margin-bottom: 20px;
	padding: 16px;
	background-color: var(--wp--preset--color--base-soft, #F4F6F9);
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
	border-radius: 6px;
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
}

.hcc-policy-checkbox label {
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast, #14181F);
	font-weight: 500;
	cursor: pointer;
	margin: 0;
}

.hcc-policy-checkbox input[type="checkbox"] {
	margin: 4px 0 0 0 !important;
	flex-shrink: 0;
}

/* === US2.2: Online Size Exchange (Swap) Request Styles === */

/* Swap Action Button */
.hcc-btn-swap {
	background-color: var(--wp--preset--color--primary, #0054A6) !important;
	color: #ffffff !important;
	padding: 8px 16px !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	border: none !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, transform 0.15s ease !important;
	box-shadow: 0 2px 4px rgba(0, 84, 166, 0.1) !important;
}

.hcc-btn-swap:hover {
	background-color: #004080 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(0, 84, 166, 0.2) !important;
}

.hcc-btn-swap:active {
	transform: translateY(0) !important;
}

.hcc-disabled-text {
	color: var(--wp--preset--color--contrast-soft, #5A6472);
	font-size: 0.85rem;
	font-style: italic;
}

/* Glassmorphic Modal */
.hcc-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(20, 24, 31, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hcc-modal.active {
	opacity: 1;
}

.hcc-modal-content {
	background: #ffffff;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	padding: 30px;
	box-shadow: 0 20px 40px rgba(20, 24, 31, 0.15);
	position: relative;
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
}

.hcc-modal.active .hcc-modal-content {
	transform: scale(1);
}

.hcc-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 28px;
	color: var(--wp--preset--color--contrast-soft, #5A6472);
	cursor: pointer;
	transition: color 0.2s ease;
	line-height: 1;
}

.hcc-modal-close:hover {
	color: var(--wp--preset--color--contrast, #14181F);
}

.hcc-modal-title {
	font-family: var(--wp--preset--font-family--oswald), sans-serif;
	font-size: 1.6rem;
	color: var(--wp--preset--color--primary, #0054A6);
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--wp--preset--color--secondary, #F2DF00);
	padding-bottom: 12px;
	letter-spacing: 0.02em;
}

/* Form Styles */
.hcc-form-group {
	margin-bottom: 20px;
}

.hcc-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--wp--preset--color--contrast, #14181F);
	font-size: 0.95rem;
}

.hcc-input-readonly {
	background-color: var(--wp--preset--color--base-soft, #F4F6F9);
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
	color: var(--wp--preset--color--contrast-soft, #5A6472);
	cursor: not-allowed;
	width: 100%;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 0.95rem;
	outline: none;
}

.hcc-form-group select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
	border-radius: 6px;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast, #14181F);
	background-color: #ffffff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.hcc-form-group select:focus {
	border-color: var(--wp--preset--color--primary, #0054A6);
	box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.15);
}

.hcc-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 30px;
}

/* Modal Buttons */
.hcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	text-decoration: none;
}

.hcc-btn-primary {
	background-color: var(--wp--preset--color--primary, #0054A6);
	color: #ffffff;
}

.hcc-btn-primary:hover {
	background-color: #004080;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 84, 166, 0.15);
}

.hcc-btn-primary:active {
	transform: translateY(0);
}

.hcc-btn-secondary {
	background-color: var(--wp--preset--color--base-soft, #F4F6F9);
	color: var(--wp--preset--color--contrast, #14181F);
	border: 1px solid var(--wp--preset--color--border, #E1E5EC);
}

.hcc-btn-secondary:hover {
	background-color: #E2E8F0;
	border-color: #CBD5E1;
}

/* === US3.1: Countdown Banner styling === */
.hcc-countdown-banner {
	background: linear-gradient(135deg, #003a73 0%, #0054a6 100%);
	color: #ffffff;
	text-align: center;
	padding: 14px 20px;
	font-size: 1.1rem;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-bottom: 4px solid var(--wp--preset--color--secondary, #F2DF00); /* Yellow club accent border */
	transition: all 0.3s ease;
}

.hcc-countdown-icon {
	font-size: 1.3rem;
	animation: hcc-pulse 2s infinite;
}

.hcc-countdown-badge {
	background-color: var(--wp--preset--color--secondary, #F2DF00);
	color: #003a73;
	padding: 2px 10px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.95rem;
	margin: 0 4px;
	display: inline-block;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hcc-countdown-text strong {
	color: var(--wp--preset--color--secondary, #F2DF00);
	font-weight: 700;
}

@keyframes hcc-pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.15);
		opacity: 0.8;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* === Gender Filter Buttons (Kinderen / Mannen / Vrouwen) on shop archives === */
.hcc-gender-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.hcc-gender-btn {
	font-family: var(--wp--preset--font-family--oswald), sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background-color: var(--wp--preset--color--primary, #0054A6);
	color: #ffffff;
	padding: 10px 24px;
	border-radius: 4px;
	font-weight: 600;
}

.hcc-gender-btn:hover {
	background-color: #004080;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 84, 166, 0.15);
}

.hcc-gender-btn-active,
.hcc-gender-btn-active:hover {
	background-color: var(--wp--preset--color--secondary, #F2DF00);
	color: #003a73;
}

/* === Site Header Styling Overrides === */
body header.wp-block-template-part,
body header.wp-block-template-part .wp-block-group,
body header.wp-block-template-part .has-base-background-color,
body header.wp-block-template-part [class*="has-background"] {
	background-color: #0054A6 !important;
	background: #0054A6 !important;
}

body header.wp-block-template-part a,
body header.wp-block-template-part .wp-block-site-title a,
body header.wp-block-template-part .wp-block-navigation a {
	color: #ffffff !important;
}

body header.wp-block-template-part .wp-block-navigation a:hover,
body header.wp-block-template-part .wp-block-navigation a:focus {
	color: var(--wp--preset--color--secondary, #F2DF00) !important;
	text-decoration: none;
}

body header.wp-block-template-part .wp-block-navigation .current-menu-item > a,
body header.wp-block-template-part .wp-block-navigation .current-menu-item > a:hover,
body header.wp-block-template-part .wp-block-navigation .current_page_item > a,
body header.wp-block-template-part .wp-block-navigation .current_page_item > a:hover {
	color: var(--wp--preset--color--secondary, #F2DF00) !important;
}

body header.wp-block-template-part .wp-block-navigation__responsive-container-open svg {
	fill: #ffffff !important;
}





