:root {
	--sc-gallery-card-width: 310px !important;
	--sk-tile-padding: 2em 2.5em;
	--tile-custom-gap: 1em;
}

.bg-light {
	background-color: #f5f5f7;
}

body[data-color-scheme="dark"] .bg-light {
	background-color: #141414;
}

/* ========== TODO: Move to Global Styles ========== */
/* ========== Skeleton Loading Styles ========== */

.skeleton-card {
	pointer-events: none;
	cursor: default;
}

.skeleton-shimmer {
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.08) 0%,
		rgba(0, 0, 0, 0.04) 50%,
		rgba(0, 0, 0, 0.08) 100%
	);
	background-size: 200% 100%;
	animation: shimmer 2s infinite;
	border-radius: 4px;
	margin-bottom: 0.5em;
}

body[data-color-scheme="dark"] .skeleton-shimmer {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.06) 0%,
		rgba(255, 255, 255, 0.12) 50%,
		rgba(255, 255, 255, 0.06) 100%
	);
	background-size: 200% 100%;
}

.skeleton-title {
	height: 20px;
	width: 90%;
	margin-bottom: 0.75em;
}

.skeleton-date {
	height: 14px;
	width: 50%;
	margin-bottom: 0.75em;
}

.skeleton-detail {
	height: 12px;
	width: 100%;
	margin-bottom: 0.3em;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* Hide skeleton when loading is complete */
[data-loading="false"] .skeleton-card {
	display: none;
}

.skeleton-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0;
	margin-bottom: 0;
}

.skeleton-type {
	height: 12px;
	width: 35%;
	margin-bottom: 8px;
}

/* ========== Personalized Cards ========== */

.pc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.pc-card:hover {
	text-decoration: none;
}

/* ========== Media / Image ========== */

.pc-card__media {
	flex-shrink: 0;
}

.pc-card__image-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.pc-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	filter: brightness(0.95);
	transition: transform 0.5s ease-in-out;
}

.pc-card:hover .pc-card__image {
	transform: scale(1.045);
}

.pc-card__duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background-color: rgba(0, 0, 0, 0.45);
	padding: 2px 6px;
	color: #fff;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
}

/* ========== Card Content ========== */

.pc-card__content {
	padding: 1em 1.25em 1.25em;
	display: flex;
	flex-direction: column;
	flex: 1;
	background-color: #343436;
}

.pc-card__type {
	font-size: 13px;
	font-weight: 600;
	color: var(--sk-secondary-label-color, #6e6e73);
	margin: 0 0 4px 0;
	text-transform: uppercase;
}

.pc-card__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

/* ========== Event Card Media ========== */

.pc-card__event-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #e0e8f8 0%, #b8c8e8 100%);
	flex-shrink: 0;
}

.pc-card__calendar {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	border-radius: 18px;
	width: 96px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	padding: 8px 0 10px;
}

.pc-card__calendar-month {
	display: block;
	text-align: center;
	color: #e03131;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin-bottom: 0;
}

.pc-card__calendar-day {
	display: block;
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
	color: #1d1d1f;
	text-align: center;
}

/* ========== Lab by Appointment Card ========== */

.pc-card--lab {
	border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-color-scheme="dark"] .pc-card--lab {
	border-color: rgba(255, 255, 255, 0.1);
}

.pc-card__lab-header {
	padding: 0.75em 1.25em 0;
}

.pc-card__lab-event {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6e6e73;
}

.pc-card__lab-details {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-top: 10px;
}

.pc-card__calendar--inline {
	flex-shrink: 0;
	width: 56px;
	padding: 4px 0 6px;
	border-radius: 12px;
}

.pc-card__calendar--inline .pc-card__calendar-month {
	font-size: 12px;
}

.pc-card__calendar--inline .pc-card__calendar-day {
	font-size: 28px;
}

.pc-card__calendar--lab {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 56px;
	padding: 4px 0 6px;
	border-radius: 12px;
}

.pc-card__calendar--lab .pc-card__calendar-month {
	font-size: 12px;
}

.pc-card__calendar--lab .pc-card__calendar-day {
	font-size: 28px;
}

