/* events.hiveminds.io — additions on top of hive_minds_master.min.css.
   Reuse the HiveMinds theme first; colors below are the HiveMinds palette
   (_master_colors.less). The hero follows raffles.hiveminds.io. */

:root {
	--ev-ink: #0d0d0d;
	--ev-text: #212121;
	--ev-muted: #5c5c66;
	--ev-surface: #ffffff;
	--ev-surface-alt: #F6F4F5;
	--ev-border: rgba(13, 13, 13, .08);
	--ev-primary: #FF5E4E;
	--ev-primary-2: #FF4461;
	--ev-primary-3: #FF366B;
	--ev-gold: #e5ae6a;
}
body.darkmode {
	--ev-text: #f2f2f4;
	--ev-muted: #a9a9b3;
	--ev-surface: #141416;
	--ev-surface-alt: #1c1c20;
	--ev-border: rgba(255, 255, 255, .1);
}

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; }

.ev-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Homepage: the hero sits under the fixed nav, edge to edge ─────────────── */
body.ev-home .hive-minds-main { padding-top: 0; background: var(--ev-surface); }

.ev-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(92vh, 860px);
	background: var(--ev-ink);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.ev-hero-slides { position: absolute; inset: 0; z-index: -2; }

.ev-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity 1.4s ease;
}
.ev-hero-slide.is-active {
	opacity: 1;
	animation: ev-drift 14s ease-out forwards;
}
@keyframes ev-drift {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

.ev-hero-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(13, 13, 13, .85) 0%, rgba(13, 13, 13, 0) 45%),
		linear-gradient(90deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .62) 45%, rgba(13, 13, 13, .15) 100%);
}

.ev-hero-inner { padding-top: 140px; padding-bottom: 120px; }
.ev-hero-inner h1 {
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 8px 0 20px;
	max-width: 14ch;
	color: #fff;
}

.ev-hero-logo {
	display: block;
	width: auto;
	height: clamp(40px, 5.5vw, 60px);
	margin-left: calc(clamp(40px, 5.5vw, 60px) * -0.11);
	filter: drop-shadow(0 2px 12px rgba(13, 13, 13, .5));
}

.ev-eyebrow {
	margin: 20px 0 0;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ev-gold);
}
.ev-eyebrow-dark { margin: 0 0 8px; color: var(--ev-primary); }

.ev-gradient-text {
	background: linear-gradient(100deg, var(--ev-primary) 0%, var(--ev-primary-3) 55%, var(--ev-gold) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ev-lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, .82);
	max-width: 560px;
	margin: 0 0 32px;
}

