/* Scoped styling for FPSM Content Rating (Explicit/Tame) UI */

.st-geo-rating {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #475569;
}

.st-geo-rating__header { margin-bottom: 16px; position: relative; padding-right: 120px; }
.st-geo-rating__title { color: #1e293b; font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.st-geo-rating__desc { color: #475569; font-size: 14px; margin: 0; }
.st-geo-rating__help-btn {
	position: absolute;
	top: 0;
	right: 0;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	padding: 7px 12px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.st-geo-rating__help-btn:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #475569;
	transform: scale(1.05);
}
.st-geo-rating__help-btn:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.st-geo-rating__buttons { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .st-geo-rating__buttons { grid-template-columns: 1fr 1fr; } }

.st-geo-rating__help-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
}

.st-geo-rating__help-label {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
}

.st-geo-rating__btn {
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font: inherit;
    color: #475569;
    display: block;
}

.st-geo-rating__btn:hover { border-color: #cbd5e1; }

.st-geo-rating__btn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.st-geo-rating__icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: #94a3b8; font-size: 18px; }
.st-geo-rating__label { font-size: 16px; font-weight: 500; }
.st-geo-rating__sublabel { display: block; font-size: 14px; color: #64748b; margin-left: 28px; }

.st-geo-rating__btn--explicit.is-selected { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
.st-geo-rating__btn--explicit.is-selected .st-geo-rating__icon { color: #d97706; }
.st-geo-rating__btn--explicit.is-selected .st-geo-rating__label { color: #92400e; }
.st-geo-rating__btn--explicit.is-selected .st-geo-rating__sublabel { color: #d97706; }

.st-geo-rating__btn--tame.is-selected { border-color: #10b981; background: #ecfdf5; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
.st-geo-rating__btn--tame.is-selected .st-geo-rating__icon { color: #059669; }
.st-geo-rating__btn--tame.is-selected .st-geo-rating__label { color: #065f46; }
.st-geo-rating__btn--tame.is-selected .st-geo-rating__sublabel { color: #059669; }

.st-geo-rating__helper { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 14px; color: #475569; }
.st-geo-rating__helper--tame { color: #b91c1c; }

/* Defensive: keep hidden source fields hidden even if themes override inline styles */
.st-rating-processed { display: none !important; }

/* Help Modal Styles */
.st-geo-rating-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: st-modal-fade-in 0.2s ease;
}
.st-geo-rating-modal-open {
	overflow: hidden;
}
.st-geo-rating-modal[hidden] {
	display: none !important;
	visibility: hidden;
	pointer-events: none;
}
.st-geo-rating-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}
.st-geo-rating-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	animation: st-modal-slide-up 0.3s ease;
	overflow: hidden;
}
.st-geo-rating-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
	z-index: 10;
	padding: 0;
}
.st-geo-rating-modal__close:hover {
	background: #f1f5f9;
	color: #475569;
}
.st-geo-rating-modal__close:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
.st-geo-rating-modal__content {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}
.st-geo-rating-modal__title {
	color: #1e293b;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 24px;
	padding-right: 32px;
}
.st-geo-rating-modal__section {
	margin-bottom: 32px;
}
.st-geo-rating-modal__section:last-child {
	margin-bottom: 0;
}
.st-geo-rating-modal__section-title {
	color: #1e293b;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 12px;
}
.st-geo-rating-modal__section p {
	color: #475569;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 12px;
}
.st-geo-rating-modal__section p:last-child {
	margin-bottom: 0;
}
.st-geo-rating-modal__list {
	color: #475569;
	font-size: 15px;
	line-height: 1.6;
	margin: 12px 0;
	padding-left: 24px;
}
.st-geo-rating-modal__list li {
	margin-bottom: 8px;
}
.st-geo-rating-modal__list li:last-child {
	margin-bottom: 0;
}

@keyframes st-modal-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes st-modal-slide-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile-first responsive adjustments */
@media (min-width: 640px) {
	.st-geo-rating-modal__content {
		padding: 32px;
	}
	.st-geo-rating-modal__title {
		font-size: 28px;
	}
	.st-geo-rating-modal__section-title {
		font-size: 22px;
	}
}
