/**
 * Dona Game Front-End Styles
 *
 * @package Dona
 */

/* Main Game Container */
.dona-game-wrapper {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Game Card */
.dona-game-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin-bottom: 30px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dona-game-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.dona-image-container {
	position: relative;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 40px 20px;
	text-align: center;
}

.dona-image-container img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
}

.dona-image-container img:hover {
	transform: scale(1.02);
}

/* Content Section */
.dona-content {
	padding: 40px 30px;
}

/* Messages */
.dona-message {
	padding: 20px 24px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 16px;
	line-height: 1.6;
}

.dona-message.info {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border-left: 4px solid #2196f3;
	color: #0d47a1;
}

.dona-message.success {
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	border-left: 4px solid #4caf50;
	color: #1b5e20;
}

.dona-message.error {
	background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
	border-left: 4px solid #f44336;
	color: #b71c1c;
}

.dona-message.warning {
	background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
	border-left: 4px solid #ff9800;
	color: #e65100;
}

/* Countdown */
.dona-countdown {
	display: inline-block;
	padding: 12px 24px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 8px;
	font-size: 24px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
	margin: 20px 0;
}

/* Form Container */
.dona-form-container {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 32px;
	margin: 24px 0;
}

.dona-form-title {
	font-size: 20px;
	font-weight: 600;
	color: #23282d;
	margin-bottom: 20px;
	text-align: center;
}

.dona-form {
	max-width: 500px;
	margin: 0 auto;
}

.dona-form-group {
	margin-bottom: 20px;
}

.dona-form-label {
	display: block;
	font-weight: 600;
	color: #23282d;
	margin-bottom: 8px;
	font-size: 14px;
}

.dona-form-input {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.dona-form-input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dona-form-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
}

.dona-form-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.dona-form-checkbox label {
	cursor: pointer;
	font-size: 14px;
	color: #555;
}

.dona-form-hint {
	font-size: 13px;
	color: #666;
	margin-top: 12px;
	text-align: center;
	font-style: italic;
}

/* Buttons */
.dona-button {
	display: inline-block;
	padding: 14px 32px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dona-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dona-button:active {
	transform: translateY(0);
}

.dona-button-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.dona-button-primary:hover {
	background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
	color: #fff;
}

.dona-button-secondary {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #fff;
}

.dona-button-secondary:hover {
	background: linear-gradient(135deg, #e07ff0 0%, #e14558 100%);
	color: #fff;
}

.dona-button-success {
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	color: #fff;
}

.dona-button-success:hover {
	background: linear-gradient(135deg, #0d7a72 0%, #2dd868 100%);
	color: #fff;
}

.dona-button-block {
	display: block;
	width: 100%;
}

/* Solution Container */
.dona-solution-container {
	text-align: center;
	margin-top: 30px;
}

.dona-solution {
	display: none;
	padding: 24px;
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	border-radius: 12px;
	color: #fff;
	margin: 20px 0;
	font-size: 18px;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(17, 153, 142, 0.3);
}

.dona-solution.active {
	display: block;
	animation: slideDown 0.4s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Navigation */
.dona-navigation {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
	flex-wrap: wrap;
}

/* Login Prompt */
.dona-login-prompt {
	text-align: center;
	padding: 40px 30px;
}

.dona-login-prompt h3 {
	color: #23282d;
	margin-bottom: 16px;
	font-size: 24px;
}

.dona-login-prompt p {
	color: #666;
	line-height: 1.8;
	margin-bottom: 12px;
	font-size: 16px;
}

.dona-login-prompt a {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
}

.dona-login-prompt a:hover {
	text-decoration: underline;
}

/* Winner Banner */
.dona-winner-banner {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #fff;
	padding: 30px;
	border-radius: 12px;
	text-align: center;
	margin-bottom: 30px;
	box-shadow: 0 8px 24px rgba(245, 87, 108, 0.3);
}

.dona-winner-banner h2 {
	margin: 0 0 10px 0;
	font-size: 32px;
	font-weight: 700;
}

.dona-winner-banner p {
	margin: 0;
	font-size: 18px;
}

.dona-winner-banner strong {
	font-weight: 700;
	font-size: 24px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.dona-game-wrapper {
		margin: 20px auto;
		padding: 0 15px;
	}

	.dona-content {
		padding: 24px 20px;
	}

	.dona-form-container {
		padding: 24px 20px;
	}

	.dona-message {
		padding: 16px 20px;
		font-size: 15px;
	}

	.dona-button {
		padding: 12px 24px;
		font-size: 15px;
	}

	.dona-winner-banner h2 {
		font-size: 24px;
	}

	.dona-winner-banner p {
		font-size: 16px;
	}

	.dona-navigation {
		flex-direction: column;
	}

	.dona-navigation .dona-button {
		width: 100%;
	}
}

/* Loading State */
.dona-loading {
	text-align: center;
	padding: 60px 20px;
}

.dona-loading::after {
	content: "";
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Accessibility */
.dona-game-wrapper *:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

.dona-button:focus,
.dona-form-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Print Styles */
@media print {
	.dona-game-card {
		box-shadow: none;
		border: 1px solid #000;
	}

	.dona-button,
	.dona-form-container,
	.dona-navigation {
		display: none;
	}
}
