/**
 * Cookie Consent & Analytics Styles
 * Phase 5: Analytics Integration
 */

/* Cookie Consent Banner */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #1e293b;
	color: #f1f5f9;
	padding: 1rem;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	transform: translateY(100%);
	animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
	to {
		transform: translateY(0);
	}
}

.cookie-consent__content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cookie-consent__text {
	flex: 1;
	min-width: 280px;
}

.cookie-consent__text p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.cookie-consent__text a {
	color: #60a5fa;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
	color: #93c5fd;
}

.cookie-consent__actions {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
}

.cookie-consent__btn {
	padding: 0.625rem 1.25rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.cookie-consent__btn--accept {
	background: #3b82f6;
	color: white;
}

.cookie-consent__btn--accept:hover {
	background: #2563eb;
}

.cookie-consent__btn--decline {
	background: transparent;
	color: #94a3b8;
	border: 1px solid #475569;
}

.cookie-consent__btn--decline:hover {
	background: #334155;
	color: #e2e8f0;
}

/* Hidden state */
.cookie-consent.cookie-consent--hidden {
	animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
	to {
		transform: translateY(100%);
		visibility: hidden;
	}
}

/* Responsive */
@media (max-width: 640px) {
	.cookie-consent {
		padding: 1rem;
	}
	
	.cookie-consent__content {
		flex-direction: column;
		text-align: center;
	}
	
	.cookie-consent__text {
		min-width: 100%;
	}
	
	.cookie-consent__actions {
		width: 100%;
		justify-content: center;
	}
	
	.cookie-consent__btn {
		flex: 1;
		max-width: 150px;
	}
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
	.cookie-consent {
		background: #0f172a;
		border-top: 1px solid #1e293b;
	}
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
	.cookie-consent {
		animation: none;
		transform: translateY(0);
	}
	
	.cookie-consent.cookie-consent--hidden {
		animation: none;
		display: none;
	}
}

/* Print - hide consent banner */
@media print {
	.cookie-consent {
		display: none !important;
	}
}
