/* =========================================================
   Proprietary Cookie Consent — 12StepNationalMeetings.com
   Premium dark UI with animated toggle switches
   ========================================================= */

/* --- Reset & Base --- */
#pcc-overlay,
#pcc-banner,
#pcc-modal * {
	box-sizing: border-box;
	font-family: 'Quicksand', 'Open Sans', -apple-system, sans-serif;
	line-height: 1.5;
}

/* --- Backdrop Overlay (modal mode) --- */
#pcc-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999990;
	animation: pccFadeIn 0.25s ease;
}
#pcc-overlay.pcc-visible {
	display: block;
}

/* --- Main Banner (bottom-right pill) --- */
#pcc-banner {
	display: none;
	position: fixed;
	bottom: 24px;
	right: 24px;
	max-width: 380px;
	width: calc(100vw - 48px);
	background: #1a2236;
	border: 1px solid rgba(0, 200, 240, 0.2);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 200, 240, 0.08);
	z-index: 999999;
	animation: pccSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	color: #e2e8f0;
}
#pcc-banner.pcc-visible {
	display: block;
}

/* --- Banner Content --- */
.pcc-logo-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.pcc-logo-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00C8F0, #0078B4);
	box-shadow: 0 0 8px rgba(0, 200, 240, 0.6);
	flex-shrink: 0;
}
.pcc-logo-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #00C8F0;
}
.pcc-banner-title {
	font-size: 16px;
	font-weight: 700;
	color: #f1f5f9;
	margin: 0 0 8px;
}
.pcc-banner-body {
	font-size: 13px;
	color: #94a3b8;
	margin: 0 0 18px;
}
.pcc-banner-body a {
	color: #00C8F0;
	text-decoration: none;
}
.pcc-banner-body a:hover {
	text-decoration: underline;
}

/* --- Banner Buttons --- */
.pcc-btn-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.pcc-btn {
	flex: 1;
	min-width: 100px;
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s ease;
	letter-spacing: 0.02em;
}
#pcc-btn-accept-all {
	background: linear-gradient(135deg, #00C8F0, #0078B4);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 200, 240, 0.35);
}
#pcc-btn-accept-all:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 200, 240, 0.5);
}
#pcc-btn-manage {
	background: rgba(255, 255, 255, 0.06);
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
#pcc-btn-manage:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #f1f5f9;
}
#pcc-btn-reject-all {
	flex: 0 0 auto;
	background: transparent;
	color: #64748b;
	font-size: 12px;
	padding: 10px 8px;
	border: none;
}
#pcc-btn-reject-all:hover {
	color: #D42B5A;
}

/* =========================================================
   Preferences Modal
   ========================================================= */
#pcc-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	background: #0f1624;
	border: 1px solid rgba(0, 200, 240, 0.18);
	border-radius: 20px;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 200, 240, 0.05);
	z-index: 1000000;
	overflow: hidden;
	animation: pccSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	color: #e2e8f0;
}
#pcc-modal.pcc-visible {
	display: block;
}

/* Modal Header */
.pcc-modal-header {
	padding: 24px 24px 0;
	position: relative;
}
.pcc-modal-header-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.pcc-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #f1f5f9;
	margin: 0 0 6px;
}
.pcc-modal-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}
.pcc-modal-subtitle a {
	color: #00C8F0;
	text-decoration: none;
}
.pcc-modal-close {
	background: rgba(255,255,255,0.06);
	border: none;
	color: #94a3b8;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.15s ease;
}
.pcc-modal-close:hover {
	background: rgba(212, 43, 90, 0.2);
	color: #D42B5A;
}

/* Divider */
.pcc-modal-divider {
	height: 1px;
	background: rgba(255,255,255,0.07);
	margin: 20px 0 0;
}

/* Modal Body (scrollable) */
.pcc-modal-body {
	padding: 0 24px;
	overflow-y: auto;
	max-height: calc(100vh - 240px);
}
.pcc-modal-body::-webkit-scrollbar { width: 4px; }
.pcc-modal-body::-webkit-scrollbar-track { background: transparent; }
.pcc-modal-body::-webkit-scrollbar-thumb { background: rgba(0,200,240,0.25); border-radius: 4px; }

/* Compliance Badge Row */
.pcc-compliance-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 16px 0;
}
.pcc-badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid rgba(0, 200, 240, 0.3);
	color: #00C8F0;
	background: rgba(0, 200, 240, 0.06);
}

