/* ============================================================================
   RPG Character Psyche — LA MIDNIGHT BRUTALIST
   Profil-Box & UCP-Formular für Charakter-Psyche (MBTI, Alignment,
   Temperament, Love Language).

   Brutalist-Prinzip: Statt bunter Verläufe nur farbige Border-Left-Akzente,
   alles andere bleibt im monochromen Theme-Look.
   ============================================================================ */


/* ---------- Basis-Box (Override für profile-infobox) ---------------------- */
/* !important nötig, weil profile-infobox.css höher in der Spezifität greift
   und wir hier den kompletten Box-Look des Plugins entfernen wollen */
.rpg-psyche-box,
.profile-infobox.rpg-psyche-box {
    background: var(--bg) !important;
    padding: var(--space-lg) 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.profile-infobox {
    background: var(--bg);
    border: none;
    border-radius: 0;
}


/* ---------- Überschrift (Override profile-infobox__title) ----------------- */
/* !important: Theme-Default für h3.profile-infobox__title hat eigene Specificity.
   Typo: Section-Title (gleiche Hierarchie-Stufe wie .lam-prf__card-title im Profil) */
.rpg-psyche-box .profile-infobox__title,
.rpg-psyche-box h3.profile-infobox__title,
h3.profile-infobox__title,
.profile-infobox .profile-infobox__title {
    font-family: var(--font-mono) !important;
    font-size: 0.55rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--text) !important;
    margin: 0 0 var(--space-md) 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
}

.rpg-psyche-box .profile-infobox__title i,
h3.profile-infobox__title i {
    font-size: 0.75rem !important;
    color: var(--accent) !important;
}


/* ---------- Content (Override profile-infobox__content) ------------------- */
.rpg-psyche-box .profile-infobox__content,
.profile-infobox .profile-infobox__content,
.profile-infobox__content {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}


/* ---------- Header: Badge + Name nebeneinander ---------------------------- */
.rpg-psyche-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* Badge: Brutalist-Style — nur Border, kein Fill */
.rpg-psyche-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text);
}

.rpg-psyche-name {
    /* Typo: Body-Standard */
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}


/* ---------- Kategorie-Label (klein, mono, gespreizt) ---------------------- */
.rpg-psyche-category {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.rpg-psyche-category-value {
    color: var(--accent);
}


/* ---------- Beschreibung (Fließtext unter dem Badge) ---------------------- */
.rpg-psyche-description {
    /* Typo: Body-Standard */
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-dim);
}


/* ============================================================================
   BADGE-AKZENTFARBEN
   Statt Verlauf nur farbige Border-Left-Linie + Text-Farbe der Kategorie.
   Hardcoded Hex-Werte: bewusst, weil semantische Domänen-Farben
   (z. B. Rot = Evil, Grün = Good) keine Theme-Variablen sein sollten.
   ============================================================================ */

/* MBTI */
.mbti-analyst   { border-left: 3px solid #88619a; }
.mbti-diplomat  { border-left: 3px solid #33a474; }
.mbti-sentinel  { border-left: 3px solid #4298b4; }
.mbti-explorer  { border-left: 3px solid var(--accent); }

.mbti-cat-analyst   { color: #88619a; }
.mbti-cat-diplomat  { color: #33a474; }
.mbti-cat-sentinel  { color: #4298b4; }
.mbti-cat-explorer  { color: var(--accent); }

/* D&D Alignment */
.align-lawful-good     { border-left: 3px solid #4a90d9; }
.align-neutral-good    { border-left: 3px solid #5cb85c; }
.align-chaotic-good    { border-left: 3px solid #45b7cd; }
.align-lawful-neutral  { border-left: 3px solid #7c8a99; }
.align-true-neutral    { border-left: 3px solid #95a5a6; }
.align-chaotic-neutral { border-left: 3px solid #9b59b6; }
.align-lawful-evil     { border-left: 3px solid #c0392b; }
.align-neutral-evil    { border-left: 3px solid var(--text-dim); }
.align-chaotic-evil    { border-left: 3px solid #8b0000; }

/* Temperament (Sanguiniker, Choleriker, Melancholiker, Phlegmatiker) */
.temp-sanguine    { border-left: 3px solid #f39c12; }
.temp-choleric    { border-left: 3px solid #e74c3c; }
.temp-melancholic { border-left: 3px solid #3498db; }
.temp-phlegmatic  { border-left: 3px solid #27ae60; }

/* Love Languages (5 Sprachen der Liebe) */
.love-words   { border-left: 3px solid #e91e63; }
.love-time    { border-left: 3px solid #9c27b0; }
.love-gifts   { border-left: 3px solid #ff9800; }
.love-service { border-left: 3px solid #4caf50; }
.love-touch   { border-left: 3px solid #f44336; }


/* ============================================================================
   UCP-FORMULAR (Charakter-Psyche bearbeiten)
   ============================================================================ */

.rpg-psyche-form {
    max-width: 100%;
}

/* Einleitungstext oberhalb des Formulars */
.rpg-psyche-intro {
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Eine Zeile = Label links, Select rechts */
.rpg-psyche-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    align-items: center;
}

.rpg-psyche-form-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Label-Text: kleiner Mono-Style, gespreizt — Brutalist-typische Anmutung */
.rpg-psyche-form-label label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.rpg-psyche-form-label label i {
    color: var(--text-dark);
    width: 1rem;
}

/* Beschreibungstext zum Feld */
.rpg-psyche-form-desc {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-dark);
}

.rpg-psyche-form-field {
    display: flex;
    justify-content: flex-end;
}

/* Select-Element im Brutalist-Look (kein Radius, transparenter Hintergrund) */
.rpg-psyche-form-field .rpg-select {
    width: 100%;
    max-width: 18.75rem;
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--text-dark);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.rpg-psyche-form-field .rpg-select:focus {
    outline: none;
    border-color: var(--accent);
}


/* ============================================================================
   ALERTS (Erfolg / Fehler / Warnung / Info)
   Border-Left-Akzent in Statusfarbe, alles andere transparent.
   ============================================================================ */

.rpg-alert {
    padding: var(--space-md) var(--space-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border-left: 3px solid;
}

.rpg-alert-success {
    color: var(--success);
    border-color: var(--success);
}

.rpg-alert-error {
    color: var(--error);
    border-color: var(--error);
}

.rpg-alert-warning {
    color: var(--warning);
    border-color: var(--warning);
}

.rpg-alert-info {
    color: var(--info);
    border-color: var(--info);
}


/* ============================================================================
   Responsive: Mobile-Layout
   ============================================================================ */
@media (max-width: 600px) {
    .rpg-psyche-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .rpg-psyche-form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .rpg-psyche-form-field {
        justify-content: flex-start;
    }

    .rpg-psyche-form-field .rpg-select {
        max-width: 100%;
    }
}