/* PSYCH EVAL STYLES */

.psych-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.psych-modal.active {
    display: flex;
}

.psych-container {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--gold-dim);
    width: 90%;
    max-width: 700px;
    min-height: 500px;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.psych-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.psych-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.psych-progress-container {
    width: 100%;
    height: 2px;
    background: #222;
    margin-top: 10px;
}

.psych-progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--gold);
}

.psych-question-text {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.4;
    min-height: 60px;
    /* Prevent layout jump */
}

.psych-options {
    display: grid;
    gap: 15px;
}

.psych-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #ccc;
    font-family: 'Inter', sans-serif;
}

.psych-option:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    color: #fff;
    transform: translateX(5px);
}

/* RESULTS VIEW */
.psych-result {
    text-align: center;
    animation: fadeIn 1s ease;
}

.psych-archetype {
    font-size: 3rem;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-transform: uppercase;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.psych-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.psych-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--gold-dim);
    padding: 15px;
    text-align: left;
}

.psych-label {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.psych-value {
    font-size: 1.2rem;
    color: #eee;
    margin-top: 5px;
}

.psych-analysis {
    font-style: italic;
    color: #aaa;
    line-height: 1.6;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 4px;
}

.close-psych {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-psych:hover {
    color: #fff;
}

.psych-btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.psych-btn-primary:hover {
    box-shadow: 0 0 15px var(--gold);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}