/* ============================================
   HWAVE Career Path - Global Styles
   Deep Navy & White 톤앤매너
   ============================================ */

:root {
    --primary-navy: #1a2332;
    --secondary-navy: #2d3e50;
    --accent-blue: #3498db;
    --light-blue: #5dade2;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e0e0e0;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.logo {
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ============================================
   Main Container
   ============================================ */

.main-container {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.step-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-section.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 50px;
}

.step-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.step-header h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.step-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   Job Selection Cards
   ============================================ */

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.job-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.job-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.job-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary, .btn-secondary, .btn-cta {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-cta {
    background: linear-gradient(135deg, var(--success), #2ecc71);
    color: var(--white);
    font-size: 1.1rem;
    padding: 18px 40px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* ============================================
   Progress Bar
   ============================================ */

.progress-bar {
    position: relative;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 10px;
    margin: 30px 0 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--light-blue));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* ============================================
   Question Container
   ============================================ */

.question-container {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.question-header {
    margin-bottom: 30px;
}

.question-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-header h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    line-height: 1.6;
    font-weight: 600;
}

/* ============================================
   Answer Container
   ============================================ */

.answer-guide {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(93, 173, 226, 0.05));
    border-left: 4px solid var(--accent-blue);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.answer-guide h4 {
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.answer-guide ul {
    list-style: none;
}

.answer-guide li {
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.answer-guide li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 30px;
}

#answerInput {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 300px;
    transition: border-color 0.3s ease;
}

#answerInput:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.textarea-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn-voice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-voice:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.btn-voice.recording {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.char-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ============================================
   Report Container
   ============================================ */

.report-container {
    max-width: 900px;
    margin: 0 auto;
}

.report-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 30px;
    font-weight: 600;
}

.section-title i {
    color: var(--accent-blue);
}

/* Overall Score */
.overall-score {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.3);
    margin: 0 auto;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-item {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    gap: 15px;
    align-items: center;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.metric-bar {
    height: 12px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--light-blue));
    border-radius: 10px;
    transition: width 1s ease;
    width: 0%;
}

.metric-value {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Capability Card */
.capability-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(93, 173, 226, 0.05));
    border-radius: 12px;
}

.capability-badge {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.capability-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Feedback Items */
.feedback-item {
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-blue);
}

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

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

.feedback-question {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 1.05rem;
}

.feedback-scores {
    display: flex;
    gap: 15px;
}

.score-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.score-tag.high {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.score-tag.medium {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.score-tag.low {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.feedback-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-top: 15px;
}

/* Expert Guide */
.expert-item {
    padding: 25px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
}

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

.expert-question {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.expert-answer {
    color: var(--text-dark);
    line-height: 1.8;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
}

/* CTA */
.report-cta {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--white);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    margin: 40px 0;
    box-shadow: var(--shadow-lg);
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* ============================================
   Loading Overlay
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .step-header h2 {
        font-size: 1.7rem;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }

    .overall-score {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .metric-item {
        grid-template-columns: 100px 1fr 50px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .report-cta {
        padding: 30px 20px;
    }

    .cta-content h3 {
        font-size: 1.4rem;
    }
}
