/**
 * Artma Lobby styles. All rules scoped under .artma-lobby-* prefixes.
 * Design system: white/airy gallery, Georgia serif headings, thin black bars.
 */

.artma-lobby {
	max-width: 100%;
	--artma-text: #1a1a1a;
	--artma-muted: #8a8a86;
	--artma-border: #ececea;
	--artma-radius: 10px;
	--artma-serif: Georgia, "Times New Roman", "Times", serif;
	--artma-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--artma-text);
	font-family: var(--artma-sans);
	box-sizing: border-box;
}

.artma-lobby *,
.artma-lobby *::before,
.artma-lobby *::after {
	box-sizing: border-box;
}

.artma-lobby-section {
	margin: 0 0 44px;
}

.artma-lobby-section-title,
.artma-lobby-shelf-title {
	font-family: var(--artma-serif);
	font-weight: 400;
	color: var(--artma-text);
	margin: 0 0 18px;
	letter-spacing: 0.01em;
}

.artma-lobby-section-title {
	font-size: 24px;
}

.artma-lobby-shelf-title {
	font-size: 19px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Login prompt */
.artma-lobby-login {
	padding: 18px 20px;
	border: 1px solid var(--artma-border);
	border-radius: var(--artma-radius);
	background: #fff;
	color: var(--artma-muted);
}
.artma-lobby-login a {
	color: var(--artma-text);
	text-decoration: underline;
}

/* ---------------- Hero ---------------- */
.artma-lobby-hero {
	background: #fff;
	padding: 72px 24px;
	text-align: center;
	border-bottom: 1px solid var(--artma-border);
	background-size: cover;
	background-position: center;
}
.artma-lobby-hero.has-image {
	padding: 110px 24px;
}
.artma-lobby-hero-inner {
	max-width: 780px;
	margin: 0 auto;
}
.artma-lobby-hero-title {
	font-family: var(--artma-serif);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
	margin: 0;
	letter-spacing: 0.02em;
}
.artma-lobby-hero-subtitle {
	color: var(--artma-muted);
	font-size: 17px;
	margin: 16px 0 0;
}

.artma-lobby-hero-image-only {
	padding: 0;
	border-bottom: none;
	background: transparent;
}
.artma-lobby-hero-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

/* ---------------- Live banner ---------------- */
.artma-lobby-live-banner {
	background: #141414;
	color: #fff;
	border-radius: 14px;
	padding: 26px 30px;
	display: flex;
	flex-wrap: wrap;
	max-width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 44px;
}
.artma-lobby-live-top {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: #d7d7d3;
	text-transform: uppercase;
}
.artma-lobby-live-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff3b30;
	box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
	animation: artma-live-pulse 1.8s infinite;
}
@keyframes artma-live-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); }
	70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
.artma-lobby-live-topic {
	font-family: var(--artma-serif);
	font-weight: 400;
	font-size: 24px;
	margin: 12px 0 6px;
	color: #fff;
}
.artma-lobby-live-sub {
	margin: 0;
	color: #b3b3af;
	font-size: 14px;
}
.artma-lobby-countdown {
	margin: 10px 0 0;
	font-size: 13px;
	letter-spacing: 0.05em;
	color: #f0c14b;
	min-height: 1em;
}
.artma-lobby-live-cta {
	flex-shrink: 0;
}
.artma-lobby-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.artma-lobby-btn:hover {
	opacity: 0.88;
}
.artma-lobby-btn-live {
	background: #ff3b30;
	color: #fff;
}
.artma-lobby-btn-cal {
	background: #fff;
	color: #141414;
}

