/* ZCC Leaderboard — design by James */

:root {
	--zcc-gold:    #F7DA22;
	--zcc-teal:    #25EAE4;
	--zcc-orange:  #C87941;
	--zcc-blue:    #0B5CFF;
	--zcc-dark:    #0e1343;
	--zcc-black:   #000000;
	--zcc-grey:    #858585;
	--zcc-white:   #FFFFFF;
	--zcc-up:      #4ade80;
	--zcc-down:    #f87171;
	--zcc-radius-card: 20px;
	--zcc-radius-wrap: 50px;
}

/* Reduce WPBakery's padding on the leaderboard page */
body.page-id-5 .wpb_column > .vc_column-inner {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
body.page-id-5 .vc_row {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
body.page-id-5 #content {
	padding-bottom: 0 !important;
}

/* ── Outer wrapper ── */
.zcc-leaderboard-wrap {
	font-family: inherit;
	color: var(--zcc-white);
	width: 100%;
	overflow: hidden;
}

/* ── Controls bar ── */
.zcc-lb-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	width: 100%;
	box-sizing: border-box;
}

.zcc-lb-month-wrap {
	display: none;
}

.zcc-lb-month-wrap label {
	font-weight: 600;
	font-size: 0.9em;
	white-space: nowrap;
}

.zcc-lb-month-wrap select {
	border: none;
	background: #A5A5A5 !important;
	border-radius: 50px;
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	color: #fff !important;
	padding: 0 4px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.zcc-lb-month-wrap {
	position: relative;
}

.zcc-lb-month-wrap::after {
	content: '▾';
	font-size: 0.85em;
	color: #A5A5A5;
	pointer-events: none;
	margin-left: 4px;
}

/* Category mobile dropdown — hidden on desktop */
.zcc-lb-cat-mobile-wrap {
	display: none;
}

@media (max-width: 600px) {
	.zcc-lb-categories {
		display: none !important;
	}

	/* Controls row — side by side on mobile */
	.zcc-lb-controls {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		align-items: start;
	}

	/* Month pill — stack label above on mobile */
	.zcc-lb-month-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		background: transparent;
		padding: 0;
		border-radius: 0;
	}
	.zcc-lb-month-wrap label {
		color: var(--zcc-white);
		font-size: 1em;
	}
	.zcc-lb-month-wrap select {
		background: var(--zcc-white);
		color: #000;
		border-radius: 50px;
		padding: 8px 36px 8px 16px;
		font-size: 0.9em;
		width: 100%;
	}
	.zcc-lb-month-wrap::after {
		position: absolute;
		right: 14px;
		bottom: 10px;
	}

	/* Region tabs — stack full width on mobile */
	.zcc-region-tabs {
		flex-direction: column;
		gap: 8px;
		border-bottom: none;
		padding-bottom: 0;
		margin-bottom: 16px;
	}
	.zcc-region-tab {
		width: 100%;
		text-align: left;
		border: 2px solid rgba(255,255,255,0.15);
		border-radius: 12px;
		padding: 14px 18px;
		color: rgba(255,255,255,0.6);
	}
	.zcc-region-tab.active {
		border-color: var(--zcc-gold);
		color: var(--zcc-white);
		background: rgba(247,218,34,0.08);
	}
	.zcc-region-tab::after {
		display: none;
	}

	.zcc-lb-cat-mobile-wrap {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		position: relative;
	}
	.zcc-lb-cat-mobile-wrap label {
		font-weight: 700;
		font-size: 1em;
		color: var(--zcc-white);
	}
	.zcc-lb-cat-mobile-wrap select {
		background: var(--zcc-white);
		color: #000;
		border: none;
		border-radius: 50px;
		padding: 8px 36px 8px 16px;
		font-size: 0.9em;
		font-weight: 600;
		cursor: pointer;
		outline: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		width: 100%;
	}
	.zcc-lb-cat-mobile-wrap::after {
		content: '▾';
		font-size: 0.85em;
		color: #000;
		pointer-events: none;
		position: absolute;
		right: 14px;
		bottom: 10px;
	}
}

