/* ============================================
   DCO Corner One – Frontend Styles
   ============================================ */

/* ── WooCommerce Checkout Simplification ─── */
.dco-hidden-field { display: none !important; }
.woocommerce-billing-fields h3,
.woocommerce-billing-fields__field-wrapper:empty { display: none !important; }

/* ── SVG Icon Base ────────────────────────── */
.dco-svg-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
	line-height: 0;
}
@keyframes dco-spin {
	to { transform: rotate(360deg); }
}
.dco-spinner {
	animation: dco-spin 0.8s linear infinite;
	display: inline-block;
	vertical-align: middle;
}

/* ── Stage Cards Grid ─────────────────────── */
.dco-stage-cards-grid {
	display: grid;
	gap: 24px;
}
.dco-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dco-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dco-cols-4 { grid-template-columns: repeat(4, 1fr); }
.dco-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
	.dco-cols-4, .dco-cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.dco-cols-3, .dco-cols-4, .dco-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.dco-stage-cards-grid { grid-template-columns: 1fr !important; }
}

/* ── Stage Card ───────────────────────────── */
.dco-stage-card {
	display: flex;
	flex-direction: column;
	background: #1a0a0a;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid rgba(255,255,255,0.08);
}
.dco-stage-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(230, 57, 70, 0.25);
	text-decoration: none;
}
.dco-stage-card--full {
	opacity: 0.7;
	pointer-events: auto;
}
.dco-stage-card__image {
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
}
.dco-stage-card__image--placeholder {
	background: linear-gradient(135deg, #2a0f0f 0%, #1a0505 100%);
}
.dco-stage-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}
.dco-stage-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.3;
}
.dco-stage-card__meta {
	font-size: 0.82rem;
	color: #999;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: 0.01em;
}
.dco-stage-card__meta .dco-svg-icon {
	flex-shrink: 0;
	opacity: 0.7;
	color: #e63946;
}
.dco-stage-card__spots--low {
	color: #e63946 !important;
	font-weight: 600;
}
.dco-stage-card__spots--low .dco-svg-icon {
	opacity: 1;
}
.dco-stage-card__btn {
	display: inline-block;
	margin-top: auto;
	padding: 10px 20px;
	background: #e63946;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
	text-align: center;
	transition: background 0.2s ease;
	align-self: flex-start;
}
.dco-stage-card:hover .dco-stage-card__btn {
	background: #c62832;
}
.dco-stage-card__btn--full {
	background: #555;
}
.dco-stage-card:hover .dco-stage-card__btn--full {
	background: #555;
}
.dco-no-stages {
	color: #aaa;
	text-align: center;
	padding: 40px;
}