.pc-card--lab .pc-card__lab-event {
	position: absolute;
	top: 12px;
	right: 12px;
}

.pc-card__topic-icon {
	font-size: 64px;
	color: #1d1d1f;
	opacity: 0.12;
}

.pc-card__lab-meta {
	min-width: 0;
}

.pc-card__lab-time {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	color: #1d1d1f;
}

body[data-color-scheme="dark"] .pc-card__lab-time {
	color: #f5f5f7;
}

.pc-card__lab-duration {
	font-size: 12px;
	color: #6e6e73;
	margin: 2px 0 0;
}

/* ========== Group Lab Card ========== */

.pc-card--group-lab {
	overflow: hidden;
	background: transparent;
	border-radius: 18px;
	border: 1px solid #343436;
}

.pc-card__gl-top {
	display: flex;
	flex-direction: column;
	gap: 1em;
	padding: 1.25em;
	aspect-ratio: 16 / 9;
	background-color: #1d1d1f;
	color: #f5f5f7;
	border-radius: 18px 18px 0 0;
}

body[data-color-scheme="light"] .pc-card--group-lab .pc-card__gl-top {
	background-color: #f5f5f7;
	color: #1d1d1f;
}

.pc-card__gl-top-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75em;
}

.pc-card__gl-icon {
	background: linear-gradient(135deg, #dadbef 0%, #848486 100%);
	-webkit-mask-image: var(--icon-url);
	mask-image: var(--icon-url);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	display: inline-block;
	margin-top: -8px;
}

.pc-card__gl-icon img {
	display: none;
}

.pc-card__gl-icon--png {
	background: var(--icon-url) center / contain no-repeat;
	-webkit-mask-image: none;
	mask-image: none;
}

.pc-card__badge,
.theme-dark .badge.pc-card__badge,
.badge {
	--sk-badge-background: rgba(255, 255, 255, 0.14);
	--sk-badge-text-color: #f5f5f7;
}

body[data-color-scheme="light"] .pc-card--group-lab .badge,
body[data-color-scheme="light"] .pc-card--group-lab .pc-card__badge {
	background-color: rgba(0, 0, 0, 0.08);
	color: #1d1d1f;
}

.pc-card--group-lab .badge.live {
	--sk-badge-background: #ff3037;
	--sk-badge-text-color: #fff;
	text-transform: uppercase;
}

.pc-card--group-lab .pc-card__title {
	color: inherit;
	font-size: 19px;
	line-height: 1.25;
	margin: 0;
}

.pc-card__gl-bottom {
	flex: 1;
	padding: 1em 1.25em 1.25em;
	background-color: #343436;
	color: #f5f5f7;
	border-radius: 0 0 18px 18px;
}

body[data-color-scheme="light"] .pc-card--group-lab .pc-card__gl-bottom {
	background-color: #ebebed;
	color: #1d1d1f;
}

.pc-card__gl-date,
.pc-card__gl-time {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: inherit;
	line-height: 1.35;
}

.pc-card__gl-time {
	margin-top: 2px;
}

/* ========== Group Lab Card — Section Gallery ========== */

.pc-card--group-lab-section {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25em;
	gap: 0.5em;
	background-color: #1d1d1f;
	border: none;
	border-radius: 18px;
}

.pc-card--group-lab-section .pc-card__gl-top {
	flex: 1;
	padding: 0;
	aspect-ratio: auto;
	background: none;
	border-radius: 0;
}

.pc-card__gl-datetime {
	margin: 0.5em 0 0;
	font-size: 15px;
	font-weight: 500;
	color: rgba(245, 245, 247, 0.55);
}

body[data-color-scheme="light"] .pc-card--group-lab-section .pc-card__gl-datetime {
	color: rgba(29, 29, 31, 0.55);
}

/* ========== Profile Selector ========== */

.section-profile-selector {
	position: sticky;
	top: 0;
	z-index: 100;
}

#home .main {
	overflow: visible;
}

/* .profile-selector__topics,
.profile-selector__types {
	font-size: 14px;
	color: var(--sk-secondary-label-color, #6e6e73);
	margin: 0;
} */

/* ========== Card Grid ========== */

/* .pc-collection {
	gap: 1.5em;
} */
