/* =====================================================
   PLANET X
   XTREMEVIBES NEON EDITION
   CLEAN AQUA VERSION
===================================================== */


/* =====================================================
   MAIN WIDGET
===================================================== */

.planet-x-widget {
    width: 100%;
    max-width: 100%;
    height: 410px;
    min-height: 410px;

    box-sizing: border-box;
    position: relative;
    overflow: hidden;

    padding: 22px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #07120f,
            #050807 65%,
            #020403
        );

    border: 1px solid rgba(0, 255, 200, 0.38);
    border-radius: 18px;

    box-shadow:
        inset 0 0 25px rgba(0, 255, 200, 0.025);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =====================================================
   BACKGROUND EFFECT
===================================================== */

.planet-x-widget::before {
    content: none !important;
    display: none !important;
}

.planet-x-widget::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            transparent 45%,
            rgba(0, 255, 200, 0.015) 100%
        );

    z-index: 0;
}


/* =====================================================
   HEADER
===================================================== */

.planet-x-header {
    position: relative;
    z-index: 5;

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 30px;

    padding-bottom: 12px;

    border-bottom:
        1px solid rgba(0, 255, 200, 0.22);
}


.planet-x-brand {
    font-size: 18px;
    font-weight: 900;

    letter-spacing: 4px;

    color: #ffffff;

    white-space: nowrap;

    text-shadow:
        0 0 8px rgba(0, 255, 200, 0.22);
}


.planet-x-status {
    font-size: 9px;

    letter-spacing: 2px;

    color: #39ff14;

    white-space: nowrap;
}


.planet-x-status-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 6px;

    border-radius: 50%;

    background: #39ff14;

    box-shadow:
        0 0 6px #39ff14,
        0 0 14px rgba(57, 255, 20, 0.65);

    animation:
        planetPulse 1.4s infinite;
}


/* =====================================================
   MAIN CONTENT
===================================================== */

.planet-x-main {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    padding-top: 15px;
}


/* =====================================================
   RADAR
===================================================== */

.planet-x-radar {
    width: 150px;
    height: 150px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
   RADAR RINGS
===================================================== */

.planet-x-radar-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    box-sizing: border-box;

    border:
        1px solid rgba(0, 255, 200, 0.40);

    box-shadow:
        0 0 8px rgba(0, 255, 200, 0.08);
}


.ring-one {
    width: 150px;
    height: 150px;
}


.ring-two {
    width: 105px;
    height: 105px;
}


.ring-three {
    width: 55px;
    height: 55px;
}


/* =====================================================
   RADAR SWEEP
===================================================== */

.planet-x-radar-sweep {
    position: absolute;

    width: 150px;
    height: 150px;

    left: 0;
    top: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 320deg,
            rgba(0, 255, 200, 0.015) 330deg,
            rgba(0, 255, 200, 0.06) 345deg,
            rgba(0, 255, 200, 0.22) 356deg,
            rgba(0, 255, 200, 0.38) 360deg
        );

    animation:
        radarSweep 3s linear infinite;

    pointer-events: none;

    filter:
        drop-shadow(
            0 0 5px rgba(0, 255, 200, 0.35)
        );
}


/* =====================================================
   RADAR CENTER
===================================================== */

.planet-x-radar::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: #00ffc8;

    box-shadow:
        0 0 5px #00ffc8,
        0 0 12px rgba(0, 255, 200, 0.65),
        0 0 22px rgba(0, 255, 200, 0.35);

    z-index: 4;
}


/* =====================================================
   FLAG
===================================================== */

.planet-x-flag {
    position: relative;
    z-index: 5;

    font-size: 58px;

    line-height: 1;

    filter:
        drop-shadow(
            0 0 8px rgba(0, 255, 200, 0.40)
        )
        drop-shadow(
            0 0 16px rgba(0, 255, 200, 0.18)
        );

    animation:
        flagFloat 3s ease-in-out infinite;
}


.planet-x-flag img {
    width: 88px;
    height: 58px;

    display: block;

    border-radius: 6px;

    object-fit: cover;

    filter:
        drop-shadow(
            0 0 9px rgba(0, 255, 200, 0.45)
        );
}


/* =====================================================
   LOCATION
===================================================== */

.planet-x-location {
    position: relative;
    z-index: 5;

    text-align: center;

    margin-top: 12px;

    width: 100%;
    min-height: 72px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}


/* =====================================================
   CITY
===================================================== */

.planet-x-city {
    font-size: 24px;

    line-height: 1.1;

    font-weight: 900;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #ffffff;

    white-space: nowrap;

    text-shadow:
        0 0 8px rgba(0, 255, 200, 0.18);
}


/* =====================================================
   REGION
===================================================== */

.planet-x-region {
    margin-top: 5px;

    font-size: 11px;

    line-height: 1.2;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #39ff14;

    white-space: nowrap;

    text-shadow:
        0 0 8px rgba(57, 255, 20, 0.35);
}


/* =====================================================
   COUNTRY
===================================================== */

.planet-x-country {
    margin-top: 5px;

    font-size: 9px;

    line-height: 1.2;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, 0.58);

    white-space: nowrap;
}


/* =====================================================
   FOOTER
===================================================== */

.planet-x-footer {
    position: absolute;

    bottom: 15px;

    left: 22px;
    right: 22px;

    z-index: 5;

    display: flex;

    justify-content: space-between;
    align-items: center;

    width: auto;

    box-sizing: border-box;

    font-size: 8px;

    letter-spacing: 1.5px;

    color:
        rgba(255, 255, 255, 0.45);

    white-space: nowrap;
}


.planet-x-footer span:last-child {
    color: #39ff14;
}


/* =====================================================
   PLANET X WIDTH
===================================================== */

#planetX {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
}


#planet-x {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    margin-top: 22px;
}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes radarSweep {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }

}


@keyframes flagFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-6px);
    }

}


@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(-4px);
    }

    50% {
        opacity: 0.5;

        transform:
            translateX(4px);
    }

    75% {
        opacity: 0.2;

        transform:
            translateX(-2px);
    }

    100% {
        opacity: 1;

        transform:
            translateX(0);
    }

}


/* =====================================================
   MOBILE
   CHAT FIRST / PLANET X SECOND
===================================================== */

@media (max-width: 768px) {

    .planet-x-widget {
        height: 360px;
        min-height: 360px;

        padding: 20px;

        border-radius: 18px;
    }


    .planet-x-main {
        padding-top: 12px;
    }


    .planet-x-radar {
        width: 135px;
        height: 135px;
    }


    .planet-x-radar-sweep {
        width: 135px;
        height: 135px;
    }


    .ring-one {
        width: 135px;
        height: 135px;
    }


    .ring-two {
        width: 95px;
        height: 95px;
    }


    .ring-three {
        width: 50px;
        height: 50px;
    }


    .planet-x-city {
        font-size: 21px;
    }


    .planet-x-footer {
        left: 20px;
        right: 20px;

        white-space: normal;
    }


    .xtremevibes-cbox {
        height: 400px !important;
    }


    .xv-interaction-grid {
        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;
    }


    .xv-chat-column {
        order: 1 !important;

        width: 100% !important;
    }


    #planet-x {
        order: 2 !important;

        width: 100% !important;

        margin-top: 22px !important;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .planet-x-widget {
        height: 360px;
        min-height: 360px;

        border-radius: 18px;
    }

}