/**
 * blackhole.css – FANTASY EDITION
 * Big, vicious, glowing – with massive particles and intense colours
 */

.cc-blackhole {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at center,
        #0b0410 0%, #030008 70%, #000000 100%);
}

/* ============================================================
   DARK CORE – deeper black with a razor‑sharp photon ring
   ============================================================ */
.cc-blackhole-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 140px; height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 50%;
    background: #000000;
    box-shadow:
        /* bright, thin photon ring – orange/white */
        0 0 0 3px rgba(255, 220, 180, 1),
        0 0 0 6px rgba(255, 150, 50, 0.6),
        /* inner depth */
        inset 0 0 60px rgba(255, 200, 100, 0.2);
    animation: pulse-core 2.5s ease-in-out infinite;
    z-index: 5;
}

/* ============================================================
   INNER GLOW – pulsing energy halo around the core
   ============================================================ */
.cc-blackhole-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 240px; height: 240px;
    margin: -120px 0 0 -120px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 100, 200, 0.30) 0%,
        rgba(200, 80, 255, 0.15) 30%,
        rgba(80, 180, 255, 0.08) 60%,
        transparent 80%);
    animation: pulse-glow-bh 1.8s ease-in-out infinite alternate;
    z-index: 1;
}

/* ============================================================
   ACCRETION DISK – fantasy colours (magenta, cyan, gold)
   Faster, larger, with a sharp inner edge
   ============================================================ */
.cc-blackhole-disk {
    position: absolute;
    top: 50%; left: 50%;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff0077 0deg,
        #ff44aa 25deg,
        #ffaa66 60deg,
        #ffee88 90deg,
        #66ccff 150deg,
        #4444ff 200deg,
        #aa44ff 260deg,
        #ff44aa 320deg,
        #ff0077 360deg
    );
    -webkit-mask: radial-gradient(
        circle at 50% 50%,
        transparent 78px,
        #000 82px,
        #000 210px,
        transparent 220px
    );
    mask: radial-gradient(
        circle at 50% 50%,
        transparent 78px,
        #000 82px,
        #000 210px,
        transparent 220px
    );
    animation: spin-disk 4s linear infinite;
    z-index: 2;
    filter: brightness(1.2) saturate(1.5);
}

/* ============================================================
   SECONDARY COUNTER‑ROTATING DISK (adds chaos)
   Thinner, fainter, rotates opposite direction
   ============================================================ */
.cc-blackhole-disk::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 340px; height: 340px;
    margin: -170px 0 0 -170px;
    border-radius: 50%;
    background: conic-gradient(
        from 90deg,
        rgba(255, 200, 100, 0.3) 0deg,
        rgba(255, 80, 200, 0.5) 45deg,
        rgba(100, 200, 255, 0.3) 90deg,
        rgba(255, 200, 100, 0.3) 180deg
    );
    -webkit-mask: radial-gradient(
        circle at 50% 50%,
        transparent 110px,
        #000 115px,
        #000 155px,
        transparent 160px
    );
    mask: radial-gradient(
        circle at 50% 50%,
        transparent 110px,
        #000 115px,
        #000 155px,
        transparent 160px
    );
    animation: spin-disk-reverse 6s linear infinite;
    z-index: 2;
}

/* ============================================================
   MASSIVE PARTICLE STREAM – BIG, GLOWING, CHAOTIC
   Particles are now 12px with huge bloom
   ============================================================ */
.cc-particle-stream {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    overflow: visible;
}

.cc-bh-particle {
    position: absolute;
    top: 50%; left: 50%;
    width: 14px;          /* ← BIG! */
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffaa44);
    box-shadow:
        0 0 20px 8px rgba(255, 200, 100, 0.9),
        0 0 50px 20px rgba(255, 100, 200, 0.5);
    opacity: 0;
    animation: bh-swirl 3s linear infinite;
}

/* Staggered delays */
.cc-bh-particle:nth-child(1)  { animation-delay: 0.0s; }
.cc-bh-particle:nth-child(2)  { animation-delay: 0.20s; }
.cc-bh-particle:nth-child(3)  { animation-delay: 0.40s; }
.cc-bh-particle:nth-child(4)  { animation-delay: 0.60s; }
.cc-bh-particle:nth-child(5)  { animation-delay: 0.80s; }
.cc-bh-particle:nth-child(6)  { animation-delay: 1.0s; }
.cc-bh-particle:nth-child(7)  { animation-delay: 1.20s; }
.cc-bh-particle:nth-child(8)  { animation-delay: 1.40s; }
.cc-bh-particle:nth-child(9)  { animation-delay: 1.60s; }
.cc-bh-particle:nth-child(10) { animation-delay: 1.80s; }
.cc-bh-particle:nth-child(11) { animation-delay: 2.0s; }
.cc-bh-particle:nth-child(12) { animation-delay: 2.20s; }
.cc-bh-particle:nth-child(13) { animation-delay: 2.40s; }
.cc-bh-particle:nth-child(14) { animation-delay: 2.60s; }
.cc-bh-particle:nth-child(15) { animation-delay: 2.80s; }

/* ============================================================
   DUST MOTES – also bigger and more chaotic
   ============================================================ */
.cc-bh-dust {
    position: absolute;
    width: 6px;           /* bigger */
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffbb88, #ff44aa);
    box-shadow: 0 0 15px 4px rgba(255, 100, 200, 0.6);
    opacity: 0;
    animation: bh-dust-drift 8s ease-in-out infinite;
}

/* positions – keep these, they're fine */
.cc-bh-dust:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.cc-bh-dust:nth-child(2) { top: 75%; left: 22%; animation-delay: 1.2s; }
.cc-bh-dust:nth-child(3) { top: 30%; left: 85%; animation-delay: 2.4s; }
.cc-bh-dust:nth-child(4) { top: 88%; left: 65%; animation-delay: 3.6s; }
.cc-bh-dust:nth-child(5) { top: 10%; left: 55%; animation-delay: 4.8s; }
.cc-bh-dust:nth-child(6) { top: 55%; left: 92%; animation-delay: 6.0s; }
.cc-bh-dust:nth-child(7) { top: 85%; left: 35%; animation-delay: 2.0s; }
.cc-bh-dust:nth-child(8) { top: 20%; left: 40%; animation-delay: 5.2s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes spin-disk {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spin-disk-reverse {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

@keyframes pulse-core {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(255, 220, 180, 1),
            0 0 0 6px rgba(255, 150, 50, 0.6),
            inset 0 0 60px rgba(255, 200, 100, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(255, 240, 200, 1),
            0 0 0 10px rgba(255, 200, 100, 0.8),
            inset 0 0 80px rgba(255, 220, 180, 0.4);
    }
}

@keyframes pulse-glow-bh {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 1; }
}

@keyframes bh-swirl {
    0% {
        transform: rotate(0deg) translateX(30px) scale(1);
        opacity: 0;
    }
    15%  { opacity: 1; }
    75%  { opacity: 1; }
    100% {
        transform: rotate(900deg) translateX(220px) scale(0.1);
        opacity: 0;
    }
}

@keyframes bh-dust-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-25px, 20px) scale(2.5) rotate(180deg);
        opacity: 0.9;
    }
}