/* ── Stage Header ─────────────────────────── */
.dco-stage-header {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	background-color: #1a0a0a;
	overflow: hidden;
}
.dco-stage-header__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
	opacity: 0.65;
}
.dco-stage-header__content {
	position: relative;
	z-index: 2;
	padding: 48px 60px;
	width: 100%;
}
.dco-breadcrumb {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.6);
	margin-bottom: 16px;
	display: flex;
	gap: 8px;
	align-items: center;
}
.dco-breadcrumb a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
}
.dco-breadcrumb a:hover { color: #fff; }
.dco-stage-header__badge {
	display: inline-block;
	padding: 4px 14px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 3px;
	margin-bottom: 12px;
}
.dco-badge--open  { background: #e63946; color: #fff; }
.dco-badge--full  { background: #555; color: #fff; }
.dco-badge--past  { background: #333; color: #aaa; }

.dco-stage-header__title {
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 900;
	color: #fff;
	text-transform: uppercase;
	margin: 0 0 20px;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.dco-stage-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 24px;
}
.dco-stage-header__meta-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255,255,255,0.85);
	font-size: 0.95rem;
}
.dco-stage-header__meta-item .dco-svg-icon {
	flex-shrink: 0;
	color: #e63946;
	opacity: 0.9;
}
.dco-spots-low { color: #ff6b6b !important; }
.dco-spots-low .dco-svg-icon { color: #ff6b6b; opacity: 1; }

/* ── Countdown ────────────────────────────── */
.dco-countdown {
	display: flex;
	gap: 20px;
	margin-top: 8px;
}
.dco-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 6px;
	padding: 12px 20px;
	min-width: 70px;
}
.dco-countdown__number {
	font-size: 2rem;
	font-weight: 900;
	color: #e63946;
	line-height: 1;
}
.dco-countdown__label {
	font-size: 0.7rem;
	color: rgba(255,255,255,0.6);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 4px;
}

/* ── Registration Layout ──────────────────── */
.dco-layout-split {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
	align-items: stretch;
}
.dco-layout-full .dco-reg-form-wrap {
	max-width: 800px;
	margin: 0 auto;
}
@media (max-width: 900px) {
	.dco-layout-split { grid-template-columns: 1fr; }
}

/* ── Registration Info Panel ──────────────── */
.dco-reg-info-panel {
	background: #1a0a0a;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.dco-reg-info__body {
	padding: 32px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.dco-reg-info__track-image {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
}
.dco-reg-info__title {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e63946;
}
.dco-reg-info__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ccc;
	font-size: 0.95rem;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dco-reg-info__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}
.dco-reg-info__icon .dco-svg-icon {
	color: #e63946;
}

/* ── Registration Form ────────────────────── */
.dco-reg-form-wrap {
	background: #1a0a0a;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	padding: 36px;
}
.dco-reg-form__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	margin: 0 0 28px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e63946;
}
.dco-reg-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.dco-form-row { display: flex; flex-direction: column; gap: 20px; }
.dco-form-row--half {
	flex-direction: row;
	gap: 20px;
}
.dco-form-row--half .dco-form-group { flex: 1; }
@media (max-width: 600px) {
	.dco-form-row--half { flex-direction: column; }
}
.dco-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.dco-reg-form label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #ccc;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.dco-reg-form input[type="text"],
.dco-reg-form input[type="email"],
.dco-reg-form input[type="tel"],
.dco-reg-form input[type="date"],
.dco-reg-form select {
	width: 100%;
	padding: 12px 16px;
	background: #2a0f0f;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 4px;
	color: #fff;
	font-size: 0.95rem;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}
.dco-reg-form input:focus,
.dco-reg-form select:focus {
	outline: none;
	border-color: #e63946;
}
.dco-reg-form input::placeholder { color: rgba(255,255,255,0.3); }
.dco-reg-form select option { background: #1a0a0a; color: #fff; }

/* Guardian fields */
.dco-guardian-fields {
	background: rgba(230, 57, 70, 0.08);
	border: 1px solid rgba(230, 57, 70, 0.3);
	border-radius: 6px;
	padding: 20px;
}
.dco-guardian-notice p {
	color: #ffaaaa;
	font-size: 0.875rem;
	margin: 0 0 16px;
}

/* Consent checkbox */
.dco-form-row--consent { flex-direction: row; }
.dco-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.dco-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: #e63946;
	cursor: pointer;
}
.dco-checkbox-text {
	font-size: 0.9rem;
	color: #ccc;
	line-height: 1.5;
	font-weight: 400 !important;
	text-transform: none !important;
}
.dco-checkbox-text a {
	color: #e63946;
	text-decoration: underline;
}

/* Submit button */
.dco-reg-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	background: #e63946;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	width: 100%;
}
.dco-reg-form__submit:hover { background: #c62832; }
.dco-reg-form__submit:active { transform: scale(0.98); }
.dco-reg-form__submit:disabled {
	background: #555;
	cursor: not-allowed;
}

/* Messages */
.dco-reg-messages {
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.5;
}
.dco-reg-messages.dco-msg--error {
	background: rgba(230, 57, 70, 0.15);
	border: 1px solid rgba(230, 57, 70, 0.5);
	color: #ff9999;
	padding: 12px 16px;
}
.dco-reg-messages.dco-msg--success {
	background: rgba(34, 197, 94, 0.15);
	border: 1px solid rgba(34, 197, 94, 0.4);
	color: #86efac;
	padding: 12px 16px;
}

/* Closed/Full states */
.dco-reg-closed {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	padding: 32px;
	text-align: center;
}
.dco-reg-closed p {
	color: #aaa;
	font-size: 1.1rem;
	margin: 0;
}

/* Editor placeholder */
.dco-placeholder {
	background: #f0f0f0;
	border: 2px dashed #ccc;
	border-radius: 6px;
	padding: 40px;
	text-align: center;
	color: #666;
}

@media (max-width: 768px) {
	.dco-stage-header__content { padding: 32px 24px; }
	.dco-reg-form-wrap { padding: 24px; }
	.dco-countdown { gap: 10px; }
	.dco-countdown__unit { padding: 10px 14px; min-width: 60px; }
	.dco-countdown__number { font-size: 1.5rem; }
}

/* ── Stage Calendar List ──────────────────── */
.dco-cal-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 6px;
	overflow: hidden;
}
.dco-cal-item {
	display: flex;
	align-items: stretch;
	background: #1a1a1a;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	transition: background 0.2s ease;
}
.dco-cal-item:last-child { border-bottom: none; }
.dco-cal-item:hover { background: #222222; }
.dco-cal-item--past { opacity: 0.55; }

/* Date block */
.dco-cal-item__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	width: 100px;
	background: #111111;
	padding: 24px 12px;
	flex-shrink: 0;
	border-right: 1px solid rgba(255,255,255,0.06);
}
.dco-cal-item__day {
	font-size: 3rem;
	font-weight: 900;
	line-height: 1;
	color: #ffffff;
	letter-spacing: -0.02em;
}
.dco-cal-item__month {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #e63946;
	margin-top: 2px;
}

/* Content */
.dco-cal-item__content {
	flex: 1;
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}
.dco-cal-item__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.3;
}
.dco-cal-item__title a {
	color: inherit;
	text-decoration: none;
}
.dco-cal-item__title a:hover { color: #e63946; }
.dco-cal-item__excerpt {
	font-size: 0.82rem;
	color: #888;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dco-cal-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}
.dco-cal-item__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: #888;
}
.dco-cal-item__meta-item .dco-svg-icon {
	color: #e63946;
	opacity: 0.8;
	flex-shrink: 0;
}
.dco-cal-item__meta-item.dco-spots-low { color: #ff6b6b; }
.dco-cal-item__meta-item.dco-spots-low .dco-svg-icon { color: #ff6b6b; opacity: 1; }

/* Button */
.dco-cal-item__btn {
	display: inline-block;
	align-self: flex-start;
	padding: 7px 16px;
	background: #111111;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-decoration: none;
	border-radius: 3px;
	transition: background 0.2s ease, color 0.2s ease;
	border: 1px solid rgba(255,255,255,0.1);
	margin-top: 4px;
}
.dco-cal-item__btn:hover { background: #e63946; border-color: #e63946; color: #fff; text-decoration: none; }
.dco-cal-item__btn--full { background: #2a2a2a; color: #666; cursor: not-allowed; }
.dco-cal-item__btn--full:hover { background: #2a2a2a; border-color: rgba(255,255,255,0.1); color: #666; }
.dco-cal-item__btn--past { background: transparent; color: #555; border-color: rgba(255,255,255,0.06); cursor: default; font-style: italic; }
.dco-cal-item__btn--past:hover { background: transparent; color: #555; }

@media (max-width: 600px) {
	.dco-cal-item { flex-direction: column; }
	.dco-cal-item__date {
		flex-direction: row;
		width: 100%;
		min-width: unset;
		padding: 16px 20px;
		gap: 8px;
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}
	.dco-cal-item__day { font-size: 2rem; }
	.dco-cal-item__content { padding: 16px 20px; }
}

/* ── Next Stage Countdown ─────────────────── */
.dco-next-countdown {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.dco-next-countdown--empty p {
	color: rgba(255,255,255,0.5);
	font-size: 1rem;
	margin: 0;
}
.dco-next-countdown__heading {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(255,255,255,0.5);
	margin: 0;
}
.dco-next-countdown__stage-name {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0;
	color: #ffffff;
}
.dco-next-countdown__stage-name a {
	color: inherit;
	text-decoration: none;
}
.dco-next-countdown__stage-name a:hover { color: #e63946; }
.dco-next-countdown__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.dco-next-countdown__meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.7);
	font-size: 0.9rem;
}
.dco-next-countdown__meta-item .dco-svg-icon { color: #e63946; }

/* Hero-sized countdown */
.dco-countdown--hero {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.dco-countdown--hero .dco-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 6px;
	padding: 18px 24px;
	min-width: 90px;
}
.dco-countdown--hero .dco-countdown__number {
	font-size: 3.5rem;
	font-weight: 900;
	color: #e63946;
	line-height: 1;
	letter-spacing: -0.02em;
}
.dco-countdown--hero .dco-countdown__label {
	font-size: 0.7rem;
	color: rgba(255,255,255,0.45);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-top: 6px;
}
.dco-next-countdown__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: #e63946;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	text-decoration: none;
	border-radius: 4px;
	align-self: flex-start;
	transition: background 0.2s ease;
}
.dco-next-countdown__btn:hover { background: #c62832; color: #fff; text-decoration: none; }
.dco-next-countdown__btn .dco-svg-icon { opacity: 0.85; }

@media (max-width: 480px) {
	.dco-countdown--hero { gap: 8px; }
	.dco-countdown--hero .dco-countdown__unit { padding: 14px 16px; min-width: 70px; }
	.dco-countdown--hero .dco-countdown__number { font-size: 2.5rem; }
}
