@charset "utf-8";
/* CSS Document */
/* ---------------------------------------------------------
   BLACK HOLE FUNNEL GRID BACKGROUND
   Perspective grid collapsing into a singularity
---------------------------------------------------------- */
body {
    margin: 0;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    color: #e6e6e6;

    /* Deep space gradient */
    background:
        radial-gradient(circle at center,
            rgba(255, 0, 40, 0.25) 0%,
            rgba(0, 0, 0, 0.9) 35%,
            #000000 100%
        ),
        /* Funnel grid */
        repeating-radial-gradient(
            circle at center,
            rgba(255, 0, 40, 0.15) 0px,
            rgba(255, 0, 40, 0.15) 2px,
            transparent 2px,
            transparent 20px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(255, 0, 40, 0.12) 0px,
            rgba(255, 0, 40, 0.12) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            to right,
            rgba(255, 0, 40, 0.12) 0px,
            rgba(255, 0, 40, 0.12) 1px,
            transparent 1px,
            transparent 40px
        );

    background-blend-mode: screen, normal, normal, normal;
    background-size: cover;
    background-attachment: fixed;
}

/* ---------------------------------------------------------
   THE BLACK HOLE — 1979 THEME
   Deep space, red glow, metallic accents
---------------------------------------------------------- */

/* Page background */
/*body {
    background: radial-gradient(circle at center,
        #1a0008 0%,
        #0a0015 40%,
        #000000 100%);
    font-family: 'Arial', sans-serif;
    color: #e6e6e6;
    margin: 0;
    padding: 20px;
}
*/
/* Page title */
.bh-title {
    font-size: 2.6rem;
    font-weight: bold;
    text-align: center;
    color: #ff1a2d; /* Maximillian red */
    text-shadow: 0 0 12px #ff1a2d, 0 0 22px #8b0010;
    margin-bottom: 25px;
}

/* Section headers */
h2, h3 {
    color: #ff3347;
    text-shadow: 0 0 8px #8b0010;
    border-bottom: 1px solid #55000a;
    padding-bottom: 6px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(10, 0, 20, 0.75); /* slightly brighter */
    border: 1px solid #33000a;
    box-shadow: 0 0 15px rgba(255, 0, 40, 0.25);
}

th {
    background: linear-gradient(to bottom, #4d0012, #1a0005);
    color: #ff6b75; /* brighter red */
    padding: 12px;
    text-align: left;
    font-size: 1.15rem;
    border-bottom: 2px solid #660014;
    text-shadow: 0 0 8px #ff1a2d;
}

td {
    padding: 12px;
    border-bottom: 1px solid #33000a;
    color: #ffffff; /* ← FIX: pure white text */
    font-size: 1.05rem;
}

tr:nth-child(even) {
    background: rgba(255, 0, 40, 0.08);
}

tr:hover {
    background: rgba(255, 0, 40, 0.22);
    transition: 0.2s;
}


/* Buttons (Add, Edit, etc.) */
.bh-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #33000a;
    color: #ff4d5c;
    border: 1px solid #55000a;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 6px #8b0010;
    box-shadow: 0 0 10px rgba(255, 0, 40, 0.3);
}

.bh-btn:hover {
    background: #55000a;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 0, 40, 0.6);
    transition: 0.2s;
}

/* Info boxes (character bios, notes) */
.bh-box {
    background: rgba(20, 0, 30, 0.6);
    border: 1px solid #33000a;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 0, 40, 0.2);
}

/* Links */
a {
    color: #ff4d5c;
    text-shadow: 0 0 6px #8b0010;
}

a:hover {
    color: #ffffff;
}

/* Footer */
.bh-footer {
    text-align: center;
    margin-top: 40px;
    color: #88333a;
    font-size: 0.9rem;
}
/* ---------------------------------------------------------
   EVENT HORIZON LOADING SPINNER
   Rotating gravitational disc + red singularity
---------------------------------------------------------- */

.event-horizon-spinner {
    width: 80px;
    height: 80px;
    margin: 40px auto;
    border-radius: 50%;
    position: relative;
    animation: spin 1.8s linear infinite;
    background: conic-gradient(
        rgba(255, 0, 40, 0.15),
        rgba(255, 0, 40, 0.35),
        rgba(255, 0, 40, 0.15)
    );
    box-shadow: 0 0 25px rgba(255, 0, 40, 0.4);
}

/* Inner singularity */
.event-horizon-spinner::before {
    content: "";
    position: absolute;
    top: 22%;
    left: 22%;
    width: 56%;
    height: 56%;
    border-radius: 50%;
    background: radial-gradient(circle,
        #ff1a2d 0%,
        #8b0010 40%,
        #000000 100%
    );
    box-shadow: 0 0 20px #ff1a2d;
}

/* Rotation animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* ---------------------------------------------------------
   MAXIMILLIAN EYE LOADING SPINNER
   Pulsing red core + rotating iris ring
---------------------------------------------------------- */

.maximillian-eye {
    width: 70px;
    height: 70px;
    margin: 40px auto;
    position: relative;
}

/* Outer rotating iris ring */
.maximillian-eye::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(255, 0, 40, 0.4);
    border-top-color: rgba(255, 0, 40, 0.9);
    border-right-color: rgba(255, 0, 40, 0.7);
    animation: maximillian-spin 1.4s linear infinite;
    box-shadow: 0 0 18px rgba(255, 0, 40, 0.6);
}

/* Inner glowing eye core */
.maximillian-eye::after {
    content: "";
    position: absolute;
    top: 22%;
    left: 22%;
    width: 56%;
    height: 56%;
    border-radius: 50%;
    background: radial-gradient(circle,
        #ff1a2d 0%,
        #b00014 40%,
        #4d0008 80%,
        #000000 100%
    );
    box-shadow:
        0 0 12px #ff1a2d,
        0 0 22px rgba(255, 0, 40, 0.6),
        inset 0 0 12px #ff1a2d;
    animation: maximillian-pulse 1.6s ease-in-out infinite;
}

/* Animations */
@keyframes maximillian-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes maximillian-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.75; }
}

/* ---------------------------------------------------------
   FULL-PAGE BREATHING RED GLOW (Black Hole loading mode)
---------------------------------------------------------- */

.bh-loading-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(255, 0, 40, 0.15),
        rgba(0, 0, 0, 0.95)
    );
    pointer-events: none;
    z-index: 9999;
    animation: bh-breathe 4s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

/* Fade-out when loading ends */
.bh-loading-overlay.hidden {
    opacity: 0;
}

/* Breathing glow animation */
@keyframes bh-breathe {
    0%, 100% {
        box-shadow: inset 0 0 60px rgba(255, 0, 40, 0.25),
                    0 0 40px rgba(255, 0, 40, 0.25);
    }
    50% {
        box-shadow: inset 0 0 120px rgba(255, 0, 40, 0.45),
                    0 0 80px rgba(255, 0, 40, 0.45);
    }
}
