@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

/* Pure Elementor Voting System CSS */

.vs-wrap {
	--vs-primary: #2563eb;
	--vs-card-bg: #ffffff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	max-width: 800px;
	margin: 0 auto;
}

.vs-wrap .vs-head { text-align: center; margin-bottom: 30px; }
.vs-wrap .vs-head h2 { 
	font-family: 'Manrope', sans-serif;
	font-size: 28px; 
	font-weight: 800; 
	color: #1e293b; 
	margin: 0 0 8px; 
}
.vs-wrap .vs-head p { 
	font-family: 'Inter', sans-serif;
	color: #64748b; 
	font-size: 15px; 
	margin: 0; 
}

.vs-wrap .vs-category-group { margin-bottom: 40px; }
.vs-wrap .vs-cat-title {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vs-primary);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--vs-primary);
	display: inline-block;
}

.vs-wrap .vs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
	justify-content: center;
	gap: 12px;
}

.vs-wrap .vs-card {
	display: block;
	cursor: pointer;
	position: relative;
	margin: 0;
}

.vs-wrap .vs-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.vs-wrap .vs-card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 12px;
	background: var(--vs-card-bg);
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.2s;
	position: relative;
}

.vs-wrap .vs-card:hover .vs-card-inner {
	border-color: var(--vs-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.vs-wrap .vs-card input:checked + .vs-card-inner {
	border-color: var(--vs-primary);
	background: color-mix(in srgb, var(--vs-primary) 5%, white);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--vs-primary) 20%, transparent);
}

.vs-wrap .vs-av {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #f1f5f9;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	color: #94a3b8;
	overflow: hidden;
	flex-shrink: 0;
	transition: all 0.2s;
}

.vs-wrap .vs-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-wrap .vs-card input:checked + .vs-card-inner .vs-av {
	border-color: var(--vs-primary);
	color: #fff;
	background: var(--vs-primary);
}

.vs-wrap .vs-cand-name {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	text-align: center;
}

.vs-wrap .vs-tick {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--vs-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vs-wrap .vs-tick svg {
	width: 12px;
	height: 12px;
	stroke: #fff;
}

.vs-wrap .vs-card input:checked + .vs-card-inner .vs-tick {
	opacity: 1;
	transform: scale(1);
}

.vs-wrap .vs-foot { text-align: center; margin-top: 40px; }
.vs-wrap button.vs-btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--vs-primary) 0%, color-mix(in srgb, var(--vs-primary) 80%, black) 100%);
	color: #fff;
	border: none;
	padding: 16px 36px;
	font-size: 16px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	letter-spacing: 0.5px;
	border-radius: 99px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--vs-primary) 25%, transparent);
	line-height: 1.2;
}
.vs-wrap button.vs-btn:hover { 
	opacity: 0.95; 
	transform: translateY(-2px); 
	box-shadow: 0 12px 24px color-mix(in srgb, var(--vs-primary) 35%, transparent);
	color: #fff;
}
.vs-wrap button.vs-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.vs-wrap .vs-err {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fca5a5;
	padding: 12px 16px;
	border-radius: 8px;
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
}

.vs-wrap .vs-success {
	text-align: center;
	padding: 40px 20px;
}
.vs-wrap .vs-success-icon {
	width: 64px;
	height: 64px;
	background: #10b981;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 20px;
	box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}
.vs-wrap .vs-success h3 { 
	font-family: 'Manrope', sans-serif;
	font-size: 24px; 
	color: #1e293b; 
	margin: 0 0 8px; 
}
.vs-wrap .vs-success p { color: #64748b; margin: 0; }

/* Results Widget */
.vs-res-wrap {
	--vs-primary: #2563eb;
	--vs-winner: #f59e0b;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.vs-res-wrap .vs-res-head {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 24px;
}
.vs-res-wrap .vs-res-category { margin-bottom: 30px; }
.vs-res-wrap .vs-res-cat-title {
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--vs-primary);
	margin-bottom: 12px;
}
.vs-res-wrap .vs-res-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: #f8fafc;
	border-radius: 8px;
	margin-bottom: 8px;
}
.vs-res-wrap .vs-res-row.is-winner { background: #eff6ff; }
.vs-res-wrap .vs-res-av {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e2e8f0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	flex-shrink: 0;
}
.vs-res-wrap .vs-res-av img { width: 100%; height: 100%; object-fit: cover; }
.vs-res-wrap .vs-res-info { flex: 1; min-width: 0; }
.vs-res-wrap .vs-res-name {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 4px;
}
.vs-res-wrap .is-winner .vs-res-name { color: var(--vs-winner); }
.vs-res-wrap .vs-res-bar-wrap {
	height: 4px;
	background: #e2e8f0;
	border-radius: 99px;
	overflow: hidden;
}
.vs-res-wrap .vs-res-bar {
	height: 100%;
	background: var(--vs-primary);
	border-radius: 99px;
}
.vs-res-wrap .is-winner .vs-res-bar { background: var(--vs-winner); }
.vs-res-wrap .vs-res-count {
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	text-align: right;
}
.vs-res-wrap .vs-res-count span {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 400;
}

@media (max-width: 480px) {
	.vs-wrap .vs-grid { grid-template-columns: 1fr 1fr; }
}
