/* VR Star Map Styles */

.vrstarmap-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

#vrstarmap-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#vrstarmap-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Header */
.vrstarmap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(17, 24, 39, 0.9);
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
    z-index: 110;
    flex-shrink: 0;
    height: 48px;
}

.vrstarmap-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vrstarmap-title {
    color: #e5e7eb;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.vrstarmap-header-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vrstarmap-fov-display {
    color: #9ca3af;
    font-size: 0.85rem;
    font-family: monospace;
}

.vrstarmap-coords {
    color: #9ca3af;
    font-size: 0.85rem;
    font-family: monospace;
}

.vrstarmap-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.vrstarmap-btn {
    background: rgba(55, 65, 81, 0.7);
    border: 1px solid rgba(75, 85, 99, 0.6);
    color: #d1d5db;
    padding: 0.3rem 0.6rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.vrstarmap-btn:hover {
    background: rgba(75, 85, 99, 0.8);
    color: #f3f4f6;
}

.vrstarmap-btn.active {
    background: rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.7);
    color: #93c5fd;
}

/* Bottom overlays */
.vrstarmap-location {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 110;
}

.vrstarmap-info {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 110;
    color: #6b7280;
    font-size: 0.8rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Location dialog */
.vrstarmap-dialog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.vrstarmap-dialog-content {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-width: 280px;
    color: #e5e7eb;
}

.vrstarmap-dialog-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.vrstarmap-dialog-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.vrstarmap-dialog-row label {
    min-width: 80px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.vrstarmap-dialog-row input {
    flex: 1;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.25rem;
    color: #e5e7eb;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

.vrstarmap-dialog-row input:focus {
    outline: none;
    border-color: #3b82f6;
}

.vrstarmap-dialog-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* Mobile / tablet responsive */
@media (max-width: 768px) {
    .vrstarmap-header {
        padding: 0.4rem 0.5rem;
        gap: 0.25rem;
    }

    .vrstarmap-title {
        font-size: 0.9rem;
    }

    .vrstarmap-header-center {
        display: none;
    }

    .vrstarmap-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .vrstarmap-header-right {
        gap: 0.25rem;
    }
}

/* Touch-friendly buttons on tablet */
@media (pointer: coarse) {
    .vrstarmap-btn {
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
}
