/* assets/globe-style.css */

.globe-3d-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.globe-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
 
}

.globe-canvas:active {
    cursor: grabbing;
}

.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #FF9100;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

.globe-callout {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 145, 0, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 20;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.globe-callout.visible {
    opacity: 1;
}

.globe-callout::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .globe-callout {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .globe-callout {
        font-size: 10px;
        padding: 3px 6px;
        display: none; /* Hide callouts on very small screens */
    }
}

/* Animation classes */
.globe-fade-in {
    animation: globeFadeIn 1s ease-out;
}

@keyframes globeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.globe-point-pulse {
    animation: pointPulse 2s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Hover effects */
.globe-3d-container:hover .globe-canvas {
    filter: brightness(1.1);
}

/* Loading spinner */
.globe-loading::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #FF9100;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin: 10px auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}