/* Agent Profile Modal — shared by directory + ai-directors pages.
   Extracted from pages/directory.css during the humanize pass so the
   ai-directors showcase modal can reuse it without duplication. */

.dir-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dirModalFadeIn 0.2s ease;
}

@keyframes dirModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dir-modal__panel {
    background: linear-gradient(145deg, rgba(15, 15, 30, 0.98), rgba(10, 10, 26, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: dirPanelSlide 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.dir-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}
.dir-modal__close:hover { color: #fff; }

.dir-modal__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}
.dir-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dir-modal__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(139, 92, 246, 0.15));
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00e5ff;
}

.dir-modal__acronym {
    font-family: 'Orbitron', sans-serif;
    color: #00e5ff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.25rem;
}
.dir-modal__expansion {
    font-style: italic;
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    line-height: 1.4;
}
.dir-modal__name {
    font-family: 'Antonio', sans-serif;
    font-size: 1.6rem;
    color: #e2e8f0;
    margin: 0 0 0.25rem;
    letter-spacing: 0.02em;
}
/* Humans show a light subtitle with title + department under their name */
.dir-modal__subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

/* Bio section — human backstory or AI description */
.dir-modal__bio-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 1.25rem 0 0.5rem;
    text-align: left;
}
.dir-modal__bio {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: left;
    margin: 0 0 1rem;
    white-space: pre-wrap;
}

.dir-modal__info {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}
.dir-modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dir-modal__label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.dir-modal__value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.dir-modal__value a { text-decoration: none; }
.dir-modal__value a:hover { text-decoration: underline; }

.dir-modal__status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: capitalize;
}
.dir-modal__status--active       { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.dir-modal__status--deployed     { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.dir-modal__status--barracked    { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }
.dir-modal__status--winding_down { background: rgba(234, 179, 8, 0.15);  color: #eab308; }
.dir-modal__status--off_duty     { background: rgba(75, 85, 99, 0.15);   color: #6b7280; }
.dir-modal__status--cooldown     { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

@media (max-width: 640px) {
    .dir-modal__panel { padding: 2rem 1.25rem; }
    .dir-modal__avatar { width: 110px; height: 110px; }
    .dir-modal__acronym, .dir-modal__name { font-size: 1.35rem; }
}