/* =========================================================
   Toggle Category Cards
   ========================================================= */
.pcc-category {
	padding: 16px 0;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pcc-category:last-of-type {
	border-bottom: none;
}
.pcc-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}
.pcc-category-meta {
	flex: 1;
}
.pcc-category-name {
	font-size: 14px;
	font-weight: 700;
	color: #f1f5f9;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pcc-category-name .pcc-required-pill {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: rgba(0,200,240,0.12);
	color: #00C8F0;
	padding: 2px 7px;
	border-radius: 20px;
	border: 1px solid rgba(0,200,240,0.25);
}
.pcc-category-desc {
	font-size: 12px;
	color: #64748b;
	margin-top: 3px;
}
.pcc-expand-icon {
	font-size: 11px;
	color: #475569;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
.pcc-category.pcc-open .pcc-expand-icon {
	transform: rotate(180deg);
}
.pcc-category-detail {
	display: none;
	font-size: 12px;
	color: #64748b;
	margin-top: 10px;
	padding: 12px;
	background: rgba(0,0,0,0.2);
	border-radius: 8px;
	border-left: 2px solid rgba(0,200,240,0.3);
	line-height: 1.6;
}
.pcc-category.pcc-open .pcc-category-detail {
	display: block;
	animation: pccFadeIn 0.2s ease;
}

/* =========================================================
   Toggle Switch — iOS-style
   ========================================================= */
.pcc-toggle-wrap {
	position: relative;
	flex-shrink: 0;
}
.pcc-toggle-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.pcc-toggle-label {
	display: block;
	width: 48px;
	height: 28px;
	background: #1e293b;
	border-radius: 14px;
	border: 1.5px solid rgba(255,255,255,0.1);
	cursor: pointer;
	position: relative;
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pcc-toggle-label::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #475569;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.pcc-toggle-input:checked + .pcc-toggle-label {
	background: linear-gradient(135deg, #00C8F0, #0078B4);
	border-color: transparent;
	box-shadow: 0 0 12px rgba(0,200,240,0.4);
}
.pcc-toggle-input:checked + .pcc-toggle-label::after {
	transform: translateX(20px);
	background: #fff;
}
.pcc-toggle-input:disabled + .pcc-toggle-label {
	opacity: 0.55;
	cursor: not-allowed;
}
.pcc-toggle-input:focus-visible + .pcc-toggle-label {
	outline: 2px solid #00C8F0;
	outline-offset: 2px;
}

/* =========================================================
   Modal Footer
   ========================================================= */
.pcc-modal-footer {
	padding: 16px 24px 24px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	background: linear-gradient(to top, #0a0e14 80%, transparent);
}
.pcc-modal-footer .pcc-btn {
	flex: 1;
	min-width: 120px;
}
#pcc-modal-btn-save {
	background: linear-gradient(135deg, #00C8F0, #0078B4);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0,200,240,0.3);
}
#pcc-modal-btn-save:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0,200,240,0.5);
}
#pcc-modal-btn-reject {
	background: rgba(212,43,90,0.1);
	color: #D42B5A;
	border: 1px solid rgba(212,43,90,0.25);
}
#pcc-modal-btn-reject:hover {
	background: rgba(212,43,90,0.2);
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes pccSlideUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes pccFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
/* Modal animation override */
#pcc-modal {
	transform: translate(-50%, -50%);
}
@keyframes pccModalIn {
	from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
	to   { opacity: 1; transform: translate(-50%, -50%); }
}
#pcc-modal.pcc-visible {
	animation: pccModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	#pcc-banner, #pcc-modal, .pcc-toggle-label, .pcc-toggle-label::after {
		animation: none;
		transition: none;
	}
}

/* Mobile adjustments */
@media (max-width: 480px) {
	#pcc-banner {
		bottom: 0;
		right: 0;
		left: 0;
		max-width: 100%;
		width: 100%;
		border-radius: 16px 16px 0 0;
		animation: pccSlideFromBottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	}
	@keyframes pccSlideFromBottom {
		from { opacity: 0; transform: translateY(100%); }
		to   { opacity: 1; transform: translateY(0); }
	}
	.pcc-modal-body {
		max-height: calc(100vh - 200px);
	}
}
