/* ========================================
   LOGIN FORM (YENİ)
   ======================================== */
.agfo-login-container {
	max-width: 450px;
	margin: 50px auto;
	padding: 40px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.agfo-form h2 {
	margin-top: 0;
	margin-bottom: 30px;
	text-align: center;
	color: #1e293b;
	font-size: 28px;
	font-weight: 700;
}

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

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

.form-group input {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s;
	box-sizing: border-box;
}

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

.agfo-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.agfo-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.agfo-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.agfo-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.agfo-message {
	margin-top: 20px;
}

.agfo-success {
	padding: 15px;
	background: #d4edda;
	color: #155724;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
	border: 1px solid #c3e6cb;
}

.agfo-error {
	padding: 15px;
	background: #f8d7da;
	color: #721c24;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
	border: 1px solid #f5c6cb;
}

/* User Info (Logged In State) */
.agfo-user-info {
	max-width: 450px;
	margin: 50px auto;
	padding: 30px;
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.agfo-user-info p {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #155724;
}

.agfo-logout-btn {
	display: inline-block;
	padding: 10px 25px;
	background: #dc3545;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s;
	box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.agfo-logout-btn:hover {
	background: #c82333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
	color: #fff;
	text-decoration: none;
}

/* Login Required Message */
.agfo-quiz-login-required {
	max-width: 500px;
	margin: 50px auto;
	padding: 40px;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.agfo-quiz-login-required p {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #856404;
}

.agfo-quiz-login-required .agfo-btn {
	width: auto;
	padding: 12px 30px;
}

/* ========================================
   QUIZ SYSTEM (MEVCUT)
   ======================================== */

/* Quiz Start Screen */
.agfo-quiz-header {
	text-align: center;
	padding: 40px 30px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 12px;
	margin-bottom: 30px;
}

.agfo-quiz-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #fff;
}

.agfo-quiz-description {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 30px;
	opacity: 0.95;
}

.agfo-quiz-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.quiz-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	backdrop-filter: blur(10px);
}

.meta-icon {
	font-size: 18px;
}

.agfo-quiz-start-btn {
	display: inline-block;
	padding: 15px 40px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.agfo-quiz-start-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

/* Timer */
.agfo-quiz-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 15px 30px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50px;
	margin: 0 auto 30px;
	max-width: 300px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timer-icon {
	font-size: 24px;
}

.timer-label {
	font-size: 14px;
	font-weight: 600;
	color: #666;
}

.timer-value {
	font-size: 24px;
	font-weight: 700;
	color: #2271b1;
	font-family: 'Courier New', monospace;
}

.timer-warning .timer-value {
	color: #ffc107;
}

.timer-danger .timer-value {
	color: #dc3545;
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Progress Bar */
.agfo-quiz-progress {
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
}

.progress-bar {
	height: 12px;
	background: #e9ecef;
	border-radius: 25px;
	overflow: hidden;
	margin-bottom: 10px;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	transition: width 0.3s ease;
	border-radius: 25px;
}

.progress-text {
	text-align: center;
	font-size: 14px;
	color: #666;
	font-weight: 600;
}

.progress-current {
	color: #667eea;
	font-size: 18px;
	font-weight: 700;
}

/* Questions */
.agfo-quiz-question {
	background: #fff;
	padding: 30px;
	margin-bottom: 25px;
	border-radius: 12px;
	border-left: 4px solid #2271b1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s;
}

.agfo-quiz-question:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.question-unanswered {
	border-left-color: #dc3545;
	animation: shake 0.5s;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-10px); }
	75% { transform: translateX(10px); }
}

.agfo-question-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.question-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 18px;
}

.question-meta {
	display: flex;
	gap: 10px;
	align-items: center;
}

.question-difficulty {
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.question-points {
	padding: 6px 14px;
	background: #f0f6fc;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #2271b1;
}

.agfo-question-title {
	font-size: 20px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 15px;
	line-height: 1.5;
}

.agfo-question-content {
	font-size: 15px;
	color: #64748b;
	margin-bottom: 20px;
	line-height: 1.6;
}

/* Answers */
.agfo-question-answers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.agfo-answer-option {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px 20px;
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.agfo-answer-option:hover {
	border-color: #667eea;
	background: #f0f6fc;
	transform: translateX(5px);
}

.agfo-answer-option.selected {
	border-color: #667eea;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.agfo-answer-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.answer-radio {
	width: 24px;
	height: 24px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	position: relative;
	transition: all 0.2s;
	flex-shrink: 0;
}

.agfo-answer-option input[type="radio"]:checked ~ .answer-radio {
	border-color: #667eea;
	background: #667eea;
}

.agfo-answer-option input[type="radio"]:checked ~ .answer-radio::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background: #fff;
	border-radius: 50%;
}

.agfo-answer-text {
	flex: 1;
	font-size: 16px;
	color: #1e293b;
	line-height: 1.5;
}

/* Quiz Footer */
.agfo-quiz-footer {
	text-align: center;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #e9ecef;
}

.agfo-quiz-submit-btn {
	padding: 18px 50px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.agfo-quiz-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.agfo-quiz-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Results */
.agfo-quiz-result {
	text-align: center;
	padding: 50px 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-box {
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-box.passed {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border: 3px solid #28a745;
}

.result-box.failed {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	border: 3px solid #dc3545;
}

.result-icon {
	font-size: 80px;
	margin-bottom: 20px;
	animation: bounceIn 0.6s;
}

@keyframes bounceIn {
	0% { transform: scale(0); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.result-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 40px 0;
}

.result-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin: 40px 0;
}

.result-stat,
.stat-item {
	padding: 20px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	backdrop-filter: blur(10px);
}

.stat-label {
	font-size: 13px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
	font-weight: 600;
	display: block;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: #1e293b;
	display: block;
}

.agfo-quiz-retry-btn {
	padding: 15px 40px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.agfo-quiz-retry-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

/* Quiz List */
.agfo-quiz-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	margin: 30px 0;
}

.agfo-quiz-list-item {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s;
}

.agfo-quiz-list-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quiz-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.quiz-content {
	padding: 25px;
}

.agfo-quiz-list-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #1e293b;
}

.quiz-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
}

.quiz-category-tag {
	padding: 4px 12px;
	background: #f0f6fc;
	color: #2271b1;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
}

.agfo-quiz-list-excerpt {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 20px;
	line-height: 1.6;
}

.agfo-quiz-list-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}

/* Error */
.agfo-quiz-error {
	padding: 30px;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	border-radius: 8px;
	margin: 20px 0;
}

.agfo-quiz-error p {
	margin: 0;
	color: #856404;
	font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
	.agfo-quiz-container,
	.agfo-login-container {
		padding: 15px;
	}
	
	.agfo-quiz-title {
		font-size: 24px;
	}
	
	.agfo-quiz-meta {
		flex-direction: column;
		align-items: stretch;
	}
	
	.agfo-quiz-question {
		padding: 20px;
	}
	
	.agfo-question-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.result-stats {
		grid-template-columns: 1fr;
	}
	
	.agfo-quiz-list {
		grid-template-columns: 1fr;
	}
}
