/* ============================================================
   GGM — Public / Checkout / Workshop Pages
   ============================================================ */

/* ── Products Grid ─────────────────────────────────────────── */
.ggm-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 16px;
}

.ggm-product-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
	position: relative;
	transition: box-shadow .2s, transform .2s;
}
.ggm-product-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,.10);
	transform: translateY(-3px);
}
.ggm-product-card--active {
	border-color: #7c3aed;
	box-shadow: 0 0 0 2px rgba(124,58,237,.25);
}
.ggm-product-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #7c3aed;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 20px;
	white-space: nowrap;
}
.ggm-product-title {
	font-size: 18px;
	font-weight: 700;
	margin: 12px 0 8px;
	color: #1a202c;
}
.ggm-product-price {
	font-size: 38px;
	font-weight: 800;
	color: #7c3aed;
	line-height: 1;
	margin: 10px 0;
}
.ggm-product-price .currency {
	font-size: 22px;
	vertical-align: top;
	margin-top: 8px;
	display: inline-block;
}
.ggm-product-duration {
	font-size: 13px;
	color: #718096;
	margin-bottom: 20px;
}
.ggm-product-enroll-btn {
	width: 100%;
}

/* ── Checkout ───────────────────────────────────────────────── */
.ggm-checkout-wrap {
	display: flex;
	justify-content: center;
	padding: 40px 16px;
}
.ggm-checkout-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 40px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.ggm-checkout-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 24px;
	text-align: center;
	color: #1a202c;
}
.ggm-checkout-details {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
}
.ggm-checkout-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}
.ggm-checkout-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}
.ggm-checkout-field input:focus {
	outline: none;
	border-color: #7c3aed;
}
.ggm-checkout-summary {
	background: #f7f8fa;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 24px;
}
.ggm-checkout-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid #e8ecf0;
}
.ggm-checkout-row:last-child { border-bottom: none; }
.ggm-checkout-total { font-weight: 700; }
.ggm-checkout-amount { font-size: 20px; color: #7c3aed; }
.ggm-login-prompt { text-align: center; color: #555; }

/* ── Success Page ───────────────────────────────────────────── */
.ggm-success-wrap {
	display: flex;
	justify-content: center;
	padding: 60px 16px;
}
.ggm-success-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 48px 40px;
	max-width: 480px;
	width: 100%;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.ggm-success-icon {
	width: 72px;
	height: 72px;
	background: #e8faf3;
	color: #0e9e6e;
	font-size: 36px;
	line-height: 72px;
	border-radius: 50%;
	margin: 0 auto 20px;
	font-weight: 700;
}
.ggm-success-card h2 {
	font-size: 24px;
	font-weight: 800;
	color: #0e9e6e;
	margin-bottom: 10px;
}
.ggm-success-details {
	text-align: left;
	background: #f7f8fa;
	border-radius: 10px;
	padding: 14px 18px;
	margin-top: 20px;
}

/* ── Lesson Sidebar ─────────────────────────────────────────── */
.ggm-lesson-sidebar {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}
.ggm-lesson-sidebar-header {
	background: #1a202c;
	color: #fff;
	padding: 14px 18px;
	font-weight: 700;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
.ggm-lesson-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ggm-lesson-sidebar-item {
	border-bottom: 1px solid #f0f0f0;
}
.ggm-lesson-sidebar-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	text-decoration: none;
	color: #2d3748;
	font-size: 13px;
	transition: background .15s;
}
.ggm-lesson-sidebar-item a:hover,
.ggm-lesson-sidebar-item.current a {
	background: #f0ebff;
	color: #7c3aed;
}
.ggm-lesson-sidebar-item .lesson-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ── Lesson Page Tabs Layout ────────────────────────────────── */
.ggm-lesson-page-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 20px 54px;
}
.ggm-lesson-page-shell .ggm-lesson-grid {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.ggm-lesson-tabs-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ggm-lesson-back-card,
.ggm-lesson-tab {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #10465c;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(15, 71, 92, 0.04);
	transition: border-color .16s, background .16s, box-shadow .16s;
}
.ggm-lesson-back-card {
	margin-bottom: 30px;
}
.ggm-lesson-tab:hover,
.ggm-lesson-back-card:hover {
	border-color: #61d7df;
	color: #10465c;
	background: #f7fffd;
}
.ggm-lesson-tab.is-active {
	background: #edfff8;
	border-color: #28d4df;
	border-left-width: 4px;
	box-shadow: none;
}
.ggm-lesson-tab-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ggm-lesson-locked-hero {
	background: #ffffff;
	border: 2px dashed #d5dadd;
	border-radius: 12px;
	padding: 42px 24px;
	text-align: center;
	margin-bottom: 30px;
}
.ggm-lesson-locked-icon {
	font-size: 42px;
	line-height: 1;
	margin-bottom: 12px;
}
.ggm-lesson-locked-hero h1 {
	margin: 0 0 12px;
	color: #2a2a2e;
	font-size: 28px;
	font-weight: 800;
}
.ggm-lesson-locked-hero p,
.ggm-lesson-locked-card p {
	margin: 0;
	color: #666;
	font-size: 16px;
}
.ggm-lesson-locked-card {
	background: #fff;
	border: 1px solid #e7ecef;
	border-radius: 8px;
	padding: 34px 36px;
	box-shadow: 0 3px 12px rgba(15, 71, 92, 0.08);
}
.ggm-lesson-locked-card h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	color: #2a2a2e;
	font-size: 24px;
	font-weight: 800;
}
.ggm-lesson-locked-card .dashicons {
	color: #10465c;
}
.ggm-lesson-join-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 24px;
	padding: 0 20px;
	border-radius: 6px;
	background: #10465c;
	color: #fff !important;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(16, 70, 92, 0.22);
}
.ggm-lesson-join-btn:hover {
	background: #0b3546;
}

