/* =============================================================
   TR Çerez Onayı – Banner + Modal Styles
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   BANNER
───────────────────────────────────────────────────────────── */
#trcc-banner {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	z-index: 99999;
	width: calc(100% - 48px);
	max-width: 900px;

	background: rgba(18, 38, 70, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);

	border: 1.5px solid rgba(120, 220, 180, 0.55);
	box-shadow:
		0 0 0 1px rgba(100, 200, 160, 0.18),
		0 8px 32px rgba(0, 0, 0, 0.45),
		inset 0 0 60px rgba(255, 255, 255, 0.03);

	border-radius: 14px;
	color: #ffffff;
	padding: 22px 24px 22px 28px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	animation: trcc-slide-up .4s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes trcc-slide-up {
	from { transform: translateX(-50%) translateY(30px); opacity: 0; }
	to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}

#trcc-banner.trcc-hidden {
	animation: trcc-slide-down .3s ease-in both;
}

@keyframes trcc-slide-down {
	from { transform: translateX(-50%) translateY(0);    opacity: 1; }
	to   { transform: translateX(-50%) translateY(30px); opacity: 0; }
}

.trcc-cookie-icon {
	position: absolute;
	bottom: -18px;
	left: 20px;
	font-size: 32px;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
	pointer-events: none;
	user-select: none;
}

.trcc-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.trcc-text { width: 100%; }

.trcc-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: .01em;
}

.trcc-desc {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
}

.trcc-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   PAYLAŞILAN BUTON STİLLERİ (Banner + Modal)
───────────────────────────────────────────────────────────── */
.trcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
	line-height: 1.4;
}

.trcc-btn--outline {
	background: transparent;
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.trcc-btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	box-shadow: 0 0 8px rgba(255,255,255,.2);
}

.trcc-btn--solid {
	background: #ffffff;
	color: #1a3560;
	border: 1.5px solid #ffffff;
}
.trcc-btn--solid:hover {
	background: #e2ecff;
	border-color: #e2ecff;
	box-shadow: 0 0 12px rgba(255,255,255,.3);
}

/* ─────────────────────────────────────────────────────────────
   MODAL OVERLAY
───────────────────────────────────────────────────────────── */
#trcc-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	background: rgba(5, 15, 35, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 20px;
	opacity: 0;
	transition: opacity .25s ease;
}

#trcc-modal-overlay.trcc-modal-open {
	opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   MODAL KUTUSU
───────────────────────────────────────────────────────────── */
#trcc-modal {
	background: rgba(18, 38, 70, 0.88);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1.5px solid rgba(120, 220, 180, 0.5);
	box-shadow:
		0 0 0 1px rgba(100, 200, 160, 0.12),
		0 24px 64px rgba(0, 0, 0, 0.6);
	border-radius: 16px;
	color: #ffffff;
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	transform: translateY(20px);
	transition: transform .3s cubic-bezier(.22,.68,0,1.2);
}

#trcc-modal-overlay.trcc-modal-open #trcc-modal {
	transform: translateY(0);
}

/* Scrollbar */
#trcc-modal::-webkit-scrollbar { width: 6px; }
#trcc-modal::-webkit-scrollbar-track { background: transparent; }
#trcc-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

/* Header */
.trcc-modal-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 20px 0;
}

.trcc-modal-icon {
	font-size: 26px;
	line-height: 1;
}

.trcc-modal-title {
	flex: 1;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

#trcc-modal-close {
	background: transparent;
	border: none;
	color: rgba(255,255,255,.6);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	transition: color .15s;
}
#trcc-modal-close:hover { color: #ffffff; }

/* Intro text */
.trcc-modal-intro {
	margin: 12px 20px 16px;
	font-size: 13px;
	color: rgba(255,255,255,.75);
	line-height: 1.55;
}

/* Kategori listesi */
.trcc-cat-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 12px;
}

.trcc-cat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 10px;
	border-radius: 10px;
	transition: background .15s;
}
.trcc-cat-row:hover { background: rgba(255,255,255,.06); }

.trcc-cat-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.trcc-cat-label {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.trcc-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 20px;
	background: rgba(100, 200, 160, 0.25);
	color: #7de8c0;
	border: 1px solid rgba(100,200,160,.35);
	letter-spacing: .03em;
	text-transform: uppercase;
}

.trcc-cat-desc {
	font-size: 12px;
	color: rgba(255,255,255,.58);
	line-height: 1.45;
}

/* Toggle switch */
.trcc-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
}

.trcc-toggle--locked {
	cursor: not-allowed;
	opacity: .7;
}

.trcc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.trcc-slider {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.2);
	border-radius: 24px;
	transition: background .2s;
}

.trcc-slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform .2s;
	box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.trcc-toggle input:checked + .trcc-slider {
	background: rgba(80, 200, 150, 0.85);
}

.trcc-toggle input:checked + .trcc-slider::before {
	transform: translateX(20px);
}

/* Modal footer */
.trcc-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 20px 20px;
	border-top: 1px solid rgba(255,255,255,.1);
	margin-top: 16px;
	flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	#trcc-banner {
		bottom: 16px;
		width: calc(100% - 24px);
		padding: 18px 16px 22px;
	}
	.trcc-actions {
		flex-wrap: wrap;
		justify-content: stretch;
	}
	.trcc-btn {
		flex: 1 1 auto;
		text-align: center;
	}
	.trcc-modal-footer {
		flex-direction: column;
	}
	.trcc-modal-footer .trcc-btn {
		width: 100%;
	}
}