.ev-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.ev-btn-primary,
.ev-btn-ghost,
.ev-btn-light {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, transform .1s ease, box-shadow .2s ease;
}
.ev-btn-primary { background: var(--ev-primary); color: #fff; }
.ev-btn-primary:hover { background: var(--ev-primary-2); color: #fff; transform: translateY(-1px); }
.ev-btn-ghost { padding: 12px 28px; border: 2px solid rgba(255, 255, 255, .45); color: #fff; }
.ev-btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.ev-btn-light { background: #fff; color: #212121; font-weight: 700; }
.ev-btn-light:hover { color: #212121; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.ev-btn-primary:focus-visible,
.ev-btn-ghost:focus-visible,
.ev-btn-light:focus-visible,
.ev-card:focus-visible { outline: 3px solid var(--ev-gold); outline-offset: 3px; }

.ev-attendee-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 28px 0 0;
	font-size: .9rem;
	color: rgba(255, 255, 255, .7);
}
.ev-attendee-note svg { flex-shrink: 0; color: var(--ev-gold); }

.ev-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}
.ev-hero-dots button {
	width: 28px;
	height: 4px;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
	transition: background .3s ease, width .3s ease;
}
.ev-hero-dots button.is-active { width: 44px; background: #fff; }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.ev-section { padding: 88px 0; background: var(--ev-surface); color: var(--ev-text); }
.ev-section-alt { background: var(--ev-surface-alt); }
.ev-section h2, .ev-section h3 { color: var(--ev-text); }

.ev-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.ev-section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

/* The four ways in — overlaps the bottom of the hero */
.ev-hero + .ev-section { padding-top: 0; }
.ev-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: -64px;
}
.ev-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 24px;
	border-radius: 14px;
	background: var(--ev-surface);
	border: 1px solid var(--ev-border);
	box-shadow: 0 18px 40px rgba(13, 13, 13, .12);
	color: var(--ev-text);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(13, 13, 13, .18); color: var(--ev-text); }
.ev-card h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.ev-card p { margin: 0; color: var(--ev-muted); line-height: 1.5; flex-grow: 1; }
.ev-card-num { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--ev-primary); }
.ev-card-go { font-weight: 600; color: var(--ev-primary); }
.ev-card-accent {
	background: linear-gradient(135deg, var(--ev-primary) 0%, var(--ev-primary-3) 100%);
	border-color: transparent;
	color: #fff;
}
.ev-card-accent:hover { color: #fff; }
.ev-card-accent h2, .ev-card-accent .ev-card-go, .ev-card-accent .ev-card-num { color: #fff; }
.ev-card-accent p { color: rgba(255, 255, 255, .88); }

/* How it works */
.ev-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ev-steps li {
	padding: 32px 28px;
	border-radius: 14px;
	background: var(--ev-surface);
	border: 1px solid var(--ev-border);
}
.ev-steps h3 { font-size: 1.3rem; font-weight: 700; margin: 16px 0 8px; }
.ev-steps p { margin: 0; color: var(--ev-muted); line-height: 1.55; }
.ev-step-num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ev-primary), var(--ev-primary-3));
	color: #fff;
	font-weight: 700;
}

/* Hosts band */
.ev-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 48px 56px;
	border-radius: 18px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(229, 174, 106, .35) 0%, rgba(229, 174, 106, 0) 55%),
		linear-gradient(120deg, var(--ev-ink) 0%, #2a1416 100%);
	color: #fff;
}
.ev-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 8px; }
.ev-band p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .8); line-height: 1.55; }
.ev-band .ev-cta { flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ev-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.ev-steps { grid-template-columns: 1fr; }
	.ev-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 600px) {
	.ev-container { padding: 0 16px; }
	.ev-hero { min-height: 92svh; align-items: flex-end; }
	.ev-hero-inner { padding-top: 96px; padding-bottom: 88px; }
	.ev-hero-shade {
		background: linear-gradient(0deg, rgba(13, 13, 13, .95) 0%, rgba(13, 13, 13, .7) 55%, rgba(13, 13, 13, .25) 100%);
	}
	.ev-cta a { width: 100%; text-align: center; }
	.ev-cards { grid-template-columns: 1fr; margin-top: -40px; }
	.ev-section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ev-hero-slide, .ev-hero-slide.is-active { animation: none; transform: none; }
	.ev-card, .ev-btn-primary, .ev-btn-light { transition: none; }
}

