/* 靈魂根源多維度測驗 - Global Styles (Soul Light Theme) */
:root {
    --soul-cream: #F6F4EF;
    /* 背景 - 安全感、空間 */
    --rose-gold: #F8C1BF;
    /* 主品牌/CTA - 溫柔權威 */
    --soul-lavender: #CBD9FC;
    /* 靈性層 - 直覺、感知 */
    --soft-gold: #E6D3A3;
    /* 精品細節 - 分隔線 */
    --calm-stone: #8E8E8E;
    /* 內文 - 柔中帶定 */
    --deep-warm-gray: #5A4A4A;
    /* 標題 - 穩重 */
    --pure-white: #FFFFFF;
    /* 卡片底色 */
}

body {
    background-color: var(--soul-cream);
    color: var(--calm-stone);
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    background-image: radial-gradient(circle at 10% 20%, rgba(203, 217, 252, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(248, 193, 191, 0.2) 0%, transparent 40%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--deep-warm-gray);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Container */
.soul-result-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: center;
}

/* Header */
.result-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--deep-warm-gray), #8b7373);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-header .subtitle {
    font-size: 1.2rem;
    color: var(--calm-stone);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

/* Loading Animation */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--soul-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.soul-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(230, 211, 163, 0.3);
    /* Soft Gold 淺色版 */
    border-top: 4px solid var(--rose-gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: var(--calm-stone);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Main Result Card */
.main-result-card {
    background: rgba(255, 255, 255, 0.8);
    /* 微微透的白 */
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(142, 142, 142, 0.1);
    /* 柔和陰影 */
    margin-bottom: 60px;
    border: 1px solid white;
    position: relative;
    overflow: hidden;
}

/* 裝飾性光暈 */
.main-result-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--rose-gold);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.main-result-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: var(--soul-lavender);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
}

/* Content Layout (Grid) */
.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
    /* 在光暈之上 */
    align-items: center;
}

/* Left: Chart */
.chart-container {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(230, 211, 163, 0.3);
    /* Soft Gold 邊框 */
}

/* Right: Role Text */
.role-info {
    text-align: left;
}

.user-element-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--rose-gold), #fbcfe8);
    color: var(--deep-warm-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 15px rgba(248, 193, 191, 0.4);
}

.role-title {
    font-size: 3.5rem;
    margin: 10px 0 20px 0;
    line-height: 1.1;
    background: linear-gradient(45deg, var(--deep-warm-gray), #8e8e8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-description {
    font-size: 1.1rem;
    color: var(--calm-stone);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(230, 211, 163, 0.5);
    /* Soft Gold */
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-warm-gray);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--calm-stone);
}

/* Narrative Section */
.narrative-container {
    text-align: left;
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 5px solid var(--soul-lavender);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.story-card h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--deep-warm-gray);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(230, 211, 163, 0.5);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, white, #fff9f9);
    border-radius: 30px;
    border: 1px solid var(--soft-gold);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--soft-gold);
}

.cta-btn {
    display: inline-block;
    background: var(--rose-gold);
    color: var(--deep-warm-gray);
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(248, 193, 191, 0.5);
    border: 2px solid white;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(248, 193, 191, 0.7);
    background: #fbcfe8;
    /* 稍微亮一點的粉 */
    color: var(--deep-warm-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .result-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .role-title {
        font-size: 2.5rem;
    }

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

    .cta-section {
        padding: 40px 20px;
    }

    .main-result-card {
        padding: 30px 20px;
    }
}