/* Archetype Results Styles */

.archetype-content {
    margin: 2rem 0;
}

.archetype-badge {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.activation-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 8px solid #e0e0e0;
    border-top-color: #4A90E2;
    transform: rotate(-90deg);
    transition: border-top-color 0.3s ease;
}

.activation-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: #4A90E2;
    clip-path: polygon(50% 0%, 50% 50%,
        calc(50% + 50% * sin(var(--activation) * 3.6deg))
        calc(50% - 50% * cos(var(--activation) * 3.6deg)),
        100% 0%);
}

.archetype-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.activation-score {
    text-align: center;
    margin: 2rem 0;
}

.activation-score h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.score-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    border-radius: 15px;
    transition: width 1s ease-out;
}

.score-fill.high {
    background: linear-gradient(90deg, #51CF66, #37B24D);
}

.score-fill.medium {
    background: linear-gradient(90deg, #4ECDC4, #4A90E2);
}

.score-fill.low {
    background: linear-gradient(90deg, #FFD93D, #FF6B6B);
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4A90E2;
}

.archetype-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.archetype-description p {
    line-height: 1.6;
    color: #555;
}

.archetype-scores {
    margin: 2rem 0;
}

.archetype-scores h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.score-label {
    font-weight: 500;
    color: #666;
}

.mini-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A90E2, #4ECDC4);
    border-radius: 10px;
    transition: width 0.8s ease-out;
}

.mini-fill[data-archetype="system-breaker"] {
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
}

.mini-fill[data-archetype="pattern-interrupt"] {
    background: linear-gradient(90deg, #4ECDC4, #45B7D1);
}

.mini-fill[data-archetype="last-stand"] {
    background: linear-gradient(90deg, #51CF66, #37B24D);
}

.mini-fill[data-archetype="truth-teller"] {
    background: linear-gradient(90deg, #FFD93D, #FCC419);
}

.score-num {
    text-align: right;
    font-weight: bold;
    color: #4A90E2;
}

@media (max-width: 768px) {
    .score-item {
        grid-template-columns: 1fr 2fr 40px;
        gap: 0.5rem;
    }

    .score-label {
        font-size: 0.9rem;
    }
}
