/* Ortaokul Oyunları - Genel Stil Dosyası */

:root {
    --game-primary: #6366f1;
    --game-secondary: #8b5cf6;
    --game-success: #10b981;
    --game-warning: #f59e0b;
    --game-danger: #ef4444;
    --game-bg: #f8fafc;
    --game-card: #ffffff;
    --game-text: #1e293b;
    --game-border: #e2e8f0;
}

.option-btn {
    color: var(--game-text) !important;
}

.option-btn:hover {
    color: var(--game-primary) !important;
}

.option-btn.selected {
    color: var(--game-primary) !important;
    font-weight: 700;
}

.game-btn-primary {
    color: white !important;
}


.ortaokul-game-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--game-bg);
    border-radius: 16px;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h3 {
    color: var(--game-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.game-header p {
    color: var(--game-text);
    opacity: 0.7;
    font-size: 1rem;
}

.game-card {
    background: var(--game-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--game-border);
    transition: all 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.scenario-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--game-text);
    margin-bottom: 1rem;
}

.scenario-description {
    line-height: 1.6;
    color: var(--game-text);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--game-bg);
    border-radius: 8px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--game-border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.4;
}

.option-btn:hover {
    border-color: var(--game-primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-btn.selected {
    border-color: var(--game-primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-btn.correct {
    border-color: var(--game-success);
    background: rgba(16, 185, 129, 0.1);
}

.option-btn.incorrect {
    border-color: var(--game-danger);
    background: rgba(239, 68, 68, 0.1);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback-box {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.feedback-box.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.feedback-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--game-success);
    color: var(--game-success);
}

.feedback-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--game-danger);
    color: var(--game-danger);
}

.feedback-box.info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--game-primary);
    color: var(--game-primary);
}

.game-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--game-card);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--game-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--game-primary), var(--game-secondary));
    transition: width 0.3s ease;
    border-radius: 4px;
}

.score-display {
    font-weight: 600;
    color: var(--game-primary);
    font-size: 1.1rem;
}

.game-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn-primary {
    background: var(--game-primary);
    color: white;
}

.game-btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.game-btn-secondary {
    background: var(--game-border);
    color: var(--game-text);
}

.game-btn-secondary:hover {
    background: #cbd5e1;
}

.game-results {
    text-align: center;
    padding: 2rem;
    background: var(--game-card);
    border-radius: 12px;
    display: none;
}

.game-results.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--game-primary);
    margin: 1rem 0;
}

.results-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--game-text);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ortaokul-game-container {
        padding: 1rem;
    }

    .game-header h3 {
        font-size: 1.5rem;
    }

    .option-btn {
        padding: 0.75rem 1rem;
    }
}