/* Globe-specific styles */

/* Globe Canvas */
#globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Globe Controls Overlay */
.globe-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.globe-control-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.globe-control-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.globe-control-btn.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

/* Territory Tooltip */
.territory-tooltip {
    position: absolute;
    padding: 12px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 200;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.territory-tooltip.visible {
    opacity: 1;
}

.territory-tooltip h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.territory-tooltip p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.territory-tooltip .owner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.territory-tooltip .owner-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

.territory-tooltip .owner-name {
    font-size: 12px;
    color: var(--text-primary);
}

/* Nation Markers on Globe */
.nation-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nation-marker:hover {
    transform: translate(-50%, -100%) scale(1.1);
}

.nation-marker-flag {
    width: 32px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nation-marker-pin {
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--primary-gold);
}

/* Attack Animation Line */
.attack-line {
    position: absolute;
    pointer-events: none;
    z-index: 100;
}

.attack-line svg {
    overflow: visible;
}

.attack-line path {
    fill: none;
    stroke: var(--accent-red);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: attackFlow 1s linear infinite;
}

@keyframes attackFlow {
    from {
        stroke-dashoffset: 12;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Trade Route Animation */
.trade-line path {
    stroke: var(--accent-green);
    stroke-dasharray: 4 4;
    animation: tradeFlow 2s linear infinite;
}

@keyframes tradeFlow {
    from {
        stroke-dashoffset: 8;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Selection Highlight */
.territory-selected {
    animation: territoryPulse 1.5s ease-in-out infinite;
}

@keyframes territoryPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 4px var(--primary-gold));
    }

    50% {
        filter: drop-shadow(0 0 12px var(--primary-gold));
    }
}

/* Zoom Level Indicator */
.zoom-indicator {
    position: absolute;
    bottom: 24px;
    right: 24px;
    padding: 8px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

/* Mini Map */
.mini-map {
    position: absolute;
    bottom: 80px;
    right: 24px;
    width: 180px;
    height: 100px;
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
}

.mini-map canvas {
    width: 100%;
    height: 100%;
}

.mini-map-viewport {
    position: absolute;
    border: 2px solid var(--primary-gold);
    pointer-events: none;
}

/* Strategic Overlay Icons */
.strategic-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.strategic-icon:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: var(--shadow-gold);
}

.strategic-icon.resource {
    border-color: var(--accent-green);
}

.strategic-icon.military {
    border-color: var(--accent-red);
}

.strategic-icon.city {
    border-color: var(--accent-blue);
}