/* Radiales Kontextmenü - Defence Style */

.radial-menu {
    position: fixed;
    pointer-events: none;
    z-index: 20000 !important; /* Sehr hoch, über allem */
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none; /* Standardmäßig versteckt */
    visibility: hidden;
}

.radial-menu.visible {
    opacity: 1 !important;
    pointer-events: auto;
    display: block !important;
    visibility: visible !important;
}

.radial-menu-ring {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        transparent 60px,
        rgba(10, 14, 20, 0.95) 60px,
        rgba(10, 14, 20, 0.95) 100px,
        transparent 100px
    );
    border: 2px solid var(--accent-cyan, #00d4aa);
    box-shadow: 
        0 0 20px rgba(0, 212, 170, 0.4),
        inset 0 0 20px rgba(0, 212, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-menu-item {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 20, 30, 0.9);
    border: 2px solid var(--accent-cyan, #00d4aa);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-accent, #00ffcc);
    font-size: 20px;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
    pointer-events: auto !important;
    z-index: 20001 !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Delete-Button mit Text */
.radial-menu-item.delete {
    flex-direction: column;
}

.radial-menu-icon {
    font-size: 20px;
    line-height: 1;
}

.radial-menu-label {
    font-size: 8px;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none; /* Standardmäßig versteckt */
}

.radial-menu-item.delete .radial-menu-label {
    display: block; /* Nur beim Delete-Button anzeigen */
}

.radial-menu-item:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--text-accent, #00ffcc);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.6);
    transform: scale(1.1);
}

.radial-menu-item.active {
    background: rgba(0, 212, 170, 0.3);
    border-color: var(--text-accent, #00ffcc);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.8);
}

.radial-menu-item.delete {
    color: var(--text-danger, #ff4466);
    border-color: var(--border-danger, #ff3366);
}

.radial-menu-item.delete:hover {
    background: rgba(255, 68, 102, 0.2);
    box-shadow: 0 0 15px rgba(255, 68, 102, 0.6);
}

.radial-menu-item.status {
    color: var(--text-accent, #00ffcc);
    cursor: default !important;
    pointer-events: none !important; /* Keine Interaktion, nur Anzeige */
    flex-direction: column;
    width: auto;
    min-width: 50px;
    height: auto;
    min-height: 50px;
    padding: 4px 8px;
}

.radial-menu-item.status:hover {
    transform: none !important; /* Kein Hover-Effekt */
    background: rgba(0, 20, 30, 0.9) !important;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3) !important;
}

.radial-menu-item.status .radial-menu-label {
    display: block; /* Label beim Status-Button anzeigen */
}

.radial-menu-status-text {
    font-size: 7px;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.radial-menu-item.status.synced {
    color: var(--accent-green, #00ff88);
    border-color: var(--accent-green, #00ff88);
}

.radial-menu-item.status.not-synced {
    color: var(--text-warning, #ffaa00);
    border-color: var(--text-warning, #ffaa00);
}

.radial-menu-item.view {
    color: var(--accent-cyan, #00ffcc);
    cursor: pointer;
}

.radial-menu-item.view:hover {
    background: rgba(0, 212, 170, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.6);
    transform: scale(1.1);
}

.radial-menu-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent, #00ffcc);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    text-align: center;
    opacity: 0.7;
}

/* Positionierung der Menü-Items im Kreis */
/* View-Button: OBEN (immer oben) */
.radial-menu-item.view {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Status/Sync-Anzeige: RECHTS (immer rechts) */
.radial-menu-item.status {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* View-Direction-Button: LINKS (immer links) */
.radial-menu-item.direction {
    top: 50%;
    left: 10px;
    transform: translateY(-50%) rotate(-90deg);
    color: var(--accent-cyan, #00d4aa); /* Neon-Cyan wie andere Defence-Style Elemente */
}

.radial-menu-item.direction:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--accent-cyan, #00d4aa);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.6);
}

/* Delete-Button: UNTEN (immer unten) */
.radial-menu-item.delete {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 50px;
    height: auto;
    min-height: 50px;
    padding: 4px 8px;
}

/* Ladeanzeige für Photo-View */
.photo-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.95);
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.photo-loading-overlay.visible {
    display: flex;
}

.photo-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 170, 0.2);
    border-top-color: var(--accent-cyan, #00ffcc);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.photo-loading-text {
    color: var(--accent-cyan, #00ffcc);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    text-align: center;
}

/* Mobile Anpassungen */
@media (max-width: 600px) {
    .radial-menu-ring {
        width: 180px;
        height: 180px;
    }
    
    .radial-menu-item {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .radial-menu-center {
        width: 100px;
        height: 100px;
        font-size: 9px;
    }
}