/* Category pill buttons */
.zcc-lb-categories {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.zcc-cat-btn {
	padding: 9px 22px;
	border-radius: 50px;
	border: 2px solid var(--zcc-white);
	background: transparent;
	color: var(--zcc-white);
	font-size: 0.88em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s;
	white-space: nowrap;
}

.zcc-cat-btn:hover {
	background: rgba(255,255,255,0.12);
}

.zcc-cat-btn.active {
	background: var(--zcc-white);
	color: var(--zcc-black);
}

/* ── Dark rounded container ── */
.zcc-lb-card {
	background: var(--zcc-dark);
	border-radius: var(--zcc-radius-wrap);
	padding: 32px;
}

/* ── Region tabs ── */
.zcc-region-tabs {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
	padding-bottom: 0;
}

.zcc-region-tab {
	padding: 12px 24px;
	background: transparent;
	border: none;
	color: #AEC9F1;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.18s;
	position: relative;
	border-radius: 0;
}

.zcc-region-tab::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0; right: 0;
	height: 3px;
	background: var(--zcc-blue);
	transform: scaleX(0);
	transition: transform 0.18s;
	border-radius: 2px 2px 0 0;
}

.zcc-region-tab:hover { color: var(--zcc-white); }

.zcc-region-tab.active {
	color: var(--zcc-white);
}

.zcc-region-tab.active::after {
	transform: scaleX(1);
}

/* ── Tab panes ── */
.zcc-tab-pane { display: none; }
.zcc-tab-pane.active { display: block; }

.zcc-region-countries {
	font-size: 0.8em;
	font-weight: 600;
	color: rgba(255,255,255,0.85);
	margin: 0 0 20px;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

/* ── Cards grid ── */
.zcc-cards-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	overflow: visible;
	padding: 4px; /* breathing room for corner accents */
}

@media (max-width: 1100px) {
	.zcc-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
	.zcc-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
	.zcc-cards-grid { grid-template-columns: repeat(2, 1fr); }
	.zcc-lb-card { padding: 20px 16px; border-radius: 24px; }
}

/* Hidden cards (shown via Load more) */
.zcc-rank-card.zcc-hidden { display: none; }

/* ── Individual rank card ── */
.zcc-rank-card {
	position: relative;
	border-radius: var(--zcc-radius-card);
	padding: 28px 24px 30px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 10px;
	border-width: 3px;
	border-style: solid;
	transition: transform 0.15s;
	min-height: 295px;
}

.zcc-rank-card:hover { transform: translateY(-3px); }

/* Gold — 1st */
.zcc-rank-gold {
	background: var(--zcc-gold);
	border-color: var(--zcc-gold);
	color: #000 !important;
}

/* Grey — 2nd */
.zcc-rank-teal {
	background: #E8E8E8;
	border-color: #E8E8E8;
	color: #000 !important;
}

/* Orange — 3rd */
.zcc-rank-orange {
	background: var(--zcc-orange);
	border-color: var(--zcc-orange);
	color: #000 !important;
}

/* Dark — 4th+ */
.zcc-rank-dark {
	background: var(--zcc-dark);
	border-color: #A6C0E7;
	color: var(--zcc-white) !important;
}

/* Rank badge — small chip */
.zcc-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 14px;
	font-size: 1.35em;
	font-weight: 800;
	line-height: 1;
	align-self: flex-start;
}

.zcc-rank-badge sup {
	font-size: 0.6em;
	font-weight: 700;
	vertical-align: super;
	margin-left: 1px;
}

/* Badge colours — dark chip, text matches card colour */
.zcc-rank-gold .zcc-rank-badge {
	background: var(--zcc-dark) !important;
	color: var(--zcc-gold) !important;
}

.zcc-rank-teal .zcc-rank-badge {
	background: var(--zcc-dark) !important;
	color: #E8E8E8 !important;
}

.zcc-rank-orange .zcc-rank-badge {
	background: var(--zcc-dark) !important;
	color: var(--zcc-orange) !important;
}