/* ---------------- Grids ---------------- */
.artma-lobby-grid {
	display: grid;
	gap: 22px;
}
.artma-lobby-grid-courses {
	grid-template-columns: repeat(4, 1fr);
}
.artma-lobby-grid-library {
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
	.artma-lobby-grid-courses,
	.artma-lobby-grid-library {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.artma-lobby-grid-courses,
	.artma-lobby-grid-library {
		grid-template-columns: 1fr;
	}
}

/* ---------------- Cards ---------------- */
.artma-lobby-card {
	display: block;
	text-decoration: none;
	color: var(--artma-text);
	background: #fff;
	border: 1px solid var(--artma-border);
	border-radius: var(--artma-radius);
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.artma-lobby-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.artma-lobby-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f6f6f4;
	overflow: hidden;
}
.artma-lobby-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.artma-lobby-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	text-align: center;
}
.artma-lobby-thumb-fallback-text {
	font-family: var(--artma-serif);
	font-size: 15px;
	line-height: 1.3;
	max-height: 100%;
	overflow: hidden;
}
.artma-lobby-thumb-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f0;
}
.artma-lobby-thumb-initial span {
	font-family: var(--artma-serif);
	font-size: 44px;
	color: #c9c9c4;
}
.artma-lobby-card-body {
	padding: 12px 14px 16px;
}
.artma-lobby-card-title {
	font-family: var(--artma-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin: 6px 0 6px;
	color: var(--artma-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.artma-lobby-card-meta,
.artma-lobby-card-date {
	display: block;
	font-size: 12.5px;
	color: var(--artma-muted);
	margin-top: 2px;
}

/* Chip */
.artma-lobby-chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 3px 9px;
	border-radius: 999px;
	margin-bottom: 2px;
}

/* Progress bar (thin, black) */
.artma-lobby-progress {
	height: 3px;
	background: #ececea;
	border-radius: 2px;
	overflow: hidden;
	margin: 8px 0 6px;
}
.artma-lobby-progress-fill {
	display: block;
	height: 100%;
	background: #000;
}
.artma-lobby-card-progress .artma-lobby-progress {
	margin: 0;
}
.artma-lobby-tag-complete {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #1a1a1a;
	border: 1px solid #d7d7d3;
	border-radius: 999px;
	padding: 3px 10px;
	margin-top: 8px;
}

/* Locked overlay (preview) */
.artma-lobby-card-locked {
	position: relative;
}
.artma-lobby-lock {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: rgba(20, 20, 20, 0.72);
	color: #fff;
	border-radius: 999px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

/* ---------------- Shelves ---------------- */
.artma-lobby-shelf-section {
	margin-bottom: 40px;
}
.artma-lobby-shelf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.artma-lobby-viewall {
	font-size: 13px;
	color: var(--artma-muted);
	text-decoration: none;
	white-space: nowrap;
}
.artma-lobby-viewall:hover {
	color: var(--artma-text);
}
.artma-lobby-shelf {
	position: relative;
}
.artma-lobby-shelf-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 2px 10px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.artma-lobby-shelf-track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}
.artma-lobby-shelf-track > .artma-lobby-card {
	flex: 0 0 220px;
	width: 220px;
	scroll-snap-align: start;
}
.artma-lobby-arrow {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--artma-border);
	background: rgba(255, 255, 255, 0.94);
	color: #1a1a1a;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
	z-index: 3;
}
.artma-lobby-shelf:hover .artma-lobby-arrow {
	display: flex;
}
.artma-lobby-arrow-left { left: -8px; }
.artma-lobby-arrow-right { right: -8px; }
.artma-lobby-arrow[hidden] { display: none !important; }

.artma-lobby-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ---------------- Library ---------------- */
.artma-lobby-library-head {
	text-align: center;
	margin-bottom: 28px;
}
.artma-lobby-library-title {
	font-family: var(--artma-serif);
	font-weight: 400;
	font-size: clamp(30px, 4.5vw, 44px);
	margin: 0;
	letter-spacing: 0.02em;
}
.artma-lobby-library-sub {
	color: var(--artma-muted);
	font-size: 15px;
	margin: 12px 0 0;
}
.artma-lobby-library-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.artma-lobby-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.artma-lobby-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--artma-sans);
	font-size: 13px;
	font-weight: 500;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid var(--artma-border);
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.artma-lobby-pill:hover {
	border-color: #c9c9c4;
}
.artma-lobby-pill.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}
.artma-lobby-pill.is-active .artma-lobby-pill-count {
	color: #d7d7d3;
}
.artma-lobby-pill-count {
	color: var(--artma-muted);
	font-size: 12px;
}
.artma-lobby-search-input {
	font-family: var(--artma-sans);
	font-size: 14px;
	padding: 9px 14px;
	border: 1px solid var(--artma-border);
	border-radius: 999px;
	min-width: 220px;
	background: #fff;
	color: #1a1a1a;
	outline: none;
}
.artma-lobby-search-input:focus {
	border-color: #111;
}
.artma-lobby-sentinel {
	height: 1px;
	width: 100%;
}
.artma-lobby-loading {
	text-align: center;
	color: var(--artma-muted);
	font-size: 13px;
	padding: 18px 0;
}
