/**
 * PAS Shipping - Globe Animation Styles
 * Responsive and modern styling for the interactive globe
 */

#globe-container {
    width: 900px;
    height: 900px;
    position: relative;
    cursor: grab;
    overflow: hidden;
    background: #ffffff;
    margin: 0 auto;
    margin-left: calc(50% - 500px);
}

#globe-container:active {
    cursor: grabbing;
}

/* Responsive sizing */
@media (max-width: 1024px) {
    #globe-container {
        width: 70vw;
        height: 70vw;
        max-width: 600px;
        max-height: 600px;
        margin-left: auto; /* Center on tablet */
    }
}

@media (max-width: 768px) {
    #globe-container {
        width: 85vw;
        height: 85vw;
        max-width: 450px;
        max-height: 450px;
        margin-left: auto; /* Center on tablet */
    }
}

@media (max-width: 480px) {
    #globe-container {
        width: 80vw;
        height: 80vw;
        max-width: 280px;
        max-height: 280px;
        margin-left: auto; /* Center on mobile */
    }
}

/* Loading state (optional) */
#globe-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

#globe-container.loading::before {
    content: 'Loading Globe...';
    color: #3b82f6;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Smooth transitions */
#globe-container canvas {
    transition: opacity 0.3s ease-in-out;
}


/* Hover state indicator */
.globe-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    display: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.globe-tooltip.active {
    display: block;
}