/* ── Dev-only status panel (env = dev) ─────────────────────────────────────── */
.ev-dev-status {
	max-width: 960px;
	margin: 32px auto 64px;
	padding: 24px;
	border: 1px dashed currentColor;
	border-radius: 12px;
	color: var(--ev-text);
}
.ev-dev-status ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.ev-dev-note { opacity: .75; font-size: .9em; }
.ev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.ev-ok  { background: #2e9e5b; }
.ev-bad { background: #d64545; }
@media (max-width: 480px) {
	.ev-dev-status { margin: 24px 16px 48px; }
}

/* ── Sign-in cards (admin now, accounts in Phase 3) ────────────────────────── */
.ev-auth {
	min-height: calc(100vh - 220px);
	display: grid;
	place-items: center;
	padding: 64px 16px;
	background:
		radial-gradient(90% 70% at 100% 0%, rgba(255, 94, 78, .14) 0%, rgba(255, 94, 78, 0) 60%),
		var(--ev-surface-alt);
	color: var(--ev-text);
}
.ev-auth-card {
	width: 100%;
	max-width: 440px;
	padding: 36px 32px;
	border-radius: 16px;
	background: var(--ev-surface);
	border: 1px solid var(--ev-border);
	box-shadow: 0 18px 40px rgba(13, 13, 13, .10);
}
.ev-auth-card h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 12px; color: var(--ev-text); }
.ev-auth-lead { color: var(--ev-muted); line-height: 1.55; margin: 0 0 24px; }
.ev-auth-small { color: var(--ev-muted); font-size: .9rem; margin: 0; }

.ev-form { display: grid; gap: 10px; }
.ev-form label { font-weight: 600; font-size: .9rem; }
.ev-form input[type="email"],
.ev-form input[type="text"],
.ev-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid rgba(13, 13, 13, .2);
	background: var(--ev-surface);
	color: var(--ev-text);
	font-size: 1rem;
}
body.darkmode .ev-form input { border-color: rgba(255, 255, 255, .2); }
.ev-form input:focus { outline: 3px solid rgba(255, 94, 78, .35); border-color: var(--ev-primary); }
.ev-form .ev-btn-primary { border: 0; cursor: pointer; margin-top: 6px; width: 100%; }
.ev-form-inline { grid-template-columns: 1fr auto; align-items: center; max-width: 560px; margin: 0 0 24px; }
.ev-form-inline .ev-btn-primary { width: auto; margin: 0; }
.ev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Admin console ─────────────────────────────────────────────────────────── */
body.ev-admin .hive-minds-main { background: var(--ev-surface-alt); }
.ev-admin-bar { background: var(--ev-ink); color: #fff; }
.ev-admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.ev-admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.ev-admin-tabs a { color: rgba(255, 255, 255, .75); text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.ev-admin-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ev-admin-tabs a.is-active { color: #fff; background: rgba(255, 94, 78, .9); }
.ev-admin-who { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .75); }

.ev-admin { padding: 32px 0 72px; color: var(--ev-text); }
.ev-admin h1 { font-size: 1.9rem; font-weight: 700; margin: 0 0 20px; color: var(--ev-text); }
.ev-admin h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 14px; color: var(--ev-text); }
.ev-muted { color: var(--ev-muted); }

.ev-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ev-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 12px; background: var(--ev-surface); border: 1px solid var(--ev-border); color: var(--ev-text); text-decoration: none; }
a.ev-stat:hover { border-color: var(--ev-primary); color: var(--ev-text); }
.ev-stat-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.ev-stat-label { color: var(--ev-muted); font-size: .9rem; }
.ev-stat-alert { border-color: var(--ev-primary); box-shadow: 0 0 0 3px rgba(255, 94, 78, .15); }
.ev-stat-alert .ev-stat-num { color: var(--ev-primary); }

.ev-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--ev-border); background: var(--ev-surface); }
.ev-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ev-table th, .ev-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ev-border); vertical-align: middle; white-space: nowrap; }
.ev-table th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ev-muted); font-weight: 700; }
.ev-table tr:last-child td { border-bottom: 0; }
.ev-table code { font-size: .85rem; }
.ev-actions form { display: flex; gap: 6px; margin: 0; justify-content: flex-end; }

