/* ═══════════════════════════════════════════════════════════════════════════════
   PYRAMASON GLOBE VIEW - CSS STYLES
   Uses CSS variables from styles.css for consistency
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Globe Container */
#globeContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, var(--bg-primary, #0a0f1a) 0%, var(--bg-secondary, #1a1a2e) 50%, var(--bg-primary, #0a0f1a) 100%);
    cursor: grab;
}

#globeContainer:active {
    cursor: grabbing;
}

#globeContainer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Globe Toggle Button */
#globeToggleBtn {
    font-size: 18px;
    transition: var(--transition-normal, all 0.3s ease);
}

#globeToggleBtn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-cyan, 0 0 20px rgba(0, 245, 212, 0.4));
}

/* Globe Tooltip */
.globe-tooltip {
    position: fixed;
    padding: 12px 16px;
    background: rgba(10, 15, 26, 0.95);
    border: 1px solid var(--accent-cyan-dim, rgba(0, 245, 212, 0.5));
    border-radius: var(--radius-md, 10px);
    color: var(--text-primary, #fff);
    font-size: 13px;
    pointer-events: none;
    z-index: 10000;
    max-width: 280px;
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.6)), 0 0 20px rgba(0, 245, 212, 0.2);
    backdrop-filter: blur(10px);
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.globe-tooltip .tooltip-name {
    font-weight: 600;
    color: var(--accent-cyan, #00f5d4);
    font-size: 14px;
    margin-bottom: 4px;
}

.globe-tooltip .tooltip-type {
    font-size: 11px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    text-transform: capitalize;
}

.globe-tooltip .tooltip-country {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.5));
    margin-top: 2px;
}

.globe-tooltip .tooltip-hint {
    font-size: 10px;
    color: var(--text-muted, rgba(255, 255, 255, 0.3));
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

/* Globe Controls Overlay */
.globe-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-glass, rgba(10, 15, 26, 0.9));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.globe-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.2));
    background: var(--bg-hover, rgba(255, 255, 255, 0.05));
    color: var(--text-primary, #fff);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast, all 0.2s ease);
}

.globe-controls button:hover {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--accent-cyan-dim, rgba(0, 245, 212, 0.5));
    transform: scale(1.1);
}

/* Globe Legend */
.globe-legend {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 20px;
    background: var(--bg-glass, rgba(10, 15, 26, 0.9));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 12px);
    backdrop-filter: blur(10px);
    z-index: 100;
    min-width: 150px;
}

.globe-legend h4 {
    color: var(--text-primary, #fff);
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.globe-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.globe-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

/* Globe Stats */
.globe-stats {
    position: fixed;
    bottom: 30px;
    right: 20px;
    padding: 12px 16px;
    background: var(--bg-glass, rgba(10, 15, 26, 0.9));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 10px);
    backdrop-filter: blur(10px);
    z-index: 100;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.globe-stats strong {
    color: var(--accent-cyan, #00f5d4);
    font-size: 16px;
}

/* Globe Loading State */
.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-primary, #fff);
    z-index: 10;
}

.globe-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-top-color: var(--accent-cyan, #00f5d4);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .globe-legend {
        top: auto;
        bottom: 100px;
        right: 10px;
        left: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .globe-legend h4 {
        width: 100%;
        text-align: center;
    }
    
    .globe-legend-item {
        padding: 4px 8px;
        background: var(--bg-hover, rgba(255, 255, 255, 0.05));
        border-radius: 20px;
    }
    
    .globe-controls {
        bottom: 20px;
        padding: 8px 15px;
    }
    
    .globe-controls button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .globe-stats {
        bottom: 20px;
        left: 10px;
        right: auto;
    }
    
    #globeToggleBtn {
        font-size: 16px;
    }
}

/* Dark Mode Adjustments (Globe is always dark) */
body.light-mode #globeContainer {
    background: linear-gradient(135deg, var(--bg-primary, #0a0f1a) 0%, var(--bg-secondary, #1a1a2e) 50%, var(--bg-primary, #0a0f1a) 100%);
}

/* Hide scrollbar on globe */
#globeContainer::-webkit-scrollbar {
    display: none;
}

#globeContainer {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
