/**
 * ShipShow front-end styles.
 *
 * Scoped styles for the session single template and the shipshow-agenda
 * block. Deliberately minimal — relies on the active theme and the
 * plugin's shared-styles.css for typography and spacing primitives.
 */

/* ---------- Session single template ---------- */

.shipshow-session {
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 24px 96px;
}

.shipshow-session__header {
	text-align: center;
	margin-bottom: 32px;
}

.shipshow-session__tracks {
	margin: 0 0 12px;
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.shipshow-session__track {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eaeaff;
	color: #1f2a70;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.shipshow-session__title {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	margin: 0 0 12px;
}

.shipshow-session__time {
	color: #555;
	font-size: 16px;
	margin: 0 0 4px;
}

.shipshow-session__event {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.shipshow-session__embed {
	margin: 32px 0;
}

.shipshow-session__iframe-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.shipshow-session__iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.shipshow-session__placeholder {
	padding: 64px 24px;
	text-align: center;
	background: #f6f7fb;
	border: 2px dashed #c7c9d8;
	border-radius: 12px;
	color: #444;
}

.shipshow-session__description {
	margin: 48px 0;
}

.shipshow-session__description h2 {
	font-size: 24px;
	margin-bottom: 12px;
}

.shipshow-session__speakers h2 {
	font-size: 24px;
	margin-bottom: 16px;
}

.shipshow-session__speaker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.shipshow-speaker-card {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px;
	border: 1px solid #e5e7f0;
	border-radius: 12px;
	background: #fff;
}

.shipshow-speaker-card__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.shipshow-speaker-card__body { min-width: 0; }

.shipshow-speaker-card__name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
}

.shipshow-speaker-card__name a {
	color: inherit;
	text-decoration: none;
}

.shipshow-speaker-card__role {
	margin: 0;
	font-size: 14px;
	color: #666;
}

/* ---------- Agenda block ---------- */

.wp-block-shipstation-shipshow-agenda {
	margin: 48px auto;
}

/* Header */
.shipshow-agenda__header {
	text-align: center;
	margin-bottom: 48px;
}

.shipshow-agenda__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2C3FFF;
	margin: 0 0 8px;
}

.shipshow-agenda__heading {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	color: #1E1B4B;
	margin: 0 0 8px;
}

.shipshow-agenda__subheading {
	color: rgba(27, 17, 69, 0.7);
	font-size: 18px;
	margin: 0;
}

/* Timeline container — vertical line on the left */
.shipshow-agenda__timeline {
	position: relative;
	padding-left: 24px;
}

.shipshow-agenda__timeline::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: #E0DFFE;
}

/* ── Shared row styles ───────────────────────────────────────────── */

.shipshow-agenda__row {
	display: grid;
	gap: 32px;
	padding: 32px 0;
	border-bottom: 1px solid #E5E7EB;
	position: relative;
}

.shipshow-agenda__row:last-child {
	border-bottom: none;
}

/* Purple dot on the timeline */
.shipshow-agenda__row-meta {
	position: relative;
}

.shipshow-agenda__row-meta::before {
	content: '';
	position: absolute;
	left: -24px;
	top: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2C3FFF;
	transform: translateX(-50%);
	z-index: 1;
}

.shipshow-agenda__row-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1E1B4B;
	margin: 0 0 4px;
}

.shipshow-agenda__row-title a {
	color: inherit;
	text-decoration: none;
}

.shipshow-agenda__row-title a:hover {
	text-decoration: underline;
}

.shipshow-agenda__row-time {
	font-size: 14px;
	color: rgba(27, 17, 69, 0.6);
	margin: 0;
	font-variant-numeric: tabular-nums;
}

/* ── Single-session row ──────────────────────────────────────────── */

.shipshow-agenda__row--single {
	grid-template-columns: 200px 1fr;
	align-items: start;
}

/* Session card (white rounded container) */
.shipshow-agenda__card {
	display: grid;
	grid-template-columns: 1fr;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0px 4px 6px -1px rgba(15, 15, 15, 0.06),
	            0px 2px 4px -1px rgba(15, 15, 15, 0.04);
}

/* When the card has a decorative image, use two columns */
.shipshow-agenda__card:has(.shipshow-agenda__card-image) {
	grid-template-columns: 1fr 200px;
}

