/* WordPress Marketeam Orbits Stylesheet */

.wp-mt-circles-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 0;
    --orbit-scale: 1;
    --tooltip-scale: 1;
    height: calc(880px * var(--orbit-scale));
}

.wp-mt-circles-visualization-container {
    position: relative;
    width: 720px;
    height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform: scale(var(--orbit-scale));
    transform-origin: center center;
    flex-shrink: 0;
}

/* Orbits Base and Mask Border */
.wp-mt-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    pointer-events: none;
}

.wp-mt-orbit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: linear-gradient(180deg, rgba(217, 161, 255, 0) 0%, rgba(217, 161, 255, 1) 43%, rgba(217, 161, 255, 0) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.wp-mt-orbit-1::before {
    width: 300px;
    height: 300px;
}

.wp-mt-orbit-2::before {
    width: 420px;
    height: 420px;
}

.wp-mt-orbit-3::before {
    width: 540px;
    height: 540px;
}

.wp-mt-orbit-4::before {
    width: 660px;
    height: 660px;
}

.wp-mt-orbit-5::before {
    width: 780px;
    height: 780px;
}

.wp-mt-orbit-1 {
    animation: wp-mt-spin-left-orbit 30s linear infinite;
    z-index: 5;
}

.wp-mt-orbit-2 {
    animation: wp-mt-spin-right-orbit 38s linear infinite;
    z-index: 4;
}

.wp-mt-orbit-3 {
    animation: wp-mt-spin-left-orbit 46s linear infinite;
    z-index: 3;
}

.wp-mt-orbit-4 {
    animation: wp-mt-spin-right-orbit 54s linear infinite;
    z-index: 2;
}

.wp-mt-orbit-5 {
    animation: wp-mt-spin-left-orbit 62s linear infinite;
    z-index: 1;
}

@keyframes wp-mt-spin-left-orbit {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes wp-mt-spin-right-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Center Statistics (placed statically, not rotating) */
.wp-mt-center-stats {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
}

.wp-mt-stats-number {
    font-family: 'Urbanist', sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: #000000;
    line-height: 1;
    display: block;
}

.wp-mt-stats-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-top: 4px;
    letter-spacing: 0.5px;
    display: block;
}

/* Avatar Styling */
.wp-mt-avatar-positioner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 10;
}

/* Elevate hovered planet and its orbit above all others */
.wp-mt-orbit:has(.wp-mt-avatar-container:hover) {
    z-index: 100 !important;
}

.wp-mt-avatar-positioner:has(.wp-mt-avatar-container:hover) {
    z-index: 100 !important;
}

.wp-mt-avatar-spin-wrapper {
    position: absolute;
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Counter-rotations for avatars */
.wp-mt-counter-spin-right {
    animation: wp-mt-spin-right-basic linear infinite;
}

.wp-mt-counter-spin-left {
    animation: wp-mt-spin-left-basic linear infinite;
}

@keyframes wp-mt-spin-right-basic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes wp-mt-spin-left-basic {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.wp-mt-avatar-entry-wrapper {
    position: absolute;
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: wp-mt-avatar-fly-in-anim 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wp-mt-avatar-fly-in-anim {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.wp-mt-avatar-img {
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: #060218;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.wp-mt-avatar-img:hover {
    transform: scale(1.15);
    cursor: pointer;
    z-index: 50;
    border-color: #ffffff;
}

.wp-mt-avatar-round {
    border-radius: 50%;
}

.wp-mt-avatar-square-20 {
    border-radius: 20px;
}

.wp-mt-avatar-square-24 {
    border-radius: 24px;
}

.wp-mt-avatar-quadratic {
    border-radius: 20px;
}

.wp-mt-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tooltip popup styling */
.wp-mt-tooltip {
    position: absolute;
    left: 50%;
    width: 200px;
    background: rgba(10, 6, 30, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(160, 104, 255, 0.15);
}

.wp-mt-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
}

/* Hover bridge to maintain tooltip open state when moving mouse over the gap */
.wp-mt-tooltip::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    pointer-events: auto;
    z-index: -1;
}

.wp-mt-tooltip-top::before {
    top: 100%;
}

.wp-mt-tooltip-bottom::before {
    bottom: 100%;
}

/* Tooltip Above Planet (Default) */
.wp-mt-tooltip-top {
    bottom: calc(100% + 10px);
    transform: translate(-50%, 10px) scale(calc(var(--tooltip-scale, 1) * 0.9));
}

.wp-mt-tooltip-top::after {
    top: 100%;
    border-color: rgba(10, 6, 30, 0.95) transparent transparent transparent;
}

.wp-mt-avatar-entry-wrapper:hover .wp-mt-tooltip-top {
    opacity: 1;
    transform: translate(-50%, 0) scale(var(--tooltip-scale, 1));
    pointer-events: auto;
}

/* Tooltip Below Planet */
.wp-mt-tooltip-bottom {
    top: calc(100% + 10px);
    transform: translate(-50%, -10px) scale(calc(var(--tooltip-scale, 1) * 0.9));
}

.wp-mt-tooltip-bottom::after {
    bottom: 100%;
    border-color: transparent transparent rgba(10, 6, 30, 0.95) transparent;
}

.wp-mt-avatar-entry-wrapper:hover .wp-mt-tooltip-bottom {
    opacity: 1;
    transform: translate(-50%, 0) scale(var(--tooltip-scale, 1));
    pointer-events: auto;
}

.wp-mt-tooltip-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.wp-mt-tooltip-description {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}



/* Responsive Design scaling */
@media (max-width: 1280px) {
    .wp-mt-circles-container-wrapper {
        --orbit-scale: 0.85;
        --tooltip-scale: 1.18;
    }
}

@media (max-width: 1024px) {
    .wp-mt-circles-container-wrapper {
        --orbit-scale: 0.7;
        --tooltip-scale: 1.43;
    }
}

@media (max-width: 768px) {
    .wp-mt-circles-container-wrapper {
        --orbit-scale: 0.5;
        --tooltip-scale: 2;
    }
}

@media (max-width: 480px) {
    .wp-mt-circles-container-wrapper {
        --orbit-scale: 0.38;
        --tooltip-scale: 2.6;
    }
}

@media (max-width: 360px) {
    .wp-mt-circles-container-wrapper {
        --orbit-scale: 0.32;
        --tooltip-scale: 3.12;
    }
}