/* ==================== PERCENTAGE BADGE (общий стиль) ==================== */
.percentage-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.percentage-high {
    background: #d4edda;
    color: #155724;
}

.percentage-medium {
    background: #fff3cd;
    color: #856404;
}

.percentage-low {
    background: #f8d7da;
    color: #721c24;
}

/* ==================== ДЕТАЛЬНЫЙ ПРОСМОТР РЕЗУЛЬТАТА ==================== */
.view-result-page {
    min-height: 100vh;
}

.view-result-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #e0f7fa 0%, #f3e5f5 100%);
}

.view-result-container {
    max-width: 1000px;
    margin: 0 auto;
}

.result-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.detail-title {
    font-size: 2.5rem;
    color: #2c3e50;
}

.btn-back {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

/* Общая информация */
.detail-summary {
    background: white;
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.summary-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-percentage {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00acc1 0%, #8e24aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-right h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.info-row i {
    width: 30px;
    color: #00acc1;
}

/* Детальные ответы */
.answers-detail {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.answers-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.answer-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #e0e0e0;
}

.answer-correct {
    border-left-color: #43e97b;
    background: linear-gradient(90deg, rgba(67, 233, 123, 0.05) 0%, transparent 100%);
}

.answer-wrong {
    border-left-color: #e74c3c;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.05) 0%, transparent 100%);
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.answer-number {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.answer-status {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.answer-correct .answer-status {
    color: #43e97b;
}

.answer-wrong .answer-status {
    color: #e74c3c;
}

.answer-question {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.option-correct {
    border-color: #43e97b;
    background: rgba(67, 233, 123, 0.1);
}

.option-wrong {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.option-letter-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.option-correct .option-letter-sm {
    background: #43e97b;
    color: white;
}

.option-wrong .option-letter-sm {
    background: #e74c3c;
    color: white;
}

.option-text-sm {
    flex: 1;
    color: #2c3e50;
}

.answer-option i {
    color: #43e97b;
    font-size: 1.2rem;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .detail-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .view-result-section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 2rem;
    }
    
    .result-detail-header {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .answer-options {
        gap: 8px;
    }
}