.zcc-rank-dark .zcc-rank-badge {
	background: var(--zcc-blue) !important;
	color: #fff !important;
}

/* Company name */
.zcc-company-name {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.3;
	margin-top: 24px;
}

.zcc-company-name.zcc-tbc {
	opacity: 0.4;
	font-style: italic;
}

/* Divider */
.zcc-card-divider {
	height: 2px;
	width: 30px;
	border-radius: 2px;
	margin-top: auto;
}

.zcc-rank-gold .zcc-card-divider,
.zcc-rank-teal .zcc-card-divider,
.zcc-rank-orange .zcc-card-divider {
	background: var(--zcc-dark);
	opacity: 0.4;
}

.zcc-rank-dark .zcc-card-divider {
	background: var(--zcc-blue);
}

/* Mover text */
/* VLA Partner badge */
.zcc-vla-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgba(255,255,255,0.2);
	color: #fff;
}
.zcc-rank-gold .zcc-vla-badge {
	background: rgba(0,0,0,0.15);
	color: #000;
}

/* VLA Champion description panel */
.zcc-vla-panel {
	padding: 32px 40px;
}
.zcc-vla-description {
	color: #fff;
	font-size: 1em;
	line-height: 1.7;
	white-space: pre-wrap;
	max-width: 700px;
}

.zcc-mover-text {
	font-size: 0.82em;
	line-height: 1.3;
}

.zcc-new-entry {
	font-size: 0.92em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.65;
}

.zcc-rank-gold .zcc-new-entry,
.zcc-rank-teal .zcc-new-entry,
.zcc-rank-orange .zcc-new-entry {
	color: var(--zcc-dark) !important;
}

.zcc-rank-dark .zcc-new-entry {
	color: #fff !important;
}

/* ── Load more button ── */
.zcc-load-more-wrap {
	margin-top: 24px;
}

.zcc-load-more-btn {
	padding: 14px 32px;
	border-radius: 50px;
	border: 2px solid var(--zcc-white);
	background: transparent;
	color: var(--zcc-white);
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s;
}

.zcc-load-more-btn:hover {
	background: rgba(255,255,255,0.12);
}

.zcc-load-more-btn[hidden] { display: none; }

/* ── Loading spinner ── */
.zcc-lb-loading {
	text-align: center;
	padding: 48px;
}

.zcc-spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255,255,255,0.15);
	border-top-color: var(--zcc-gold);
	border-radius: 50%;
	animation: zcc-spin 0.8s linear infinite;
}

@keyframes zcc-spin { to { transform: rotate(360deg); } }

.zcc-no-data {
	padding: 40px;
	text-align: center;
	color: rgba(255,255,255,0.7);
	font-size: 1.2em;
	font-weight: 600;
}

/* ── Register page — same style as landing login ── */
body.page-id-7 .vc_row-has-fill,
body.page-id-7 .vc_row,
body.page-id-7 .wpb_column,
body.page-id-7 .vc_column-inner {
	background: transparent !important;
	background-color: transparent !important;
}

body.page-id-7 .zcc-register-wrap {
	max-width: 580px;
	margin: 0 auto;
	background: rgba(0,0,0,0.25);
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.15);
	padding: 32px 36px;
	backdrop-filter: blur(4px);
	color: #fff;
	box-sizing: border-box;
}

body.page-id-7 .zcc-register-wrap::before {
	content: 'Register';
	display: block;
	font-size: 1.8em;
	font-weight: 600;
	color: #fff;
	margin-bottom: 20px;
}

body.page-id-7 .zcc-form-field label {
	color: rgba(255,255,255,0.85) !important;
	font-size: 0.9em;
	font-weight: 500;
	margin-bottom: 4px;
}

body.page-id-7 .zcc-form-field input[type=text],
body.page-id-7 .zcc-form-field input[type=email],
body.page-id-7 .zcc-form-field input[type=password],
body.page-id-7 .zcc-form-field input[type=tel],
body.page-id-7 .zcc-form-field select {
	width: 100%;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	border: 1px solid rgba(255,255,255,0.2) !important;
	font-size: 1em !important;
	background: #fff !important;
	color: #333 !important;
	box-sizing: border-box;
}

