/* Investment Test Styles */
:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --secondary-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-sub: #666666;
    --border-color: #dddddd;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Home Button */
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-bottom: 20px;
    color: var(--text-sub);
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-home:hover {
    background-color: #f1f3f5;
    color: var(--text-main);
}

/* Intro Section */
.intro-section {
    text-align: center;
}

.intro-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.intro-section h1 i {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 30px;
}

.intro-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-top: 30px;
}

.intro-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.intro-card p {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 25px;
}

.features {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
}

.features li {
    padding: 10px 0;
    font-size: 1rem;
}

.features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-start {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.3);
}

.btn-start:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.4);
}

/* Test Page */
.test-container {
    max-width: 700px;
}

.progress-section {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #28a745);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-sub);
    font-weight: 600;
}

.question-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-main);
    line-height: 1.4;
}

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

.choice-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.choice-btn:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.05);
    transform: translateX(5px);
}

/* Result Page */
.result-container {
    max-width: 900px;
}

.loading {
    text-align: center;
    padding: 100px 20px;
}

.loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.loading p {
    font-size: 1.2rem;
    color: var(--text-sub);
}

.result-section {
    text-align: center;
}

.result-title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.result-subtitle {
    font-size: 1.3rem;
    color: var(--text-sub);
    margin-bottom: 30px;
}

.result-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    text-align: left;
    margin-bottom: 30px;
}

.result-card h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    color: var(--text-main);
}

.result-card h3:first-child {
    margin-top: 0;
}

.result-card h4 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    color: var(--text-sub);
}

.result-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.trait-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

.trait-icon {
    font-size: 2rem;
}

.trait-info {
    display: flex;
    flex-direction: column;
}

.trait-label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.trait-value {
    font-size: 1rem;
    font-weight: 700;
}

.result-card ul {
    list-style: none;
    padding: 0;
}

.result-card li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid #f1f3f5;
}

.result-card li:last-child {
    border-bottom: none;
}

.meme-quote {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #856404;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-share,
.btn-retry,
.btn-home-link {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-share {
    background: #28a745;
    color: white;
}

.btn-share:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-retry {
    background: var(--primary-color);
    color: white;
}

.btn-retry:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-home-link {
    background: #6c757d;
    color: white;
}

.btn-home-link:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #adb5bd;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 2rem;
    }

    .intro-card {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .result-title {
        font-size: 2rem;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .btn-share,
    .btn-retry,
    .btn-home-link {
        width: 100%;
        justify-content: center;
    }
}

/* Intro Content Styles (SEO) */
.intro-content {
    text-align: left;
    margin: 40px 0;
    width: 100%;
}

.intro-section-box {
    margin-bottom: 25px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.intro-section-box h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-section-box p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    word-break: keep-all;
}

.intro-section-box.highlight {
    background-color: #e3f2fd;
    /* Light Blue */
    border-left-color: #1565c0;
}

.intro-section-box strong {
    color: #333;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(74, 144, 226, 0.2) 0%, rgba(74, 144, 226, 0.2) 100%);
    box-shadow: inset 0 -0.4em 0 rgba(74, 144, 226, 0.2);
}