/*
 * BOMERANG Courses — student area styles.
 * Tokens from the design system; Hebrew fonts: Leon (headings), Polin (text and buttons).
 * Font files (licensed) go in assets/fonts/ — see assets/fonts/README.txt.
 * If the site already loads fonts named "Leon" / "Polin" (e.g. Elementor custom fonts) those are used first.
 */

@font-face { font-family: "BC Leon"; src: url("../fonts/leon-bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "BC Leon"; src: url("../fonts/leon-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BC Polin"; src: url("../fonts/polin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BC Polin"; src: url("../fonts/polin-bold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

.bc {
	--bc-background: #f8fbfc;
	--bc-foreground: #020817;
	--bc-muted: #f1f5f9;
	--bc-muted-foreground: #5e6d82;
	--bc-border: #e2e8f0;
	--bc-card: #ffffff;
	--bc-primary: #5172f6;
	--bc-primary-foreground: #ffffff;
	--bc-purple: #8548ef;
	--bc-ember: #f67331;
	--bc-dark: #131520;
	--bc-success: #16a34a;
	--bc-font-display: "Leon", "BC Leon", "Arial Hebrew", Arial, sans-serif;
	--bc-font-body: "Polin", "BC Polin", "Arial Hebrew", Arial, sans-serif;
	--bc-radius-sm: 6px;
	--bc-radius-lg: 16px;
	--bc-radius-full: 9999px;
	--bc-shadow-card: 0 0 0 1px rgba(0, 0, 0, .05), 0 25px 50px -12px rgba(0, 0, 0, .25);
	--bc-shadow-soft: 0 0 0 1px rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(2, 8, 23, .18);

	direction: rtl;
	text-align: right;
	font-family: var(--bc-font-body);
	color: var(--bc-foreground);
	font-size: 16px;
	line-height: 1.65;
	max-width: 1280px;
	margin-inline: auto;
}
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }

/* Typography */
.bc .bc-h1, .bc .bc-h2, .bc .bc-h3, .bc .bc-module-title { font-family: var(--bc-font-display); font-weight: 800; color: var(--bc-foreground); margin: 0 0 12px; }
.bc .bc-h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.9px; }
.bc .bc-h2 { font-size: 30px; line-height: 1.2; }
.bc .bc-h3 { font-size: 22px; line-height: 1.3; }
.bc .bc-lead { font-size: 20px; color: var(--bc-muted-foreground); margin: 0; }
.bc .bc-muted { color: var(--bc-muted-foreground); font-size: 14px; }
.bc a { color: var(--bc-primary); }
.bc .bc-h3 a { color: inherit; text-decoration: none; }
.bc .bc-h3 a:hover { color: var(--bc-primary); }

/* Buttons and badges */
.bc .bc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--bc-font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
	background: var(--bc-primary); color: var(--bc-primary-foreground);
	border: 1px solid var(--bc-primary); border-radius: var(--bc-radius-full);
	padding: 12px 30px; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bc .bc-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(81, 114, 246, .6); color: #fff; }
.bc .bc-btn:focus-visible { outline: 3px solid rgba(81, 114, 246, .35); outline-offset: 2px; }
.bc .bc-btn--secondary { background: #fff; color: var(--bc-foreground); border-color: var(--bc-border); font-weight: 500; }
.bc .bc-btn--secondary:hover { color: var(--bc-foreground); box-shadow: var(--bc-shadow-soft); }
.bc .bc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.bc .bc-badge {
	display: inline-flex; font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
	padding: 3px 11px; border-radius: var(--bc-radius-full); background: #000; color: #fff; margin-bottom: 8px;
}
.bc .bc-badge--ember { background: var(--bc-ember); }

/* Cards and grid */
.bc .bc-card { background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); box-shadow: var(--bc-shadow-soft); padding: 20px; }
.bc .bc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.bc .bc-course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.bc .bc-course-card:hover { box-shadow: var(--bc-shadow-card); transform: translateY(-2px); }
.bc .bc-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc .bc-card-body .bc-actions { margin-top: auto; padding-top: 8px; }
.bc .bc-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef1ff, #f5f5f7); overflow: hidden; }
.bc .bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc .bc-thumb--empty { background: linear-gradient(135deg, var(--bc-primary), var(--bc-purple)); opacity: .9; }

/* Progress */
.bc .bc-progress { display: flex; align-items: center; gap: 12px; }
.bc .bc-progress-track { flex: 1; height: 8px; background: var(--bc-muted); border-radius: var(--bc-radius-full); overflow: hidden; }
.bc .bc-progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--bc-purple), var(--bc-primary)); border-radius: inherit; }
.bc .bc-progress-label { font-size: 14px; color: var(--bc-muted-foreground); white-space: nowrap; font-weight: 600; }

