/* ========== EPIC SECTION DIVIDER ========== */
.epic-divider {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Energy Canvas Background */
.energy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

/* Energy Line with Pulses */
.energy-line-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    z-index: 2;
}

.energy-line {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        #dc2626 20%,
        #f59e0b 40%,
        #dc2626 60%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    animation: energyFlow 3s linear infinite;
}

@keyframes energyFlow {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* Energy Pulses traveling on the line */
.energy-pulse {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #dc2626, transparent);
    filter: blur(8px);
    animation: pulseTravelLeft 3s ease-in-out infinite;
}

.energy-pulse.pulse-1 {
    animation: pulseTravelRight 4s ease-in-out infinite;
    animation-delay: 0s;
}

.energy-pulse.pulse-2 {
    animation: pulseTravelLeft 5s ease-in-out infinite;
    animation-delay: 1s;
}

.energy-pulse.pulse-3 {
    animation: pulseTravelRight 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes pulseTravelRight {
    0% {
        left: 0%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        left: 100%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

@keyframes pulseTravelLeft {
    0% {
        left: 100%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        left: 0%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

/* Divider Content (Badge + Orbits) */
.divider-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbital System */
.orbit-container {
    position: absolute;
    width: 300px;
    height: 300px;
    z-index: 5;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    animation: orbitRotate 10s linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 8s;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    animation-duration: 15s;
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #dc2626;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0.7;
    }
}

/* Epic Badge */
.divider-badge-epic {
    position: relative;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    box-shadow:
        0 10px 40px rgba(220, 38, 38, 0.2),
        inset 0 0 20px rgba(220, 38, 38, 0.05);
    z-index: 10;
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3), transparent 70%);
    border-radius: 50px;
    animation: glowPulseEpic 3s ease-in-out infinite;
    filter: blur(20px);
    z-index: -1;
}

@keyframes glowPulseEpic {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.badge-icon {
    color: #dc2626;
    animation: iconSpin 4s linear infinite;
}

.badge-icon:first-child {
    animation-direction: normal;
}

.badge-icon:last-child {
    animation-direction: reverse;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.badge-text {
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientFlow 3s linear infinite;
    white-space: nowrap;
}

@keyframes textGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Particle Field */
.particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 8px #dc2626;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) translateX(var(--horizontal-move, 50px));
        opacity: 0;
    }
}

/* Additional glow effects */
.divider-badge-epic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #dc2626, #f59e0b, #dc2626, #f59e0b);
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -2;
    animation: borderGlow 6s ease-in-out infinite;
    opacity: 0.5;
    filter: blur(8px);
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .epic-divider {
        height: 250px;
    }

    .orbit-container {
        width: 200px;
        height: 200px;
    }

    .orbit-1 {
        width: 120px;
        height: 120px;
    }

    .orbit-2 {
        width: 150px;
        height: 150px;
    }

    .orbit-3 {
        width: 180px;
        height: 180px;
    }

    .divider-badge-epic {
        padding: 12px 24px;
    }

    .badge-text {
        font-size: 0.875rem;
    }

    .badge-icon {
        width: 18px;
        height: 18px;
    }
}

/* Interactive hover effects */
.divider-badge-epic:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(220, 38, 38, 0.4),
        inset 0 0 30px rgba(220, 38, 38, 0.1);
    cursor: pointer;
}

.divider-badge-epic:hover .badge-icon {
    animation-duration: 1s;
}

.divider-badge-epic:hover .badge-glow {
    animation-duration: 1.5s;
    transform: translate(-50%, -50%) scale(1.4);
}

/* Beam effects from badge */
.divider-badge-epic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.divider-badge-epic:hover::after {
    opacity: 0.8;
    animation: beamExpand 1s ease-in-out infinite;
}

@keyframes beamExpand {
    0%, 100% {
        width: 150%;
    }
    50% {
        width: 200%;
    }
}

/* Energy connections between orbits and badge */
.orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(220, 38, 38, 0.3), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: connectionPulse 3s ease-in-out infinite;
}

.orbit-1::after {
    animation-delay: 0s;
}

.orbit-2::after {
    animation-delay: 1s;
}

.orbit-3::after {
    animation-delay: 2s;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
}