.shipshow-agenda__card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shipshow-agenda__speaker-name {
	font-size: 16px;
	font-weight: 700;
	color: #1E1B4B;
	margin: 0;
}

.shipshow-agenda__speaker-role {
	font-size: 14px;
	color: rgba(27, 17, 69, 0.6);
	margin: 0;
}

.shipshow-agenda__card-desc {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(27, 17, 69, 0.8);
	margin: 0;
}

.shipshow-agenda__card-image {
	min-height: 140px;
}

.shipshow-agenda__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Avatar cluster ──────────────────────────────────────────────── */

.shipshow-agenda__avatars {
	display: flex;
	margin-top: 4px;
}

.shipshow-agenda__avatars > * + * {
	margin-left: -6px;
}

.shipshow-agenda__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #FFFFFF;
	display: block;
	flex-shrink: 0;
}

.shipshow-agenda__avatar--placeholder {
	background: #2C3FFF;
}

/* ── Breakout row ────────────────────────────────────────────────── */

.shipshow-agenda__row--breakout {
	grid-template-columns: 200px 1fr;
	align-items: start;
}

.shipshow-agenda__track-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.shipshow-agenda__track-col {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0px 4px 6px -1px rgba(15, 15, 15, 0.06),
	            0px 2px 4px -1px rgba(15, 15, 15, 0.04);
}

.shipshow-agenda__track-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2C3FFF;
	margin-bottom: 12px;
}

.shipshow-agenda__track-session-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #1E1B4B;
	margin: 0 0 8px;
}

.shipshow-agenda__track-session-title a {
	color: inherit;
	text-decoration: none;
}

.shipshow-agenda__track-session-title a:hover {
	text-decoration: underline;
}

.shipshow-agenda__track-session-desc {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(27, 17, 69, 0.8);
	margin: 0 0 12px;
}

.shipshow-agenda__track-session-time {
	font-size: 13px;
	font-weight: 600;
	color: rgba(27, 17, 69, 0.6);
	margin: 0 0 12px;
	font-variant-numeric: tabular-nums;
}

/* Speaker inline in track column (single speaker) */
.shipshow-agenda__track-speaker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.shipshow-agenda__track-speaker .shipshow-agenda__avatars {
	margin-top: 0;
}

