/* ============================================
   LA MIDNIGHT - BASE STYLES

   Body, Links, Selection — globale visuelle Basis.
   Alles was das Grundaussehen des Themes bestimmt.
   ============================================ */

/* --- Body --- */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    text-align: left;
}

/* --- Text-Auswahl in Akzentfarbe --- */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* --- Links --- */
a:link,
a:visited {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:active {
    color: var(--accent);
    text-decoration: none;
}

/* --- Quotes & Code-Bloecke --- */
blockquote,
.quote_body {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    font-style: italic;
}

.quote_author {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

code,
.codeblock {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
}

/* --- Editor (MyBB WYSIWYG) --- */
.editor {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin: var(--space-md) 0;
}

.editor_toolbar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
}

/* --- Alerts & Notices ---
   .red_alert (Standard-MyBB-Fehlermeldung): klassische rote Box bleibt.
   .pm_alert (Switch-Notice): brutalist refactored — siehe unten. */
.red_alert {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-left: 3px solid var(--error);
    color: var(--text);
    padding: 0.75rem var(--space-md);
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.red_alert a {
    color: var(--accent);
}


/* ---------- PM-ALERT (Switch-Notice) — Brutalist-Refactor -----------------
   Toast-artige Notice für "anderer Account hat ungelesene PNs".
   Brutalist-Idiom: dunkler bg, nur LINKER Akzent-Strich in Error-Rot,
   scharfe Kanten, Mono-Label für die Kategorie, Body-Font für den Fluss. */
.pm_alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    /* Dunkler Hintergrund statt rotbraun — passt zum Brutalist-Theme */
    background: var(--bg-alt);
    /* Nur LINKE Kante als Akzent — wie überall im Theme (z.B. .lam-reply::before) */
    border: none;
    border-left: 3px solid var(--error);
    color: var(--text);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* Brief-Icon links — visueller Anker im Error-Rot */
.pm_alert__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--error);
}

/* Inhalt-Wrapper: dehnt sich aus */
.pm_alert__body {
    flex: 1;
    line-height: 1.5;
    color: var(--text-dim);
}

/* Switchlink innerhalb der Notice — KEIN Card-Look mehr.
   ID-Selector (#pm_switch_notice) gibt uns Specificity (1,1,1) +
   !important: schlägt sicher die `a.switchlink !important`-Regeln
   aus accountswitcher.css (die nur 0,2,1 haben). */
#pm_switch_notice .switchlink,
#pm_switch_notice a.switchlink {
    display: inline !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    /* Akzent-Orange statt rot — kein "rot auf rot" mehr */
    color: var(--accent) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.15s var(--ease) !important;
}

#pm_switch_notice .switchlink:hover,
#pm_switch_notice a.switchlink:hover {
    color: var(--accent-hover) !important;
    text-decoration: underline !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* Avatar ausblenden — accountswitcher.css blendet sonst 36px-Avatar
   ein, der hier nur Lärm macht */
#pm_switch_notice .switchlink img {
    display: none !important;
}

/* Username-Span zurück auf Body-Font (statt Mono-Caps) */
#pm_switch_notice .switchlink span {
    font-family: var(--font-body) !important;
    font-size: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: inherit !important;
}

/* Close-Button (X): klein, dezent, rechts. */
.pm_alert__close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s var(--ease);
}

.pm_alert__close:hover {
    color: var(--error);
}

/* --- Text-Groessen (MyBB Legacy) --- */
.smalltext {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.largetext {
    font-size: 1rem;
    font-weight: 600;
}