/* ============================================================
 * credits-modal.css — v0.9.6.14
 * Era-aware styling für das Credits-Modal.
 * Overlay + Basis-Layout sind era-agnostic; pro Era gibt es
 * Overrides für Hintergrund, Typografie, Buttons, Akzente.
 * ============================================================ */

.credits-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: credits-fade-in 0.2s ease-out;
}
@keyframes credits-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.credits-modal-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #1a1a2e;
    color: #fff;
    border-radius: 12px;
    padding: 28px 32px 24px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.credits-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s;
}
.credits-close:hover { background: rgba(255,255,255,0.2); }

.credits-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.credits-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 4px;
}
.credits-subtitle {
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 8px;
    font-style: italic;
}
.credits-version {
    font-size: 10px;
    opacity: 0.55;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.credits-section {
    margin-bottom: 20px;
}
.credits-h3 {
    font-size: 14px;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
}
.credits-section p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 8px 0;
    opacity: 0.9;
}
.credits-intro-text {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 12px;
}

/* Era-Rows */
.credits-era-row {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    border-left: 3px solid rgba(255,255,255,0.2);
}
.credits-era-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.credits-era-num {
    font-size: 10px;
    opacity: 0.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.credits-era-name {
    font-size: 13px;
    font-weight: bold;
}
.credits-era-years {
    font-size: 10px;
    opacity: 0.55;
    margin-left: auto;
}
.credits-era-vibe {
    font-size: 11px;
    line-height: 1.55;
    opacity: 0.85;
}

/* Asset-Rows */
.credits-asset-row {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
}
.credits-asset-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.credits-asset-title {
    font-size: 12px;
    font-weight: bold;
}
.credits-asset-lic {
    font-size: 9px;
    background: rgba(255,255,255,0.1);
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.credits-asset-meta {
    font-size: 11px;
    opacity: 0.8;
}
.credits-asset-meta a { color: inherit; text-decoration: underline; }
.credits-asset-note {
    font-size: 10px;
    opacity: 0.55;
    font-style: italic;
    margin-top: 3px;
}

.credits-tools {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 12px;
    line-height: 1.7;
}
.credits-tools li { padding: 2px 0; opacity: 0.85; }
.credits-tech-note {
    font-size: 11px !important;
    opacity: 0.7 !important;
    font-style: italic;
}

.credits-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.credits-ok-btn {
    padding: 10px 32px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background: #4a90e2;
    color: #fff;
    transition: background 0.15s;
}
.credits-ok-btn:hover { background: #5aa0f2; }

/* ============================================================
 * Era 1 — Web Pioneers (1995-2001): Trashy Web 1.0
 * ============================================================ */
body.era-e1 .credits-modal-card {
    background: #ffffcc;
    color: #000;
    border: 4px ridge #ff6600;
    border-radius: 0;
    font-family: "Comic Sans MS", "Chalkboard SE", cursive;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
}
body.era-e1 .credits-close {
    background: #ff6600;
    color: #fff;
    border: 2px outset #fff;
    border-radius: 0;
    font-family: "Comic Sans MS", cursive;
}
body.era-e1 .credits-close:hover { background: #cc0066; }
body.era-e1 .credits-header {
    border-bottom: 3px dashed #ff6600;
}
body.era-e1 .credits-title {
    color: #cc0066;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 #ff6600;
}
body.era-e1 .credits-subtitle { color: #0033cc; font-style: normal; font-weight: bold; }
body.era-e1 .credits-version { color: #555; }
body.era-e1 .credits-h3 {
    color: #cc0066;
    border-bottom: 2px solid #ff6600;
    text-shadow: 1px 1px 0 #fff;
}
body.era-e1 .credits-era-row,
body.era-e1 .credits-asset-row {
    background: #fff;
    border: 2px solid #ff6600;
    border-radius: 0;
    border-left: 5px solid #cc0066;
}
body.era-e1 .credits-era-name { color: #cc0066; }
body.era-e1 .credits-era-num,
body.era-e1 .credits-era-years { color: #0033cc; opacity: 1; }
body.era-e1 .credits-asset-lic {
    background: #ffff00;
    color: #000;
    border: 1px solid #000;
}
body.era-e1 .credits-ok-btn {
    background: #00cc00;
    color: #fff;
    border: 3px outset #fff;
    border-radius: 0;
    font-family: "Comic Sans MS", cursive;
}
body.era-e1 .credits-ok-btn:hover { background: #00ee00; }

/* ============================================================
 * Era 2 — Dot-com & Web 2.0 (2002-2010): Glossy & Glass
 * ============================================================ */
body.era-e2 .credits-modal-card {
    background: linear-gradient(180deg, #2a4a8a 0%, #0a2a6a 100%);
    color: #fff;
    border: 1px solid #4a7ac8;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 40, 120, 0.8), inset 0 1px 0 rgba(255,255,255,0.2);
}
body.era-e2 .credits-close {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
body.era-e2 .credits-title {
    color: #aaeeff;
    text-shadow: 0 0 10px rgba(170,238,255,0.6), 0 2px 4px rgba(0,0,0,0.4);
}
body.era-e2 .credits-h3 {
    color: #aaeeff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(106,170,238,0.3);
}
body.era-e2 .credits-era-row,
body.era-e2 .credits-asset-row {
    background: linear-gradient(180deg, rgba(106,170,238,0.15) 0%, rgba(106,170,238,0.05) 100%);
    border: 1px solid rgba(106,170,238,0.3);
    border-radius: 8px;
    border-left: 3px solid #6aaaee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
body.era-e2 .credits-era-name { color: #aaeeff; }
body.era-e2 .credits-asset-lic {
    background: linear-gradient(180deg, #5acc5a 0%, #2a8a2a 100%);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
body.era-e2 .credits-ok-btn {
    background: linear-gradient(180deg, #5acc5a 0%, #2a8a2a 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.4);
}
body.era-e2 .credits-ok-btn:hover {
    background: linear-gradient(180deg, #7adc7a 0%, #3a9a3a 100%);
}

/* ============================================================
 * Era 3 — Cloud & Social (2011-2019): Flat, Clean
 * ============================================================ */
body.era-e3 .credits-modal-card {
    background: #fff;
    color: #1c1c1e;
    border: none;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body.era-e3 .credits-close {
    background: #f0f0f0;
    color: #333;
    border: none;
}
body.era-e3 .credits-close:hover { background: #e0e0e0; }
body.era-e3 .credits-header {
    border-bottom: 1px solid #e0e0e0;
}
body.era-e3 .credits-title {
    color: #1565c0;
    font-weight: 300;
    text-shadow: none;
}
body.era-e3 .credits-subtitle { color: #777; }
body.era-e3 .credits-version {
    color: #999;
    text-transform: uppercase;
}
body.era-e3 .credits-h3 {
    color: #1565c0;
    font-weight: 400;
    border-bottom: 1px solid #e8e8e8;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}
body.era-e3 .credits-section p { color: #333; opacity: 0.95; }
body.era-e3 .credits-era-row,
body.era-e3 .credits-asset-row {
    background: #f7f9fc;
    border: 1px solid #e0e6ef;
    border-radius: 3px;
    border-left: 3px solid #2196f3;
}
body.era-e3 .credits-era-name { color: #1565c0; }
body.era-e3 .credits-era-vibe { color: #333; opacity: 0.85; }
body.era-e3 .credits-asset-lic {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}
body.era-e3 .credits-asset-meta a { color: #1565c0; }
body.era-e3 .credits-tools li { color: #333; opacity: 0.9; }
body.era-e3 .credits-ok-btn {
    background: #43a047;
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
body.era-e3 .credits-ok-btn:hover { background: #558b2f; }

/* ============================================================
 * Era 4 — AI Era (2020+): Default Dark Mode (schon im Basis-Stil)
 *   Kleiner Neon-Akzent zum Abheben.
 * ============================================================ */
body.era-e4 .credits-modal-card {
    background: linear-gradient(180deg, #0f172a 0%, #1a1a2e 100%);
    color: #e2e8f0;
    border: 1px solid rgba(102,126,234,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(102,126,234,0.15);
}
body.era-e4 .credits-title {
    background: linear-gradient(135deg, #667eea, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}
body.era-e4 .credits-h3 {
    color: #a78bfa;
    border-bottom: 1px solid rgba(167,139,250,0.2);
}
body.era-e4 .credits-era-row,
body.era-e4 .credits-asset-row {
    background: rgba(102,126,234,0.08);
    border-left: 3px solid #a78bfa;
}
body.era-e4 .credits-era-name { color: #a78bfa; }
body.era-e4 .credits-asset-lic {
    background: rgba(34,211,238,0.2);
    color: #22d3ee;
}
body.era-e4 .credits-asset-meta a { color: #22d3ee; }
body.era-e4 .credits-ok-btn {
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(102,126,234,0.4);
}
body.era-e4 .credits-ok-btn:hover {
    background: linear-gradient(135deg, #7a8feb 0%, #b79cfb 100%);
    box-shadow: 0 2px 16px rgba(102,126,234,0.6);
}
