/* Global Reset & Base */
:root {
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.6);
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* Fondo sólido premium base */
.bg-depth {
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 70%);
}

/* Brillo centrado específicamente para el panel derecho */
.bg-centered-glow {
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 70%);
}

/* Scrollbar Premium */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utilidades de UI */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.btn-press {
    transition: transform 0.1s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-press:active {
    transform: scale(0.96);
}

.input-premium {
    background: #09090b;
    border: 1px solid #27272a;
    color: white;
    transition: all 0.2s ease;
}

.input-premium:focus {
    border-color: #52525b;
    background: #101012;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

/* Animación de carga elegante */
.shimmer-loading {
    position: relative;
    overflow: hidden;
    background: #18181b;
}

.shimmer-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Lógica de Vistas Móviles */
.view-transition {
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

body.mobile-detail-active #sidebar-view {
    transform: translateX(-30%);
    opacity: 0;
    pointer-events: none;
}

body.mobile-detail-active #detail-view {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

body:not(.mobile-detail-active) #detail-view {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Desktop override removed to enforce mobile behavior everywhere */