/* =========================================
   HARA 진로 교육 플랫폼
   심리검사 전용 스타일
   static/css/psychology-test.css
========================================= */

/* =========================================
   심리검사 컨테이너
========================================= */
.psychology-test-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================
   검사 시작 페이지 (start.html) - detail + start 통합
========================================= */
.test-start-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 130px);
    padding: 60px 20px;
}

/* 부제목 */
.test-subtitle {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* 설명 */
.test-description {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    text-align: center;
}

/* 섹션 제목 */
.test-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 섹션 설명 */
.test-section-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* 검사 정보 아이템 */
.test-info-item {
    padding: 20px 10px;
    transition: transform 0.3s ease;
}

.test-info-item:hover {
    transform: translateY(-5px);
}

.test-info-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.test-info-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.test-info-value {
    font-size: 18px;
    color: #667eea;
    font-weight: 700;
    margin: 0;
}

/* 구분선 */
.test-card-body hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Alert 스타일 커스터마이징 */
.test-card-body .alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.test-card-body .alert i {
    font-size: 20px;
}

.test-card-body .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.test-card-body .alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* 결과 보기 버튼 */
.test-btn-result {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 16px;
    padding: 14px 28px;
}

.test-btn-result:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
}

/* 푸터 버튼 레이아웃 조정 */
.test-card-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.test-card-footer .test-btn {
    flex: 0 1 auto;
}

.test-start-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 카드 헤더 */
.test-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.test-card-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.test-icon {
    font-size: 40px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 카드 본문 */
.test-card-body {
    padding: 40px 30px;
}

.test-intro-title {
    font-size: 20px;
    color: #1a202c;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* 안내 박스 */
.test-info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.test-info-box h6 {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-info-box li {
    padding: 8px 0;
    color: #1e3a8a;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.test-info-box li::before {
    content: '✓';
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.test-info-box strong {
    color: #1e40af;
    font-weight: 700;
}

/* 주의사항 박스 */
.test-warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.test-warning-box h6 {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-warning-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-warning-box li {
    padding: 8px 0;
    color: #78350f;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.test-warning-box li::before {
    content: '⚠';
    color: #f59e0b;
    font-size: 18px;
    flex-shrink: 0;
}

/* 준비 메시지 */
.test-ready-message {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
    font-size: 16px;
}

/* 카드 푸터 */
.test-card-footer {
    background: #f8fafc;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

/* 버튼 스타일 */
.test-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.test-btn-back {
    background: white;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.test-btn-back:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateX(-3px);
}

.test-btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    padding: 16px 36px;
}

.test-btn-start:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

.test-btn-start:active {
    transform: translateY(-1px);
}

/* 아이콘 애니메이션 */
.test-btn-back .btn-icon {
    transition: transform 0.3s ease;
}

.test-btn-back:hover .btn-icon {
    transform: translateX(-3px);
}

.test-btn-start .btn-icon {
    transition: transform 0.3s ease;
}

.test-btn-start:hover .btn-icon {
    transform: scale(1.2);
}

/* =========================================
   검사 진행 페이지 (test.html)
========================================= */
.test-progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.test-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-question-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.test-question-number {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.test-question-text {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 답변 옵션 */
.test-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.test-option.selected {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-color: #667eea;
}

.test-option-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.test-option.selected .test-option-radio {
    border-color: #667eea;
    background: #667eea;
    border-width: 6px;
}

.test-option-text {
    font-size: 16px;
    color: #334155;
    font-weight: 500;
}

.test-option.selected .test-option-text {
    color: #5b21b6;
    font-weight: 600;
}

/* =========================================
   결과 페이지 (result.html)
========================================= */
.test-result-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 130px);
    padding: 60px 20px;
}

.test-result-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.test-result-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e5e7ff 100%);
    padding: 50px 30px;
    text-align: center;
}

.test-result-title {
    font-size: 36px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 15px;
}

.test-result-subtitle {
    font-size: 18px;
    color: #64748b;
}

.test-result-body {
    padding: 50px 40px;
}

/* =========================================
   반응형 디자인
========================================= */
@media (max-width: 768px) {
    .psychology-test-container {
        padding: 30px 15px;
        max-width: 100%;
        width: 100%;
    }

    .test-start-wrapper,
    .test-result-wrapper {
        padding: 40px 15px;
    }

    .test-card-header {
        padding: 30px 20px;
    }

    .test-card-header h3 {
        font-size: 24px;
    }

    .test-card-body {
        padding: 30px 20px;
    }

    .test-info-box,
    .test-warning-box {
        padding: 20px;
    }

    .test-card-footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .test-btn {
        width: 100%;
        justify-content: center;
    }

    .test-question-card {
        padding: 25px 20px;
    }

    .test-question-text {
        font-size: 18px;
    }

    .test-result-title {
        font-size: 28px;
    }

    .test-result-body {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .test-card-header h3 {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .test-icon {
        font-size: 32px;
    }

    .test-info-box li,
    .test-warning-box li {
        font-size: 14px;
    }

    .test-btn-start {
        font-size: 16px;
        padding: 14px 28px;
    }

    .test-question-text {
        font-size: 16px;
    }

    .test-option {
        padding: 15px;
    }

    .test-result-title {
        font-size: 24px;
    }
}

/* =========================================
   프린트 최적화
========================================= */
@media print {
    .test-start-wrapper,
    .test-result-wrapper {
        background: white;
        padding: 0;
    }

    .test-card-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #e2e8f0;
    }

    .test-btn,
    .test-progress-bar {
        display: none;
    }
}