/**
 * ================================================
 * 1차 채점 결과 화면 스타일
 * ================================================
 */

.result-screen {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

/* 헤더 */
.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 16px;
    color: #666;
}

/* 점수 카드 */
.result-score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
    color: #fff;
}

.result-total-score {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.result-percentage {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 16px;
}

.result-level-container {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 32px;
    border-radius: 100px;
    margin-top: 8px;
}

.result-level-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    margin-right: 8px;
}

.result-level {
    font-size: 32px;
    font-weight: 800;
}

/* 만점 축하 효과 */
.result-score-card.perfect {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
    overflow: hidden;
}

.result-score-card.perfect::before {
    content: '🎉';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    animation: celebrate 1s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

/* 만점 폭죽 애니메이션 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f093fb;
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(2n) { background: #667eea; }
.confetti:nth-child(3n) { background: #f5576c; }
.confetti:nth-child(4n) { background: #ffd700; }
.confetti:nth-child(5n) { background: #4CAF50; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 섹션별 점수 */
.result-component-section {
    margin-bottom: 32px;
}

.result-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.result-component-list {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
}

.result-component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.result-component-item:last-child {
    margin-bottom: 0;
}

.result-component-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.component-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.component-score {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

/* 버튼 영역 */
.result-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.result-buttons .btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 300px;
}

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

.result-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.result-buttons .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.result-buttons .btn-secondary:hover {
    background: #e0e0e0;
}

/* 반응형 */
@media (max-width: 768px) {
    .result-screen {
        margin: 20px;
        padding: 24px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-total-score {
        font-size: 48px;
    }
    
    .result-percentage {
        font-size: 20px;
    }
    
    .result-level {
        font-size: 28px;
    }
    
    .result-buttons {
        flex-direction: column;
    }
    
    .result-buttons .btn {
        max-width: 100%;
    }
}