body.page-id-7 .zcc-form-checkboxes label {
	color: rgba(255,255,255,0.85);
	font-weight: normal;
}

body.page-id-7 .zcc-btn-primary {
	width: 100%;
	padding: 14px !important;
	border-radius: 8px !important;
	font-size: 1em !important;
	font-weight: 700 !important;
	background: #1A4FFF !important;
	text-align: center;
}

body.page-id-7 .zcc-form-error {
	background: rgba(220,38,38,0.2);
	border-color: rgba(220,38,38,0.4);
	color: #fff;
}

/* ── Forms (unchanged) ── */
.zcc-register-wrap,
.zcc-profile-wrap {
	max-width: 680px;
}

.zcc-form-field { margin-bottom: 20px; }

.zcc-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9em;
}

.zcc-form-field input[type=text],
.zcc-form-field input[type=email],
.zcc-form-field input[type=password],
.zcc-form-field input[type=tel],
.zcc-form-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 1em;
	transition: border-color 0.15s;
}

.zcc-form-field input:focus,
.zcc-form-field select:focus {
	outline: none;
	border-color: #0B5CFF;
	box-shadow: 0 0 0 3px rgba(11,92,255,0.12);
}

.zcc-form-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) { .zcc-form-two-col { grid-template-columns: 1fr; } }

.zcc-form-checkboxes label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: normal;
	margin-bottom: 8px;
}

.zcc-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.15s;
}

.zcc-btn-primary { background: #0B5CFF; color: #fff; }
.zcc-btn-primary:hover { background: #0849cc; }
.zcc-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.zcc-form-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.zcc-form-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.zcc-login-wrap {
	max-width: 400px;
	margin: 0 auto;
}

/* ── Landing Login page — make WPBakery rows transparent ── */
body.page-id-17 .vc_row-has-fill,
body.page-id-17 .vc_row {
	background: transparent !important;
	background-color: transparent !important;
}
body.page-id-17 .wpb_column,
body.page-id-17 .vc_column-inner {
	background: transparent !important;
}

/* ── Landing Login page — horizontal layout ── */
body.page-id-17 .zcc-login-wrap {
	max-width: 780px;
	margin: 0 auto;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.15);
	padding: 28px 36px;
	backdrop-filter: blur(6px);
	color: #fff;
	box-sizing: border-box;
}

body.page-id-17 .zcc-login-title {
	font-size: 1.4em;
	font-weight: 600;
	color: #fff;
	margin-bottom: 16px;
	text-align: left;
}
body.page-id-17 .zcc-login-title a {
	color: var(--zcc-blue);
	text-decoration: none;
}
body.page-id-17 .zcc-login-title a:hover {
	text-decoration: underline;
}

/* Hide labels — placeholders used instead */
body.page-id-17 .zcc-form-field label {
	display: none !important;
}

/* Fields + button in one row */
body.page-id-17 #zcc-login-form .zcc-fields-row {
	display: flex;
	gap: 12px;
	align-items: center;
}

body.page-id-17 #zcc-login-form .zcc-fields-row .zcc-form-field {
	flex: 1;
	margin: 0;
}

body.page-id-17 .zcc-form-field input[type=email],
body.page-id-17 .zcc-form-field input[type=password] {
	width: 100%;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	border: none !important;
	font-size: 1em !important;
	background: #fff !important;
	color: #333 !important;
	box-sizing: border-box;
}

body.page-id-17 .zcc-btn-primary {
	white-space: nowrap;
	padding: 12px 28px !important;
	border-radius: 8px !important;
	font-size: 1em !important;
	font-weight: 700 !important;
	background: #1A4FFF !important;
	width: auto !important;
}

