/**
 * Reticore CSS
 * Styles for the minimal cursor data display element
 */

.reticore {
    position: fixed;
    pointer-events: none;
    z-index: 5000;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.8); /* Darker background for better visibility */
    border: 1px solid rgba(100, 149, 237, 0.9); /* Brighter border */
    border-radius: 3px;
    padding: 4px 6px;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(2px);
    transform: translate(15px, 15px);
    transition: opacity 0.3s ease;
    box-shadow: 0 0 8px rgba(100, 149, 237, 0.5); /* Brighter shadow */
    white-space: nowrap;
    user-select: none;
    will-change: transform, opacity;
    contain: layout style paint;
    left: 0;
    top: 0;
    opacity: 1;
}

.reticore.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.reticore-data-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    contain: content;
}

.reticore-label {
    color: rgba(100, 149, 237, 1); /* Brighter label color */
    font-weight: bold;
}

.reticore-value {
    font-family: 'Consolas', 'Monaco', monospace;
    color: rgba(255, 255, 255, 1); /* Brighter value color */
}

.reticore-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(100, 149, 237, 0.7), transparent);
    margin: 2px 0;
}

/* Different modes/states for the reticore */
.reticore.minimal {
    padding: 2px 4px;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better visibility */
    border-width: 1px;
}

.reticore.expanded {
    padding: 6px 8px;
    background-color: rgba(0, 0, 0, 0.85); /* Darker background for better visibility */
    border-width: 1px;
    font-size: 11px; /* Slightly larger font for expanded mode */
}

/* Pulse animation for active data changes */
@keyframes data-pulse {
    0% { color: rgba(255, 255, 255, 1); }
    50% { color: rgba(100, 149, 237, 1); }
    100% { color: rgba(255, 255, 255, 1); }
}

.reticore-value.pulse {
    animation: data-pulse 0.5s ease;
}

/* Appear animation */
@keyframes reticore-appear {
    0% { 
        opacity: 0;
        transform: translate(15px, 15px) scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: translate(15px, 15px) scale(1);
    }
}

/* Disable animation for initial load to prevent issues */
.reticore:not(.hidden) {
    animation: none;
}