/* Dashboard */
.bc-dashboard .bc-dash-head { background: linear-gradient(#eef1ff, #f5f5f7); border-radius: var(--bc-radius-lg); padding: 48px 32px; margin-bottom: 32px; }
.bc-dashboard .bc-more { margin-top: 64px; padding: 48px 32px; background: var(--bc-muted); border-radius: var(--bc-radius-lg); }
.bc-dashboard .bc-account { margin-top: 32px; font-size: 14px; color: var(--bc-muted-foreground); }
.bc-login { max-width: 440px; margin: 48px auto; }
.bc-login input[type="text"], .bc-login input[type="password"] { width: 100%; padding: 12px 16px; border: 1px solid var(--bc-border); border-radius: var(--bc-radius-sm); font: inherit; }
.bc-login input[type="submit"] { background: var(--bc-primary); color: #fff; border: 0; border-radius: var(--bc-radius-full); padding: 12px 30px; font: inherit; font-weight: 700; cursor: pointer; }

/* Course page */
.bc-course .bc-course-head { margin-bottom: 40px; }
.bc .bc-outline { margin-bottom: 48px; }
.bc .bc-module { margin-bottom: 24px; }
.bc .bc-module-title { font-size: 18px; color: var(--bc-muted-foreground); font-weight: 700; }
.bc .bc-lessons { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); background: #fff; overflow: hidden; }
.bc .bc-lesson { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--bc-border); }
.bc .bc-lesson:first-child { border-top: 0; }
.bc .bc-lesson a { color: var(--bc-foreground); text-decoration: none; font-weight: 600; }
.bc .bc-lesson a:hover { color: var(--bc-primary); }
.bc .bc-lesson small { margin-inline-start: auto; }
.bc .bc-lesson.is-current { background: #eef1ff; }
.bc .bc-lesson-icon { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid var(--bc-border); position: relative; }
.bc .bc-lesson.is-open .bc-lesson-icon { border-color: var(--bc-primary); }
.bc .bc-lesson.is-done .bc-lesson-icon { background: var(--bc-success); border-color: var(--bc-success); }
.bc .bc-lesson.is-done .bc-lesson-icon::after { content: ""; position: absolute; inset: 4px 6px 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bc .bc-lesson.is-locked { color: var(--bc-muted-foreground); }
.bc .bc-lesson.is-locked .bc-lesson-icon { background: var(--bc-muted); }
.bc .bc-bonus.is-locked { opacity: .7; }
.bc .bc-bonuses { margin-bottom: 48px; }

/* Lesson page */
.bc-item { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.bc-item .bc-crumbs { margin: 0 0 12px; font-size: 14px; }
.bc-item .bc-crumbs a { color: var(--bc-muted-foreground); text-decoration: none; }
.bc .bc-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bc-radius-lg); overflow: hidden; background: var(--bc-dark); box-shadow: var(--bc-shadow-card); margin-bottom: 24px; }
.bc .bc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc .bc-content { margin-bottom: 24px; }
.bc .bc-files { background: var(--bc-muted); border-radius: var(--bc-radius-lg); padding: 20px; margin: 24px 0; }
.bc .bc-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc .bc-file-list a { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius-sm); padding: 12px 16px; text-decoration: none; color: var(--bc-foreground); }
.bc .bc-file-list a:hover { border-color: var(--bc-primary); }
.bc .bc-file-name { font-weight: 600; }
.bc .bc-lesson-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--bc-border); }
.bc .bc-lesson-footer form { margin: 0; }
.bc .bc-pager { display: flex; gap: 12px; flex-wrap: wrap; }
.bc .bc-done-label { color: var(--bc-success); font-weight: 700; }
.bc-item-side { position: sticky; top: 24px; background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: 16px; box-shadow: var(--bc-shadow-soft); }
.bc-item-side summary { font-family: var(--bc-font-display); font-weight: 800; font-size: 18px; cursor: pointer; margin-bottom: 12px; }
.bc-item-side .bc-lessons { border: 0; }
.bc-item-side .bc-lesson { padding: 10px 4px; font-size: 15px; }

/* Locked screen */
.bc-locked { max-width: 560px; margin: 48px auto; text-align: center; padding: 48px 32px; }
.bc-locked .bc-actions { justify-content: center; }
.bc-locked .bc-lock-icon { display: inline-block; width: 56px; height: 56px; border-radius: 50%; background: #eef1ff; margin-bottom: 16px; position: relative; }
.bc-locked .bc-lock-icon::before { content: ""; position: absolute; left: 50%; top: 14px; width: 16px; height: 12px; margin-left: -8px; border: 3px solid var(--bc-primary); border-bottom: 0; border-radius: 9px 9px 0 0; }
.bc-locked .bc-lock-icon::after { content: ""; position: absolute; left: 50%; top: 25px; width: 24px; height: 17px; margin-left: -12px; background: var(--bc-primary); border-radius: 4px; }

/* Mobile */
@media (max-width: 900px) {
	.bc-item { grid-template-columns: 1fr; }
	.bc-item-side { position: static; }
	.bc .bc-h1 { font-size: 30px; }
	.bc .bc-h2 { font-size: 24px; }
	.bc-dashboard .bc-dash-head, .bc-dashboard .bc-more { padding: 32px 20px; }
	.bc .bc-lesson-footer { flex-direction: column; align-items: stretch; }
	.bc .bc-lesson-footer .bc-btn { width: 100%; }
}