/* Landing-login mobile — stack fields vertically */
@media (max-width: 600px) {
	body.page-id-17 .zcc-login-wrap {
		padding: 24px 20px;
	}
	body.page-id-17 #zcc-login-form .zcc-fields-row {
		flex-direction: column;
		align-items: stretch;
	}
	body.page-id-17 #zcc-login-form .zcc-fields-row .zcc-form-field {
		width: 100%;
	}
	body.page-id-17 .zcc-btn-primary {
		width: 100% !important;
		padding: 14px !important;
		font-size: 1.1em !important;
	}
	body.page-id-17 .zcc-form-field input[type=email],
	body.page-id-17 .zcc-form-field input[type=password] {
		padding: 14px 16px !important;
		font-size: 1.1em !important;
	}
}

/* Remember me + forgot password row */
.zcc-login-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 12px 0 0;
}

body.page-id-17 .zcc-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.85);
	font-size: 0.9em;
	font-weight: normal;
	cursor: pointer;
}

body.page-id-17 .zcc-login-meta a {
	color: rgba(255,255,255,0.85);
	font-size: 0.9em;
	text-decoration: none;
}

body.page-id-17 .zcc-login-wrap p {
	margin: 0;
}

body.page-id-17 .zcc-login-wrap p a {
	color: rgba(255,255,255,0.8);
}

/* ── Forgot password page ── */
body.page-id-747 .zcc-login-wrap {
	max-width: 480px;
	margin: 60px auto;
	background: rgba(0,0,0,0.35);
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.15);
	padding: 36px 40px;
	backdrop-filter: blur(6px);
	color: #fff;
	box-sizing: border-box;
}
body.page-id-747 .zcc-login-title {
	font-size: 1.5em;
	font-weight: 600;
	color: #fff;
	margin-bottom: 16px;
}
body.page-id-747 .zcc-form-field label {
	color: rgba(255,255,255,0.85);
	font-size: 0.9em;
	font-weight: 500;
	margin-bottom: 4px;
	display: block;
}
body.page-id-747 .zcc-form-field input[type=email] {
	width: 100%;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	border: none !important;
	font-size: 1em !important;
	background: #fff !important;
	color: #333 !important;
	box-sizing: border-box;
}
body.page-id-747 .zcc-btn-primary {
	padding: 13px 28px !important;
	border-radius: 8px !important;
	font-size: 1em !important;
	font-weight: 700 !important;
	background: #1A4FFF !important;
}

/* ── Nav profile avatar ──────────────────────────────────────────────────── */
.zcc-nav-profile-item {
	position: relative;
	display: flex;
	align-items: center;
	margin-left: 12px;
	list-style: none;
}
.zcc-nav-avatar {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	border-radius: 50% !important;
	background: var(--zcc-blue, #0B5CFF) !important;
	border: 2px solid rgba(255,255,255,0.25) !important;
	outline: none;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box !important;
}
.zcc-nav-avatar:hover {
	border-color: rgba(255,255,255,0.7);
	box-shadow: 0 0 0 3px rgba(11,92,255,0.35);
}
.zcc-avatar-initials {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1;
	pointer-events: none;
}
.zcc-nav-profile-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	padding-top: 10px;
	right: 0;
	background: #0e1343;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.45);
	min-width: 160px;
	z-index: 9999;
	overflow: hidden;
}
/* small caret arrow */
.zcc-nav-profile-dropdown::before {
	content: '';
	position: absolute;
	top: 4px;
	right: 13px;
	width: 10px;
	height: 10px;
	background: #0e1343;
	border-left: 1px solid rgba(255,255,255,0.12);
	border-top: 1px solid rgba(255,255,255,0.12);
	transform: rotate(45deg);
}
.zcc-nav-profile-dropdown a {
	display: block;
	padding: 12px 18px;
	color: rgba(255,255,255,0.85) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.zcc-nav-profile-dropdown a:first-child {
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.zcc-nav-profile-dropdown a:hover {
	background: rgba(255,255,255,0.07);
	color: #fff !important;
}
.zcc-nav-profile-item.open .zcc-nav-profile-dropdown {
	display: block;
}
