/* ==========================================================================
   Ford Schachfreunde Survey – Frontend Popup
   ========================================================================== */

/* -- Popup-Container -- */
.fsf-survey-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99999;
	width: 380px;
	max-width: calc(100vw - 40px);
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	overflow: hidden;
}

.fsf-survey-popup.fsf-visible {
	opacity: 1;
	transform: translateY(0);
}

.fsf-survey-popup.fsf-hiding {
	opacity: 0;
	transform: translateY(20px);
}

/* -- Header -- */
.fsf-survey-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #eee;
}

.fsf-survey-header span {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	letter-spacing: 0.02em;
}

.fsf-survey-sim-badge {
	font-size: 11px;
	font-weight: 600;
	color: #d35400;
	background: #fef3e7;
	border: 1px solid #f0c27a;
	border-radius: 4px;
	padding: 2px 8px;
	margin-left: 8px;
	white-space: nowrap;
}

.fsf-survey-close {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s;
}

.fsf-survey-close:hover {
	color: #333;
}

/* -- Body -- */
.fsf-survey-body {
	padding: 16px;
}

.fsf-survey-question {
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 14px;
	color: #222;
}

/* -- Sterne (stars) -- */
.fsf-stars {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin: 8px 0;
}

.fsf-star {
	font-size: 28px;
	color: #ccc;
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
	user-select: none;
	background: none;
	border: none;
	padding: 0;
	line-height: 1;
}

.fsf-star:hover,
.fsf-star.fsf-star-active {
	color: #f5a623;
	transform: scale(1.15);
}

/* Hover-Effekt: alle Sterne bis zum gehoverten füllen */
.fsf-stars:hover .fsf-star {
	color: #ccc;
}

.fsf-stars .fsf-star:hover,
.fsf-stars .fsf-star:hover ~ .fsf-star-reverse {
	color: #f5a623;
}

/* -- Buttons (Ja/Nein/Egal, Single Choice) -- */
.fsf-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fsf-option-btn {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	color: #333;
	font-family: inherit;
	line-height: 1.4;
}

.fsf-option-btn:hover {
	background: #eef4ff;
	border-color: #4a90d9;
}

.fsf-option-btn:active {
	background: #dce8f7;
}

/* Ja/Nein/Egal horizontal nebeneinander */
.fsf-options-inline {
	flex-direction: row;
	justify-content: center;
}

.fsf-options-inline .fsf-option-btn {
	text-align: center;
	flex: 1;
}

/* -- Danke-Nachricht -- */
.fsf-survey-thanks {
	text-align: center;
	padding: 20px 16px;
	font-size: 14px;
	color: #555;
}

.fsf-survey-thanks strong {
	display: block;
	font-size: 16px;
	margin-bottom: 4px;
	color: #222;
}

/* -- Freitext-Eingabe bei „Andere" -- */
.fsf-freetext-wrap {
	padding: 0 16px 16px;
}

.fsf-freetext-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
	transition: border-color 0.2s;
}

.fsf-freetext-input:focus {
	outline: none;
	border-color: #2c6e49;
	box-shadow: 0 0 0 2px rgba(44, 110, 73, 0.15);
}

.fsf-freetext-input.fsf-freetext-error {
	border-color: #d63031;
	box-shadow: 0 0 0 2px rgba(214, 48, 49, 0.15);
}

.fsf-freetext-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.fsf-freetext-counter {
	font-size: 11px;
	color: #999;
}

.fsf-freetext-submit {
	flex-shrink: 0;
}

/* -- Mobile Anpassungen -- */
@media (max-width: 480px) {
	.fsf-survey-popup {
		bottom: 10px;
		right: 10px;
		width: calc(100vw - 20px);
		font-size: 13px;
	}

	.fsf-star {
		font-size: 24px;
	}

	.fsf-option-btn {
		font-size: 12px;
		padding: 8px 12px;
	}
}
