/* =====================================================
   PLANET X
   GLOBAL VIBES DETECTED
===================================================== */


/* =====================================================
   MAIN WIDGET
===================================================== */

.planet-x-widget {

    width: 100%;
    max-width: 100%;

    height: 360px;
    min-height: 360px;

    box-sizing: border-box;

    position: relative;
    overflow: hidden;

    padding: 25px;

    color: #ffffff;

    background:

        radial-gradient(
            circle at center,
            rgba(0, 255, 200, 0.12),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #071c1d,
            #05090d 65%,
            #020405
        );

    border: 1px solid rgba(0, 255, 200, 0.35);

    box-shadow:

        0 0 20px rgba(0, 255, 200, 0.12),

        inset 0 0 30px rgba(0, 255, 200, 0.04);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


/* =====================================================
   FUTURISTIC GRID
===================================================== */

.planet-x-widget::before {

    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.12;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(0, 255, 200, 0.15) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0, 255, 200, 0.15) 1px,
            transparent 1px
        );

    background-size: 25px 25px;

}


/* =====================================================
   HEADER
===================================================== */

.planet-x-header {

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid rgba(0, 255, 200, 0.25);

    padding-bottom: 15px;

}


.planet-x-brand {

    font-size: 18px;

    font-weight: 900;

    letter-spacing: 4px;

    color: #ffffff;

}


.planet-x-status {

    font-size: 9px;

    letter-spacing: 1.5px;

    color: #00ffc8;

}


.planet-x-status-dot {

    display: inline-block;

    width: 7px;

    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background: #00ffc8;

    box-shadow: 0 0 10px #00ffc8;

    animation: planetPulse 1.4s infinite;

}


/* =====================================================
   MAIN CONTENT
===================================================== */

.planet-x-main {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding-top: 25px;

}


/* =====================================================
   RADAR
===================================================== */

.planet-x-radar {

    width: 165px;

    height: 165px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

}


.planet-x-radar-ring {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(0, 255, 200, 0.35);

}


.ring-one {

    width: 165px;

    height: 165px;

}


.ring-two {

    width: 115px;

    height: 115px;

}


.ring-three {

    width: 60px;

    height: 60px;

}


.planet-x-radar-sweep {

    position: absolute;

    width: 82px;

    height: 82px;

    top: 0;

    left: 82px;

    transform-origin: bottom left;

    background:

        linear-gradient(
            45deg,
            transparent 48%,
            rgba(0, 255, 200, 0.35)
        );

    animation: radarSweep 3s linear infinite;

}


/* =====================================================
   FLAG
===================================================== */

.planet-x-flag {

    position: relative;

    z-index: 3;

    font-size: 65px;

    filter:

        drop-shadow(
            0 0 12px
            rgba(0, 255, 200, 0.6)
        );

    animation: flagFloat 3s ease-in-out infinite;

}


.planet-x-flag img {

    width: 90px;

    height: 60px;

    display: block;

    border-radius: 6px;

    object-fit: cover;

    filter:

        drop-shadow(
            0 0 12px
            rgba(0, 255, 200, 0.6)
        );

}


/* =====================================================
   LOCATION
===================================================== */

.planet-x-location {

    text-align: center;

    margin-top: 18px;

}


.planet-x-city {

    font-size: 28px;

    font-weight: 900;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #ffffff;

}


.planet-x-region {

    margin-top: 5px;

    font-size: 12px;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #00ffc8;

}


.planet-x-country {

    margin-top: 8px;

    font-size: 10px;

    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.6);

}


/* =====================================================
   FOOTER
===================================================== */

.planet-x-footer {

    position: absolute;

    bottom: 18px;

    left: 25px;

    right: 25px;

    display: flex;

    justify-content: space-between;

    font-size: 8px;

    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, 0.5);

}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes radarSweep {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


@keyframes flagFloat {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-8px);

    }

}


@keyframes planetPulse {

    0% {

        opacity: 1;

        transform: scale(1);

    }

    50% {

        opacity: 0.35;

        transform: scale(0.75);

    }

    100% {

        opacity: 1;

        transform: scale(1);

    }

}


/* =====================================================
   LOCATION TRANSITION
===================================================== */

.planet-x-location.is-changing {

    animation: locationGlitch 0.7s ease;

}


@keyframes locationGlitch {

    0% {

        opacity: 1;

        transform: translateX(0);

    }

    25% {

        opacity: 0.2;

        transform: translateX(-5px);

    }

    50% {

        opacity: 0.5;

        transform: translateX(5px);

    }

    75% {

        opacity: 0.2;

        transform: translateX(-3px);

    }

    100% {

        opacity: 1;

        transform: translateX(0);

    }

}


/* =====================================================
   CBOX CHAT
===================================================== */

.xtremevibes-chat-wrapper {

    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    margin-top: 30px !important;

}


.xtremevibes-cbox {

    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    height: 450px !important;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .planet-x-widget {

        width: 100%;

        max-width: 100%;

        height: 360px;

        min-height: 360px;

    }

}


@media (max-width: 480px) {

    .planet-x-widget {

        height: 360px;

        min-height: 360px;

    }

}
/* ==========================================
   CORRECCIÓN DE CARGA INICIAL - PLANET X
========================================== */

#planetX {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.planet-x-footer {
    width: auto !important;
    box-sizing: border-box !important;
    white-space: nowrap;
}

@media (max-width: 768px) {

    .planet-x-footer {
        white-space: normal;
    }

}