/* Expert Search Globe Preview - Premium Interactive */
.globe-preview {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 40, 50, 0.95) 0%, rgba(8, 25, 35, 0.98) 50%, rgba(5, 18, 25, 1) 100%);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.globe-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(45, 212, 191, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 0%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.globe-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(45, 212, 191, 0.03), transparent 30%);
    animation: globeSweep 8s linear infinite;
    pointer-events: none;
}

@keyframes globeSweep {
    from {
        transform: rotate(0deg);
    }

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

.globe-preview:hover {
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 20px 60px rgba(45, 212, 191, 0.2), 0 0 40px rgba(45, 212, 191, 0.1);
    transform: translateY(-4px);
}

.globe-preview-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.globe-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.globe-filter-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.globe-filter-btn::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.globe-preview:hover .globe-filter-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.2) 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.globe-search {
    flex: 1;
    margin: 0 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.45rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.globe-preview:hover .globe-search {
    border-color: rgba(45, 212, 191, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.globe-3d-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: #2dd4bf;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.globe-3d-btn::before {
    content: '\25CE';
    animation: rotate3d 3s linear infinite;
}

@keyframes rotate3d {
    from {
        transform: rotate(0deg);
    }

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

.globe-preview:hover .globe-3d-btn {
    background: rgba(45, 212, 191, 0.15);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.15);
}

.globe-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.globe-scene::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, rgba(45, 212, 191, 0.05) 40%, transparent 70%);
    animation: globeGlow 4s ease-in-out infinite;
}

.globe-scene::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.1);
    animation: orbitRing 15s linear infinite;
}

@keyframes orbitRing {
    from {
        transform: rotateX(60deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes globeGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.mini-globe {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #3dd9d0 0%, #1a8a82 20%, #0f6b65 45%, #0a4a46 70%, #062f2d 100%);
    box-shadow:
        inset -20px -10px 40px rgba(0, 0, 0, 0.6),
        inset 12px 10px 25px rgba(61, 217, 208, 0.2),
        0 0 50px rgba(45, 212, 191, 0.5),
        0 0 100px rgba(45, 212, 191, 0.25),
        0 0 150px rgba(45, 212, 191, 0.1);
    overflow: hidden;
    animation: globeFloat 6s ease-in-out infinite;
    transition: all 0.4s ease;
}

@keyframes globeFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    25% {
        transform: translateY(-5px) rotateY(5deg);
    }

    50% {
        transform: translateY(0) rotateY(0deg);
    }

    75% {
        transform: translateY(-3px) rotateY(-5deg);
    }
}

.globe-preview:hover .mini-globe {
    box-shadow:
        inset -20px -10px 40px rgba(0, 0, 0, 0.6),
        inset 12px 10px 25px rgba(61, 217, 208, 0.2),
        0 0 60px rgba(45, 212, 191, 0.6),
        0 0 120px rgba(45, 212, 191, 0.35),
        0 0 180px rgba(45, 212, 191, 0.15);
}

.mini-globe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 50% 60% at 55% 48%, #22c55e 0%, #16a34a 40%, transparent 70%),
        radial-gradient(ellipse 28% 18% at 50% 15%, #22c55e 0%, #16a34a 50%, transparent 100%),
        radial-gradient(ellipse 12% 20% at 75% 40%, #16a34a 0%, transparent 100%),
        radial-gradient(ellipse 18% 28% at 25% 55%, #22c55e 0%, transparent 100%),
        radial-gradient(ellipse 8% 12% at 65% 70%, #16a34a 0%, transparent 100%);
    animation: continentDrift 30s linear infinite;
}

@keyframes continentDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-20px);
    }
}

.mini-globe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.35) 0%, transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}

.globe-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.globe-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, 1), 0 0 20px rgba(245, 158, 11, 0.6), 0 0 30px rgba(245, 158, 11, 0.3);
    animation: markerPulse 2.5s ease-in-out infinite;
}

.globe-marker::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.4);
    animation: markerRing 2.5s ease-out infinite;
}

@keyframes markerRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.globe-marker::after {
    content: attr(data-count);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    background: rgba(245, 158, 11, 0.9);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.globe-marker:nth-child(1) {
    top: 20%;
    left: 60%;
}

.globe-marker:nth-child(2) {
    top: 35%;
    left: 45%;
    animation-delay: 0.4s;
}

.globe-marker:nth-child(3) {
    top: 40%;
    left: 58%;
    animation-delay: 0.7s;
}

.globe-marker:nth-child(4) {
    top: 55%;
    left: 65%;
    animation-delay: 1s;
}

.globe-marker:nth-child(5) {
    top: 65%;
    left: 50%;
    animation-delay: 1.3s;
}

@keyframes markerPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.globe-connection-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 50%;
}

.globe-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
    transform-origin: left center;
    animation: connectionPulse 3s ease-in-out infinite;
}

@keyframes connectionPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.globe-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.75rem;
    position: relative;
    z-index: 2;
}

.globe-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.globe-legend-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
    animation: legendDotPulse 2s ease-in-out infinite;
}

@keyframes legendDotPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.9);
    }
}

.globe-stats {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.globe-stats strong {
    color: #2dd4bf;
    font-weight: 700;
}

.globe-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.globe-visit-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #2dd4bf;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.globe-visit-link::after {
    content: '\2192';
    transition: transform 0.25s ease;
}

.globe-preview:hover .globe-visit-link {
    color: #5eead4;
}

.globe-preview:hover .globe-visit-link::after {
    transform: translateX(4px);
}
