/* Simple Quiz Manager - Frontend Styles */

.sqm-quiz-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sqm-quiz-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.sqm-quiz-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
}

.sqm-quiz-description {
    color: #666;
    line-height: 1.6;
}

/* User Info */
.sqm-user-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sqm-form-field {
    margin-bottom: 15px;
}

.sqm-form-field:last-child {
    margin-bottom: 0;
}

.sqm-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.sqm-form-field input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.sqm-form-field input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Questions */
.sqm-quiz-form {
    margin-bottom: 30px;
}

.sqm-question {
    margin-bottom: 30px;
    padding: 25px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

.sqm-question:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sqm-question-number-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sqm-question-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.sqm-question-points {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.sqm-question-answers {
    margin-top: 15px;
}

.sqm-answer-option {
    display: block;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sqm-answer-option:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
    transform: translateX(5px);
}

.sqm-answer-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sqm-answer-text {
    font-size: 16px;
    color: #333;
}

.sqm-text-answer {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.sqm-text-answer:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* No Questions */
.sqm-no-questions {
    padding: 40px 20px;
    text-align: center;
}

/* Actions */
.sqm-quiz-actions {
    text-align: center;
    margin-top: 30px;
}

.sqm-submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sqm-submit-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.sqm-submit-btn:active {
    transform: translateY(0);
}

.sqm-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sqm-submit-btn .dashicons {
    font-size: 22px;
}

/* Results */
.sqm-results {
    margin-top: 30px;
}

.sqm-results-header h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.sqm-score-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
}

.sqm-score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.sqm-score-percentage {
    font-size: 48px;
    font-weight: bold;
}

.sqm-score-text {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.9;
}

.sqm-score-message {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0;
}

/* Badges */
.sqm-badges-earned {
    margin: 20px 0;
    padding: 20px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffe082;
}

/* Actions */
.sqm-results-actions {
    text-align: center;
    margin-top: 30px;
}

.sqm-retry-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sqm-retry-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.sqm-retry-btn .dashicons {
    font-size: 18px;
}

/* Leaderboard */
.sqm-leaderboard-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.sqm-leaderboard-section h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading */
.sqm-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .sqm-quiz-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .sqm-quiz-title {
        font-size: 22px;
    }
    
    .sqm-question {
        padding: 15px;
    }
    
    .sqm-question-text {
        font-size: 16px;
    }
    
    .sqm-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .sqm-score-percentage {
        font-size: 36px;
    }
    
    .sqm-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}
