/* ==========================================================================
   EVENT SCHEDULE — 2-day, 3-stage time grid
   Designed to harmonise with Twenty Twenty-Five's minimal aesthetic.
   ========================================================================== */

/* ── Schedule page header ───────────────────────────────────────────────── */
.schedule-page__header {
	max-width: 720px;
	margin: 4rem auto 2rem;
	text-align: center;
	padding: 0 1.5rem;
}
.schedule-page__header h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 0.5rem;
}
.schedule-page__intro {
	font-size: 1.05rem;
	color: var(--wp--preset--color--contrast-2, #666);
}

/* ── Day tabs ───────────────────────────────────────────────────────────── */
.event-schedule {
	max-width: 1200px;
	margin: 0 auto 4rem;
	padding: 0 1.5rem;
}
.schedule-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--wp--preset--color--contrast-3, #e0e0e0);
	padding-bottom: 0;
}
.schedule-tab {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	color: var(--wp--preset--color--contrast-2, #666);
	transition: color 0.2s, border-color 0.2s;
	margin-bottom: -2px;
	font-family: inherit;
}
.schedule-tab:hover {
	color: var(--wp--preset--color--contrast, #000);
}
.schedule-tab--active {
	color: var(--wp--preset--color--contrast, #000);
	border-bottom-color: var(--wp--preset--color--contrast, #000);
}
.schedule-tab__date {
	display: block;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2, #888);
	margin-top: 0.15rem;
}

/* ── Day panels ─────────────────────────────────────────────────────────── */
.schedule-day {
	display: none;
}
.schedule-day--active {
	display: block;
}

/* ── Grid layout ────────────────────────────────────────────────────────── */
.schedule-grid {
	width: 100%;
}

.schedule-grid__header {
	display: grid;
	grid-template-columns: 140px repeat(3, 1fr);
	gap: 1px;
	background: var(--wp--preset--color--contrast-3, #e0e0e0);
	border-radius: 8px 8px 0 0;
	overflow: hidden;
	margin-bottom: 1px;
}
.schedule-grid__time-label,
.schedule-grid__stage-label {
	padding: 0.875rem 1rem;
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--wp--preset--color--contrast, #1a1a1a);
	color: var(--wp--preset--color--base, #fff);
	text-align: center;
}
.schedule-grid__time-label {
	text-align: left;
}

/* ── Rows ───────────────────────────────────────────────────────────────── */
.schedule-grid__row {
	display: grid;
	grid-template-columns: 140px repeat(3, 1fr);
	gap: 1px;
	background: var(--wp--preset--color--contrast-3, #e0e0e0);
	margin-bottom: 1px;
}
.schedule-grid__row:last-child {
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

.schedule-grid__time {
	padding: 1rem;
	font-weight: 600;
	font-size: 0.9rem;
	background: var(--wp--preset--color--base, #fff);
	display: flex;
	align-items: flex-start;
	color: var(--wp--preset--color--contrast, #333);
	white-space: nowrap;
}

.schedule-grid__cell {
	padding: 1rem;
	background: var(--wp--preset--color--base, #fff);
	min-height: 90px;
	transition: background 0.15s ease;
}
.schedule-grid__cell:hover {
	background: #fafafa;
}

/* ── Session cards inside grid cells ────────────────────────────────────── */
.schedule-session {
	height: 100%;
}
.schedule-session__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.35;
	color: var(--wp--preset--color--contrast, #1a1a1a);
}
.schedule-session__speaker {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	margin-bottom: 0.4rem;
}
.schedule-session__speaker a {
	color: var(--wp--preset--color--contrast-2, #555);
	text-decoration: none;
	transition: color 0.15s;
}
.schedule-session__speaker a:hover {
	color: var(--wp--preset--color--contrast, #000);
	text-decoration: underline;
}
.schedule-session__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.schedule-session__desc {
	font-size: 0.8rem;
	color: var(--wp--preset--color--contrast-2, #888);
	margin: 0;
	line-height: 1.45;
}

.schedule-grid__empty {
	padding: 2rem;
	text-align: center;
	color: var(--wp--preset--color--contrast-2, #999);
	font-style: italic;
}

/* ── Stage accent colours (left border on cells) ────────────────────────── */
.schedule-grid__cell[data-stage="stage-1"] .schedule-session {
	border-left: 3px solid #4285f4;
	padding-left: 0.75rem;
}
.schedule-grid__cell[data-stage="stage-2"] .schedule-session {
	border-left: 3px solid #ea4335;
	padding-left: 0.75rem;
}
.schedule-grid__cell[data-stage="stage-3"] .schedule-session {
	border-left: 3px solid #34a853;
	padding-left: 0.75rem;
}

/* ── Responsive: stack on mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
	.schedule-grid__header {
		display: none;
	}
	.schedule-grid__row {
		grid-template-columns: 1fr;
		border-radius: 8px;
		overflow: hidden;
		margin-bottom: 1rem;
	}
	.schedule-grid__time {
		background: var(--wp--preset--color--contrast, #1a1a1a);
		color: var(--wp--preset--color--base, #fff);
		font-size: 0.95rem;
		padding: 0.75rem 1rem;
		border-radius: 0;
	}
	.schedule-grid__cell {
		min-height: auto;
		padding: 0.875rem 1rem;
	}
	.schedule-grid__cell:empty {
		display: none;
	}
	/* Show stage label on mobile */
	.schedule-grid__cell::before {
		display: block;
		font-size: 0.7rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		margin-bottom: 0.5rem;
		opacity: 0.5;
	}
	.schedule-grid__cell[data-stage="stage-1"]::before { content: "Stage 1"; color: #4285f4; }
	.schedule-grid__cell[data-stage="stage-2"]::before { content: "Stage 2"; color: #ea4335; }
	.schedule-grid__cell[data-stage="stage-3"]::before { content: "Stage 3"; color: #34a853; }
}

@media (max-width: 480px) {
	.schedule-tabs {
		flex-direction: column;
		gap: 0;
	}
	.schedule-tab {
		text-align: left;
		border-bottom: none;
		border-left: 3px solid transparent;
		margin-bottom: 0;
	}
	.schedule-tab--active {
		border-left-color: var(--wp--preset--color--contrast, #000);
		border-bottom-color: transparent;
	}
}
