/* ==========================================================================
   Hacksparrow Trainers — unified dark theme
   Black background, brand orange accent, Livvic typeface company-wide.
   ========================================================================== */

.hst-dark-page {
	--bg: #0A0A0B;
	--surface: #141416;
	--surface-2: #1C1C1F;
	--accent: #FF7A00;
	--accent-dim: rgba(255, 122, 0, 0.14);
	--border: rgba(255, 255, 255, 0.09);
	--border-strong: rgba(255, 255, 255, 0.18);
	--text: #F5F5F4;
	--text-dim: #9B9B9F;
	--text-faint: #6B6B70;
	--font-display: 'Livvic', sans-serif;
	--font-body: 'Livvic', sans-serif;
	--font-mono: 'Livvic', sans-serif;
	--radius: 12px;

	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	min-height: 100vh;
	box-sizing: border-box;
	padding: 64px 24px 80px;
}
.hst-dark-page * { box-sizing: border-box; }

/* ---------- Hero ---------- */
.hst-hero { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.hst-eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hst-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.hst-hero p { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.hst-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); padding: 11px 22px; border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; transition: border-color 0.15s ease, transform 0.15s ease; }
.hst-btn:hover { border-color: var(--accent); }
.hst-btn--accent { background: var(--accent); border-color: var(--accent); color: #0A0A0B; }
.hst-btn--accent:hover { background: #ff8a1a; transform: translateY(-1px); }
.hst-btn--small { padding: 7px 14px; font-size: 12.5px; }
.hst-btn--full { width: 100%; text-align: center; }

/* ---------- Forms & notices ---------- */
.hst-form label { display: block; margin-bottom: 16px; font-size: 13.5px; color: var(--text-dim); }
.hst-form input[type="text"], .hst-form input[type="email"], .hst-form input[type="url"],
.hst-form input[type="date"], .hst-form input[type="number"], .hst-form input[type="file"],
.hst-form select, .hst-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px;
	color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.hst-form input:focus, .hst-form select:focus, .hst-form textarea:focus { outline: none; border-color: var(--accent); }
.hst-form h3 { font-family: var(--font-display); font-size: 15px; margin: 24px 0 10px; border-top: 1px solid var(--border); padding-top: 20px; }
.hst-form__hint { font-size: 12px; color: var(--text-faint); display: block; margin-top: 4px; }

.hst-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-size: 13.5px; }
.hst-notice--success { background: rgba(46, 160, 67, 0.14); color: #4FD37B; }
.hst-notice--error { background: rgba(220, 60, 50, 0.14); color: #F17A72; }

/* ---------- Auth shell (registration page) ---------- */
.hst-auth-shell { max-width: 640px; margin: 0 auto; }
.hst-auth-mark { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }
.hst-auth-mark__icon { width: 34px; height: 34px; }
.hst-auth-mark__label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.hst-auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* ---------- CAPTCHA ---------- */
.hst-captcha { margin-bottom: 16px; }
.hst-captcha__row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hst-captcha__img { border-radius: 6px; border: 1px solid var(--border); display: block; }
.hst-captcha__refresh { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-dim); width: 34px; height: 34px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.hst-captcha__refresh:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Lookup / search bar ---------- */
.hst-lookup { display: flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); max-width: 560px; margin: 28px auto 0; }
.hst-lookup input[type="text"] { flex: 1 1 auto; border: none; padding: 14px 16px; font-size: 14px; outline: none; background: transparent; color: var(--text); margin: 0; }
.hst-lookup select { border: none; border-left: 1px solid var(--border); padding: 14px 16px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; background: var(--surface-2); color: var(--text); outline: none; margin: 0; width: auto; }

.hst-empty { max-width: 440px; margin: 40px auto 0; text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.hst-loading { text-align: center; padding: 24px; color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }

/* ==========================================================================
   Public trainer cards — animated rotating gradient border
   ========================================================================== */

.hst-pgrid { max-width: 1100px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

.hst-pcard { cursor: default; }
.hst-pcard__border {
	position: relative;
	border-radius: 16px;
	padding: 2px;
	background: conic-gradient(from 0deg, var(--accent), #000000, var(--accent));
	animation: hst-rotate-border 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
	.hst-pcard__border { animation: none; }
}
@keyframes hst-rotate-border {
	to { --angle: 360deg; }
}
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hst-pcard__border { background: conic-gradient(from var(--angle), var(--accent), #000000, var(--accent)); }

.hst-pcard__inner { background: var(--surface); border-radius: 14px; padding: 24px 18px; text-align: center; }

.hst-pcard__photo-link { position: relative; display: inline-block; text-decoration: none; }
.hst-pcard__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); }
.hst-pcard__badge { position: absolute; bottom: -2px; right: -2px; width: 22px; height: 22px; color: var(--accent); background: var(--surface); border-radius: 50%; }

.hst-pcard__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 12px; }
.hst-pcard__specialty { color: var(--accent); font-size: 12.5px; margin-top: 4px; }
.hst-pcard__meta { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.hst-pcard__more { margin-top: 14px; }

/* ---------- Single trainer detail page ---------- */
.hst-trainer-detail { max-width: 600px; margin: 0 auto; text-align: center; }
.hst-trainer-detail__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin-bottom: 20px; }
.hst-trainer-detail h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 6px; }
.hst-trainer-detail__specialty { color: var(--accent); font-size: 14px; margin-bottom: 4px; }
.hst-trainer-detail__meta { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.hst-trainer-detail__bio { color: var(--text); font-size: 14.5px; line-height: 1.7; text-align: left; }
.hst-trainer-detail__social { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hst-trainer-detail__social a { color: var(--accent); text-decoration: none; font-size: 13px; border: 1px solid var(--border-strong); padding: 8px 14px; border-radius: 20px; }

/* ==========================================================================
   wp-admin components (Cards, Analytics, popup)
   ========================================================================== */

.hst-admin-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.hst-admin-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 16px; cursor: pointer; transition: box-shadow 0.15s ease; }
.hst-admin-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.hst-admin-card__header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.hst-admin-card__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.hst-admin-card__name { font-weight: 700; }
.hst-admin-card__specialty { font-size: 12px; color: #FF7A00; }
.hst-admin-card__package { font-size: 11px; color: #777; text-transform: uppercase; }
.hst-admin-card__empty { font-size: 12px; color: #999; }
.hst-progress-row { margin-bottom: 10px; }
.hst-progress-row__label { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.hst-progress-bar { background: #eee; border-radius: 10px; height: 8px; overflow: hidden; }
.hst-progress-bar__fill { background: #FF7A00; height: 100%; }
.hst-progress-row__value { font-size: 11px; color: #777; margin-top: 2px; }

.hst-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.hst-popup { background: #fff; border-radius: 12px; padding: 30px; max-width: 480px; width: 90%; position: relative; }
.hst-popup__close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 24px; cursor: pointer; }
.hst-popup-row { margin-bottom: 10px; font-size: 14px; }

.hst-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.hst-stat-box { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 18px; }
.hst-stat-box--accent { border-color: #FF7A00; background: #fff8f0; }
.hst-stat-box__number { font-size: 28px; font-weight: 700; }
.hst-stat-box__label { font-size: 12px; color: #777; margin-top: 4px; }

@media (max-width: 480px) {
	.hst-dark-page { padding: 40px 16px 56px; }
	.hst-lookup { flex-direction: column; }
	.hst-lookup select { border-left: none; border-top: 1px solid var(--border); width: 100%; }
}
