/* Cantons Component */
.cantons-container {
	padding: 60px 5%;
	position: relative;
	overflow: hidden;
}

/* Variant: Gradient (default) */
.cantons-container.variant-gradient {
	background: linear-gradient(
		135deg,
		var(--carbon-dark) 0%,
		var(--carbon-medium) 50%,
		var(--carbon-dark) 100%
	);
	border-top: 1px solid var(--metal-dark);
	border-bottom: 1px solid var(--metal-dark);
}

.cantons-container.variant-gradient::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse at center,
		rgba(153, 69, 255, 0.15) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

/* Variant: Pattern */
.cantons-container.variant-pattern {
	background: transparent;
}

.cantons-container.variant-pattern::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(153, 69, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(153, 69, 255, 0.05) 1px, transparent 1px);
	background-size: 100px 100px;
	filter: blur(0.2px);
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
}

/* Variant: Dots */
.cantons-container.variant-dots {
	background: linear-gradient(180deg,
		var(--primary-black) 0%,
		var(--carbon-dark) 50%,
		var(--primary-black) 100%);
}

/* Particles for dots background */
.cantons-particles {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.cantons-particles .particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
	border-radius: 50%;
	opacity: 0;
	animation: float-canton-particle 20s infinite linear;
}

@keyframes float-canton-particle {
	0% {
		transform: translateY(100vh) translateX(0);
		opacity: 0;
	}
	5% {
		opacity: 0.8;
	}
	95% {
		opacity: 0.8;
	}
	100% {
		transform: translateY(-100vh) translateX(100px);
		opacity: 0;
	}
}

.cantons-title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 12px;
	text-align: center;
	line-height: 1.2;
	position: relative;
	z-index: 1;
}

.cantons-subtitle {
	font-size: clamp(16px, 2vw, 20px);
	color: var(--text-secondary);
	text-align: center;
	max-width: 800px;
	margin: 0 auto 25px;
	line-height: 1.6;
	position: relative;
	z-index: 1;
}

.cantons-layout {
	display: flex;
	align-items: center;
	gap: 60px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.swiss-flag-icon {
	width: 180px;
	height: 180px;
	min-width: 180px;
	margin: 0;
	position: relative;
	z-index: 1;
	animation: flagPulse 3s ease-in-out infinite;
	filter: drop-shadow(0 4px 12px rgba(255, 0, 0, 0.3));
}

.swiss-flag-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

@keyframes flagPulse {
	0%, 100% {
		transform: scale(1);
		filter: drop-shadow(0 4px 12px rgba(255, 0, 0, 0.3));
	}
	50% {
		transform: scale(1.05);
		filter: drop-shadow(0 6px 16px rgba(255, 0, 0, 0.5));
	}
}

.cantons-content {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	flex: 1;
	position: relative;
	z-index: 1;
}

.tag-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: var(--carbon-medium);
	border: 1px solid var(--metal-dark);
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
	line-height: 1;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	transform: translateY(20px);
	white-space: nowrap;
	cursor: default;
}

.tag-item:hover {
	background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(69, 162, 255, 0.2));
	border-color: var(--accent-purple);
	color: var(--text-primary);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 20px rgba(153, 69, 255, 0.3);
}

/* All variants use same tag styling for consistency */

/* Responsive */
@media (max-width: 768px) {
	.cantons-container {
		padding: 40px 5%;
	}
	
	.cantons-title {
		font-size: clamp(26px, 6vw, 36px);
		margin-bottom: 15px;
	}
	
	.cantons-subtitle {
		font-size: clamp(14px, 3vw, 16px);
		margin-bottom: 20px;
	}
	
	.cantons-layout {
		flex-direction: column-reverse;
		gap: 30px;
	}
	
	.swiss-flag-icon {
		width: 120px;
		height: 120px;
		min-width: 120px;
		margin: 0 auto;
	}
	
	.cantons-content {
		justify-content: center;
	}
	
	.cantons-content {
		gap: 8px;
	}
	
	.tag-item {
		padding: 10px 18px;
		font-size: 13px;
	}
}
