/*
Theme Name: Vibecode
Theme URI: https://aymanelash.cloud
Author: Ayman
Description: Minimal members-only theme for the Vibecoding course — landing page with login and a protected page of stacked video lessons.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: vibecode
*/

:root {
	--bg: #0b0d17;
	--bg-soft: #12152a;
	--card: #171a30;
	--line: #262a47;
	--text: #e7e9f5;
	--muted: #9aa0c0;
	--accent: #7c5cff;
	--accent-2: #19d3c5;
	--danger: #ff6b6b;
	--radius: 16px;
	--maxw: 1040px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- Top bar ---- */
.site-header {
	border-bottom: 1px solid var(--line);
	background: rgba(11,13,23,.8);
	backdrop-filter: blur(8px);
	position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	height: 64px;
}
.brand {
	font-weight: 800; font-size: 20px; color: var(--text);
	display: flex; align-items: center; gap: 10px;
}
.brand .dot {
	width: 12px; height: 12px; border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 16px var(--accent);
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ---- Buttons ---- */
.btn {
	display: inline-block; cursor: pointer;
	padding: 12px 22px; border-radius: 999px; border: 0;
	font-weight: 700; font-size: 15px; text-align: center;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 8px 24px rgba(124,92,255,.35); }
.btn-ghost {
	background: transparent; color: var(--text);
	border: 1px solid var(--line);
}
.btn-block { display: block; width: 100%; }

/* ---- Hero / landing ---- */
.hero { padding: 80px 0 40px; text-align: center; }
.hero .eyebrow {
	display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent-2); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
	margin-bottom: 22px;
}
.hero h1 {
	font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px;
	background: linear-gradient(120deg, #fff, #b9b3ff 60%, var(--accent-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 14px; }
.built-badge {
	display: inline-block; margin: 18px auto 0; font-size: 14px; font-weight: 500;
	color: var(--accent-2); background: rgba(25,211,197,.08);
	border: 1px solid rgba(25,211,197,.3); padding: 8px 16px; border-radius: 999px;
}

/* ---- Login card ---- */
.auth-grid {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start;
	padding: 30px 0 90px;
}
@media (max-width: 820px) { .auth-grid { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; gap: 12px; padding: 10px 0; color: var(--text); font-size: 16px; }
.feature-list li span.ic {
	flex: 0 0 26px; height: 26px; border-radius: 8px;
	background: rgba(124,92,255,.15); color: var(--accent-2);
	display: grid; place-items: center; font-size: 14px;
}

.card {
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 32px;
	box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.card h2 { margin: 0 0 6px; font-size: 24px; }
.card .sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.field input[type=text],
.field input[type=password],
.field input[type=email] {
	width: 100%; padding: 13px 15px; border-radius: 10px;
	background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
	font-size: 15px; outline: none;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }

.remember { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.alert {
	border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px;
	border: 1px solid;
}
.alert-error { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.4); color: #ffd2d2; }
.alert-info  { background: rgba(25,211,197,.1); border-color: rgba(25,211,197,.35); color: #c7fff8; }

.muted-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; }

/* ---- wp_login_form() output ---- */
#vc-loginform p { margin: 0 0 16px; }
#vc-loginform label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
#vc-loginform input[type=text],
#vc-loginform input[type=password] {
	width: 100%; padding: 13px 15px; border-radius: 10px;
	background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
	font-size: 15px; outline: none;
}
#vc-loginform input[type=text]:focus,
#vc-loginform input[type=password]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
#vc-loginform .login-remember label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
#vc-loginform .login-remember input { width: auto; }
#vc-loginform .login-submit { margin-bottom: 0; }
#vc-loginform #wp-submit {
	display: block; width: 100%; cursor: pointer;
	padding: 13px 22px; border-radius: 999px; border: 0;
	font-weight: 700; font-size: 16px; color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	transition: transform .15s ease, box-shadow .15s ease;
}
#vc-loginform #wp-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,92,255,.35); }

/* ---- Course / videos page ---- */
.course-head { padding: 56px 0 18px; }
.course-head h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 8px; }
.course-head p { color: var(--muted); margin: 0; font-size: 17px; }

.lessons { padding: 16px 0 90px; display: flex; flex-direction: column; gap: 40px; }
.lesson {
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
}
.lesson .lesson-body { padding: 22px 26px 26px; }
.lesson .lesson-num {
	font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
}
.lesson h3 { margin: 4px 0 10px; font-size: 22px; }
.lesson .desc { color: var(--muted); }
.lesson video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; }

.empty {
	text-align: center; color: var(--muted); padding: 60px 20px;
	border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---- Footer ---- */
.site-footer {
	border-top: 1px solid var(--line); color: var(--muted);
	padding: 26px 0; font-size: 14px; text-align: center;
}