.ev-btn-small { display: inline-block; padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(127, 127, 127, .45); background: transparent; color: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.ev-btn-small:hover { border-color: currentColor; }
.ev-btn-go { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }
.ev-btn-danger { border-color: #d64545; color: #d64545; }
.ev-admin-who .ev-btn-small { border-color: rgba(255, 255, 255, .4); color: #fff; }

.ev-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.ev-pill-approved { background: rgba(46, 158, 91, .15); color: #2e9e5b; }
.ev-pill-revoked  { background: rgba(214, 69, 69, .12); color: #d64545; }

.ev-flash { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.ev-flash-ok    { background: rgba(46, 158, 91, .12); color: #1f7a45; }
.ev-flash-error { background: rgba(214, 69, 69, .12); color: #b03030; }
body.darkmode .ev-flash-ok { color: #6fd39a; }
body.darkmode .ev-flash-error { color: #ff8a8a; }

@media (max-width: 800px) {
	.ev-stats { grid-template-columns: repeat(2, 1fr); }
	.ev-form-inline { grid-template-columns: 1fr; }
	.ev-form-inline .ev-btn-primary { width: 100%; }
}

/* ── Accounts ──────────────────────────────────────────────────────────────── */
.ev-btn-outline {
	display: inline-block; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--ev-primary);
	background: transparent; color: var(--ev-primary); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.ev-btn-outline:hover { background: rgba(255, 94, 78, .08); color: var(--ev-primary); }
.ev-btn-link { color: var(--ev-primary); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.ev-btn-link:hover { text-decoration: underline; color: var(--ev-primary-2); }
.ev-form .ev-btn-outline { width: 100%; margin-top: 6px; }
.ev-form-row { display: grid; gap: 10px; margin-top: 6px; }
.ev-form-row .ev-btn-primary, .ev-form-row .ev-btn-outline { margin: 0; }
.ev-field-error { margin: -4px 0 4px; color: #b03030; font-size: .88rem; font-weight: 600; }
body.darkmode .ev-field-error { color: #ff8a8a; }
.ev-form input[aria-invalid="true"] { border-color: #d64545; }
.ev-form input[type="url"] { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(13, 13, 13, .2); background: var(--ev-surface); color: var(--ev-text); font-size: 1rem; }
.ev-check { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.ev-auth-switch { margin-top: 20px; text-align: center; }
.ev-auth-card .ev-flash { margin: 0 0 16px; }

.ev-account { padding: 40px 0 80px; background: var(--ev-surface-alt); color: var(--ev-text); min-height: calc(100vh - 220px); }
.ev-account h1 { font-size: 2rem; font-weight: 700; margin: 4px 0 6px; color: var(--ev-text); }
.ev-account h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; color: var(--ev-text); }
.ev-account .ev-flash { margin: 0 0 24px; }
.ev-narrow { max-width: 640px; }
.ev-account-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.ev-account-head .ev-eyebrow { margin: 0; }
.ev-account-head p { margin: 0; }
.ev-account-signout { margin-left: auto; }

.ev-callout {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 24px 28px;
	border-radius: 14px; color: #fff; background: linear-gradient(120deg, var(--ev-primary) 0%, var(--ev-primary-3) 100%);
}
.ev-callout h2 { color: #fff; margin: 0 0 6px; }
.ev-callout p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 620px; }
.ev-callout .ev-btn-primary { background: #fff; color: #212121; flex-shrink: 0; }

.ev-account-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.ev-panel { padding: 24px; border-radius: 14px; background: var(--ev-surface); border: 1px solid var(--ev-border); }
.ev-panel form { margin: 0; }
.ev-panel-actions { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; flex-wrap: wrap; }
.ev-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.ev-dl dt { color: var(--ev-muted); font-weight: 600; font-size: .9rem; }
.ev-dl dd { margin: 0; overflow-wrap: anywhere; }
.ev-pill-pending { background: rgba(229, 174, 106, .2); color: #9a6a1f; }
body.darkmode .ev-pill-pending { color: var(--ev-gold); }

.ev-avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ev-avatar-md { width: 48px; height: 48px; font-size: 1rem; }
.ev-avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.ev-avatar-initials {
	display: inline-grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .02em;
	background: linear-gradient(135deg, var(--ev-primary), var(--ev-primary-3));
}
.ev-avatar-field { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 8px; }
.ev-avatar-field > div { display: grid; gap: 6px; }

@media (max-width: 900px) {
	.ev-account-grid { grid-template-columns: 1fr; }
	.ev-callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.ev-account-head { flex-wrap: wrap; }
	.ev-account-signout { margin-left: 0; width: 100%; }
	.ev-account-signout .ev-btn-outline { width: 100%; }
}