.shipshow-agenda__track-speaker-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.shipshow-agenda__track-speaker-name {
	font-size: 13px;
	font-weight: 600;
	color: #1E1B4B;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shipshow-agenda__track-speaker-role {
	font-size: 12px;
	color: rgba(27, 17, 69, 0.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Empty state ─────────────────────────────────────────────────── */

.shipshow-agenda__empty {
	padding: 48px 24px;
	text-align: center;
	color: #666;
	border: 2px dashed #c7c9d8;
	border-radius: 12px;
}

/* ── Dark theme (ambient dark page backgrounds) ─────────────────── */

.bg-deep-indigo .shipshow-agenda__eyebrow,
.bg-cobalt .shipshow-agenda__eyebrow,
.bg-dark-cobalt .shipshow-agenda__eyebrow,
.content-theme--dark .shipshow-agenda__eyebrow {
	color: #A8B4FF;
}

.bg-deep-indigo .shipshow-agenda__heading,
.bg-cobalt .shipshow-agenda__heading,
.bg-dark-cobalt .shipshow-agenda__heading,
.content-theme--dark .shipshow-agenda__heading {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__subheading,
.bg-cobalt .shipshow-agenda__subheading,
.bg-dark-cobalt .shipshow-agenda__subheading,
.content-theme--dark .shipshow-agenda__subheading {
	color: rgba(255, 255, 255, 0.7);
}

.bg-deep-indigo .shipshow-agenda__row,
.bg-cobalt .shipshow-agenda__row,
.bg-dark-cobalt .shipshow-agenda__row,
.content-theme--dark .shipshow-agenda__row {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.bg-deep-indigo .shipshow-agenda__row-title,
.bg-cobalt .shipshow-agenda__row-title,
.bg-dark-cobalt .shipshow-agenda__row-title,
.content-theme--dark .shipshow-agenda__row-title {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__row-title a,
.bg-cobalt .shipshow-agenda__row-title a,
.bg-dark-cobalt .shipshow-agenda__row-title a,
.content-theme--dark .shipshow-agenda__row-title a {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__row-time,
.bg-cobalt .shipshow-agenda__row-time,
.bg-dark-cobalt .shipshow-agenda__row-time,
.content-theme--dark .shipshow-agenda__row-time {
	color: rgba(255, 255, 255, 0.6);
}

.bg-deep-indigo .shipshow-agenda__timeline::before,
.bg-cobalt .shipshow-agenda__timeline::before,
.bg-dark-cobalt .shipshow-agenda__timeline::before,
.content-theme--dark .shipshow-agenda__timeline::before {
	background: rgba(255, 255, 255, 0.15);
}

.bg-deep-indigo .shipshow-agenda__card,
.bg-cobalt .shipshow-agenda__card,
.bg-dark-cobalt .shipshow-agenda__card,
.content-theme--dark .shipshow-agenda__card {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
}

.bg-deep-indigo .shipshow-agenda__speaker-name,
.bg-cobalt .shipshow-agenda__speaker-name,
.bg-dark-cobalt .shipshow-agenda__speaker-name,
.content-theme--dark .shipshow-agenda__speaker-name {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__speaker-role,
.bg-cobalt .shipshow-agenda__speaker-role,
.bg-dark-cobalt .shipshow-agenda__speaker-role,
.content-theme--dark .shipshow-agenda__speaker-role {
	color: rgba(255, 255, 255, 0.6);
}

.bg-deep-indigo .shipshow-agenda__card-desc,
.bg-cobalt .shipshow-agenda__card-desc,
.bg-dark-cobalt .shipshow-agenda__card-desc,
.content-theme--dark .shipshow-agenda__card-desc {
	color: rgba(255, 255, 255, 0.7);
}

.bg-deep-indigo .shipshow-agenda__track-col,
.bg-cobalt .shipshow-agenda__track-col,
.bg-dark-cobalt .shipshow-agenda__track-col,
.content-theme--dark .shipshow-agenda__track-col {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
}

.bg-deep-indigo .shipshow-agenda__track-label,
.bg-cobalt .shipshow-agenda__track-label,
.bg-dark-cobalt .shipshow-agenda__track-label,
.content-theme--dark .shipshow-agenda__track-label {
	color: #A8B4FF;
}

.bg-deep-indigo .shipshow-agenda__track-session-title,
.bg-cobalt .shipshow-agenda__track-session-title,
.bg-dark-cobalt .shipshow-agenda__track-session-title,
.content-theme--dark .shipshow-agenda__track-session-title {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__track-session-title a,
.bg-cobalt .shipshow-agenda__track-session-title a,
.bg-dark-cobalt .shipshow-agenda__track-session-title a,
.content-theme--dark .shipshow-agenda__track-session-title a {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__track-session-desc,
.bg-cobalt .shipshow-agenda__track-session-desc,
.bg-dark-cobalt .shipshow-agenda__track-session-desc,
.content-theme--dark .shipshow-agenda__track-session-desc {
	color: rgba(255, 255, 255, 0.7);
}

.bg-deep-indigo .shipshow-agenda__track-session-time,
.bg-cobalt .shipshow-agenda__track-session-time,
.bg-dark-cobalt .shipshow-agenda__track-session-time,
.content-theme--dark .shipshow-agenda__track-session-time {
	color: rgba(255, 255, 255, 0.6);
}

.bg-deep-indigo .shipshow-agenda__track-speaker-name,
.bg-cobalt .shipshow-agenda__track-speaker-name,
.bg-dark-cobalt .shipshow-agenda__track-speaker-name,
.content-theme--dark .shipshow-agenda__track-speaker-name {
	color: #FFFFFF;
}

.bg-deep-indigo .shipshow-agenda__track-speaker-role,
.bg-cobalt .shipshow-agenda__track-speaker-role,
.bg-dark-cobalt .shipshow-agenda__track-speaker-role,
.content-theme--dark .shipshow-agenda__track-speaker-role {
	color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.shipshow-agenda__timeline {
		padding-left: 0;
	}

	.shipshow-agenda__timeline::before {
		display: none;
	}

	.shipshow-agenda__row-meta::before {
		display: none;
	}

	.shipshow-agenda__row--single,
	.shipshow-agenda__row--breakout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.shipshow-agenda__card:has(.shipshow-agenda__card-image) {
		grid-template-columns: 1fr;
	}

	.shipshow-agenda__card-image {
		min-height: 120px;
		max-height: 180px;
	}

	.shipshow-agenda__track-columns {
		grid-template-columns: 1fr;
	}
}
