/* Golf Video Lessons — front-end styles.
   Colors/fonts come from CSS variables printed by the plugin (Settings page)
   and can be overridden per-widget from Elementor's Style tab. */

.gvl-lessons-grid {
	display: grid;
	grid-template-columns: repeat(var(--gvl-columns, 3), 1fr);
	gap: var(--gvl-grid-row-gap, 24px) var(--gvl-grid-col-gap, 24px);
	margin: 24px 0;
}
/* Note: --gvl-columns is set responsively per instance, either by:
   - the Elementor widget's own responsive "Columns" control (scoped to
     {{WRAPPER}} .gvl-lessons-grid), or
   - a small per-instance <style id="gvl-grid-xxxx"> block printed by
     GVL_Shortcodes::render_lessons_grid() for shortcode/manual usage.
   grid-template-columns itself only lives here so there's a single
   source of truth and nothing fights over specificity. */
@media (max-width: 767px) {
	/* Safety net if a grid ever renders with no columns var set at all
	   (e.g. custom code calling the class directly): don't let a stray
	   3-4 column grid squeeze onto a phone screen. */
	.gvl-lessons-grid:not([style*="--gvl-columns"]):not([id^="gvl-grid-"]) {
		grid-template-columns: 1fr;
	}
}

.gvl-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}
.gvl-filter-btn {
	background: transparent;
	border: 1px solid var(--gvl-primary, #0b6b3a);
	color: var(--gvl-primary, #0b6b3a);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.gvl-filter-btn:hover { background: var(--gvl-secondary, #eef7f1); }
.gvl-filter-btn.is-active {
	background: var(--gvl-primary, #0b6b3a);
	color: #fff;
}
.gvl-lesson-card.gvl-is-hidden { display: none !important; }

.gvl-lesson-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.gvl-lesson-category-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--gvl-secondary, #eef7f1);
	color: var(--gvl-primary, #0b6b3a);
}

.gvl-lesson-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: var(--gvl-radius, 6px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.gvl-lesson-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.gvl-lesson-thumb img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.gvl-lesson-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.gvl-lesson-title, .gvl-lesson-description h2, .gvl-lesson-description h3 {
	font-family: var(--gvl-heading-font, inherit);
}
.gvl-lesson-title { font-size: 18px; margin: 0; }
.gvl-lesson-title a { color: var(--gvl-text, #222); text-decoration: none; }
.gvl-lesson-title a:hover { color: var(--gvl-primary); }

.gvl-lesson-excerpt { color: #666; font-size: var(--gvl-body-size, 15px); flex: 1; }

.gvl-lesson-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.gvl-price { font-weight: 700; color: var(--gvl-primary); }
.gvl-price-large { font-size: 26px; display: block; margin-bottom: 10px; }

.gvl-btn {
	display: inline-block;
	background: var(--gvl-btn-bg, #0b6b3a);
	color: var(--gvl-btn-text, #fff) !important;
	padding: 10px 18px;
	border: none;
	border-radius: var(--gvl-radius, 6px);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
}
.gvl-btn:hover { opacity: .9; color: var(--gvl-btn-text, #fff); }
.gvl-btn:disabled { opacity: .6; cursor: not-allowed; }
.gvl-btn-large { padding: 14px 28px; font-size: 16px; }
.gvl-btn-outline {
	background: transparent;
	color: var(--gvl-primary) !important;
	border: 2px solid var(--gvl-primary);
}

.gvl-single-lesson {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px;
	align-items: start;
	margin: 24px 0;
}
@media (max-width: 782px) { .gvl-single-lesson { grid-template-columns: 1fr; } }
.gvl-single-lesson-media video, .gvl-single-lesson-media img { width: 100%; border-radius: var(--gvl-radius, 6px); }
.gvl-lesson-description { color: var(--gvl-text, #222); font-size: var(--gvl-body-size, 16px); line-height: 1.7; }
.gvl-secure-note { color: #888; font-size: 13px; margin-top: 8px; }

.gvl-notice {
	padding: 14px 16px;
	border-radius: var(--gvl-radius, 6px);
	background: var(--gvl-secondary, #eef7f1);
	margin: 14px 0;
}

.gvl-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
	color: #444;
}
.gvl-status-pending { background: #fdf3d3; color: #8a6d00; }
.gvl-status-paid { background: #dbeeff; color: #0b5faa; }
.gvl-status-awaiting_analysis { background: #ffe6cc; color: #b25900; }
.gvl-status-completed { background: #d9f2e3; color: #0b6b3a; }
.gvl-status-cancelled { background: #f3d6d6; color: #a30000; }

.gvl-orders-list { display: flex; flex-direction: column; gap: 18px; margin: 20px 0; }
.gvl-order-card {
	border: 1px solid #e5e5e5;
	border-radius: var(--gvl-radius, 6px);
	padding: 18px 20px;
	background: #fff;
}
.gvl-order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.gvl-order-header h3 { margin: 0; font-family: var(--gvl-heading-font, inherit); }

.gvl-upload-form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.gvl-upload-form textarea { width: 100%; padding: 8px; border-radius: 4px; border: 1px solid #ccc; font-family: inherit; }
.gvl-upload-progress { background: #eee; border-radius: 6px; overflow: hidden; height: 8px; }
.gvl-upload-progress-bar { height: 100%; width: 0%; background: var(--gvl-primary); transition: width .2s; }
.gvl-upload-message { font-size: 14px; }
.gvl-upload-message.gvl-success { color: #0b6b3a; }
.gvl-upload-message.gvl-error { color: #a30000; }

.gvl-analysis-note { background: var(--gvl-secondary); padding: 10px 14px; border-radius: 6px; margin-top: 10px; }
.gvl-your-video-toggle { margin-top: 12px; }
.gvl-muted { color: #777; }

.gvl-auth-wrap {
	max-width: 420px;
	margin: 24px auto;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: var(--gvl-radius, 6px);
	padding: 28px 30px;
}
.gvl-auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.gvl-auth-tab {
	padding: 10px 4px;
	margin-right: 16px;
	color: #888;
	text-decoration: none;
	font-weight: 600;
	border-bottom: 2px solid transparent;
}
.gvl-auth-tab.is-active { color: var(--gvl-primary, #0b6b3a); border-bottom-color: var(--gvl-primary, #0b6b3a); }
.gvl-auth-form { display: flex; flex-direction: column; gap: 14px; }
.gvl-auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #333; }
.gvl-auth-form input[type="text"],
.gvl-auth-form input[type="email"],
.gvl-auth-form input[type="password"] {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 400;
}
.gvl-auth-form button { margin-top: 6px; }
.gvl-notice-error { background: #fbe4e4; color: #a30000; }
.gvl-auth-loggedin { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------------- Purchased lesson video (order cards) ---------------- */
.gvl-purchased-lesson-video { margin: 12px 0 18px; }
.gvl-purchased-lesson-video-label {
	font-size: 12px;
	font-weight: 600;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin: 0 0 8px;
}
.gvl-purchased-lesson-video video { border-radius: var(--gvl-radius, 6px); background: #000; }

/* ---------------- Multi-video gallery (order cards, work history) ---------------- */
.gvl-video-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	margin: 12px 0;
}
.gvl-video-gallery-compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gvl-video-gallery-item { display: flex; flex-direction: column; gap: 6px; }
.gvl-video-gallery-item video { width: 100%; border-radius: var(--gvl-radius, 6px); background: #000; }
.gvl-video-gallery-label { font-size: 12px; font-weight: 600; color: #777; text-transform: uppercase; letter-spacing: .03em; }

/* ---------------- Header login button / account switcher ---------------- */
.gvl-header-login-btn { white-space: nowrap; }
.gvl-header-account {
	display: flex;
	align-items: center;
	gap: 0;
	position: relative;
}
.gvl-header-account-link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}
.gvl-header-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.gvl-header-account-name { font-size: 14px; }

/* Log Out is only revealed on hover/focus of the account switcher - the
   name + avatar stay visible at all times. Animated with max-width instead
   of display:none so it doesn't jump-shift the header layout. */
.gvl-header-logout {
	font-size: 13px;
	color: #888;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	max-width: 0;
	opacity: 0;
	margin-left: 0;
	display: inline-block;
	transition: max-width .18s ease, opacity .18s ease, margin-left .18s ease;
}
.gvl-header-account:hover .gvl-header-logout,
.gvl-header-account:focus-within .gvl-header-logout {
	max-width: 100px;
	opacity: 1;
	margin-left: 10px;
}
.gvl-header-logout:hover,
.gvl-header-logout:focus { color: var(--gvl-primary, #0b6b3a); }

/* ---------------- Account dashboard ---------------- */
.gvl-dashboard { margin: 24px 0; }
.gvl-dashboard-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.gvl-dashboard-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.gvl-dashboard-greeting { margin: 0 0 4px; font-family: var(--gvl-heading-font, inherit); }

.gvl-dashboard-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 24px;
}
.gvl-dashboard-tab {
	padding: 10px 16px;
	color: #777;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.gvl-dashboard-tab:hover { color: var(--gvl-primary, #0b6b3a); }
.gvl-dashboard-tab.is-active { color: var(--gvl-primary, #0b6b3a); border-bottom-color: var(--gvl-primary, #0b6b3a); }

.gvl-dashboard-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.gvl-dashboard-stat {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: var(--gvl-radius, 6px);
	padding: 18px 22px;
	min-width: 150px;
}
.gvl-dashboard-stat strong { display: block; font-size: 26px; line-height: 1; margin-bottom: 6px; color: var(--gvl-primary, #0b6b3a); }
.gvl-dashboard-stat span { color: #666; font-size: 13px; }

.gvl-history-list { display: flex; flex-direction: column; gap: 18px; }
.gvl-history-item { border: 1px solid #e5e5e5; border-radius: var(--gvl-radius, 6px); padding: 16px 20px; background: #fff; }
.gvl-history-item-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gvl-history-item-header h4 { margin: 0; font-family: var(--gvl-heading-font, inherit); }

.gvl-profile-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; background: #fff; border: 1px solid #e5e5e5; border-radius: var(--gvl-radius, 6px); padding: 24px; }
.gvl-profile-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #333; }
.gvl-profile-form input[type="text"],
.gvl-profile-form input[type="email"],
.gvl-profile-form input[type="tel"] {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 400;
}
.gvl-profile-avatar-field { display: flex; align-items: center; gap: 16px; }
.gvl-profile-avatar-field img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 1px solid #e5e5e5; }
.gvl-notice-success { background: #d9f2e3; color: #0b6b3a; }

.gvl-checkout-return { text-align: center; padding: 40px 0; }
.gvl-spinner {
	width: 32px; height: 32px; margin: 16px auto 0;
	border: 4px solid #eee; border-top-color: var(--gvl-primary, #0b6b3a);
	border-radius: 50%; animation: gvl-spin 0.8s linear infinite;
}
@keyframes gvl-spin { to { transform: rotate(360deg); } }