@media (max-width: 820px) {
	.ggm-lesson-page-shell .ggm-lesson-grid {
		grid-template-columns: 1fr;
	}
	.ggm-lesson-back-card {
		margin-bottom: 0;
	}
	.ggm-lesson-locked-hero h1 {
		font-size: 24px;
	}
	.ggm-lesson-locked-card {
		padding: 26px 22px;
	}
}

/* ── Video Embed ────────────────────────────────────────────── */
.ggm-video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}
.ggm-video-container iframe,
.ggm-video-container video {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
}
.ggm-video-locked {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border-radius: 12px;
	padding: 60px 30px;
	text-align: center;
	color: #fff;
}
.ggm-video-locked .lock-icon { font-size: 48px; margin-bottom: 16px; }
.ggm-video-locked h3 { font-size: 20px; margin-bottom: 8px; }
.ggm-video-locked p { color: #a0aec0; margin-bottom: 20px; }

/* ── Lesson Navigation ──────────────────────────────────────── */
.ggm-lesson-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	margin-top: 24px;
	border-top: 1px solid #e2e8f0;
}
.ggm-lesson-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #7c3aed;
	font-weight: 600;
	font-size: 14px;
	padding: 8px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: background .15s;
}
.ggm-lesson-nav a:hover { background: #f0ebff; }

/* ── Buttons ────────────────────────────────────────────────── */
.ggm-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	border: 2px solid transparent;
	transition: all .2s;
	text-align: center;
}
.ggm-btn-primary {
	background: #7c3aed;
	color: #fff;
	border-color: #7c3aed;
}
.ggm-btn-primary:hover { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.ggm-btn-outline {
	background: transparent;
	color: #7c3aed;
	border-color: #7c3aed;
}
.ggm-btn-outline:hover { background: #f0ebff; }
.ggm-btn-secondary {
	background: #fff;
	color: #7c3aed;
	border-color: #7c3aed;
	padding: 8px 16px;
	font-size: 13px;
}
.ggm-btn-secondary:hover { background: #f0ebff; }
.ggm-btn-full { width: 100%; display: block; }
.ggm-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Checkout: coupon row ──────────────────────────────────── */
.ggm-checkout-coupon-row { flex-wrap: wrap; gap: 8px; }
.ggm-checkout-coupon-row .ggm-checkout-value { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#ggm-coupon-input {
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	max-width: 160px;
}
#ggm-slot-select {
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
}

/* ── Courses Grid ───────────────────────────────────────────── */
.ggm-courses-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.ggm-courses-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.ggm-courses-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ggm-courses-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ggm-course-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15,23,42,.06);
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ggm-course-card__thumb {
	display: block;
	position: relative;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	text-decoration: none;
}
.ggm-course-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #7c3aed;
	color: #fff;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.ggm-course-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}
.ggm-course-card__title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 8px;
	color: #172033;
}
.ggm-course-card__title a {
	color: inherit;
	text-decoration: none;
}
.ggm-course-card__title a:hover {
	color: #7c3aed;
}
.ggm-course-card__desc {
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 14px;
}
.ggm-course-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.ggm-course-card__meta span {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 9px;
}
.ggm-course-card__price {
	color: #7c3aed;
	font-size: 18px;
	font-weight: 800;
	margin: auto 0 12px;
}
.ggm-course-card .ggm-btn {
	margin-top: auto;
}
@media (max-width: 900px) {
	.ggm-courses-grid,
	.ggm-courses-grid--cols-3,
	.ggm-courses-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.ggm-courses-grid,
	.ggm-courses-grid--cols-2,
	.ggm-courses-grid--cols-3,
	.ggm-courses-grid--cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Notices ────────────────────────────────────────────────── */
.ggm-notice { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.ggm-notice-success { background: #e8faf3; color: #0e9e6e; }
.ggm-notice-error   { background: #fef3f2; color: #e53e3e; }

/* ── Back to Course ─────────────────────────────────────────── */
.ggm-back-to-course {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
	margin-bottom: 16px;
}
.ggm-back-to-course:hover { color: #7c3aed; }

/* ── Course Curriculum ──────────────────────────────────────── */
.ggm-curriculum-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
@media (max-width: 900px) {
	.ggm-curriculum-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ggm-curriculum-grid { grid-template-columns: 1fr; }
}
.ggm-curriculum-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 14px;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	transition: border-color 0.2s;
	cursor: pointer;
}
.ggm-curriculum-card:hover {
	border-color: #0bbf8e;
}
.ggm-curriculum-card:hover .ggm-card-play {
	background: #0bbf8e;
	color: #fff;
}
.ggm-card-num {
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	background: #f1f5f9;
	border-radius: 4px;
	padding: 2px 6px;
	line-height: 1.4;
	flex-shrink: 0;
	align-self: flex-start;
}
.ggm-card-body {
	flex: 1;
	min-width: 0;
}
.ggm-card-title {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ggm-card-sub {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 3px;
}
.ggm-card-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #0bbf8e;
	color: #0bbf8e;
	flex-shrink: 0;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	padding-left: 2px;
}
.ggm-lesson-count {
	font-size: 13px;
	color: #718096;
	font-weight: 600;
}


/* ── Demo Mode Notice ───────────────────────────────────────── */
.ggm-demo-notice {
	background: #fffbeb;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #92400e;
	text-align: center;
}
