/* styles/style.css - Estilos Unificados (Dashboard + Pixels) */

:root {
    /* --- CONSTANTES DEL GRID --- */
    --grid-cols: 32;
    /* Se actualiza por JS */
    --grid-rows: 32;
    /* Se actualiza por JS */

    /* --- PALETA DE COLORES --- */
    --pixel-color-off: #000000;
    --pixel-color-noise: #0f0f0f;
    --pixel-color-on: #ffffff;
    --bg-color: #000000;

    /* --- COLORES DE EFECTOS --- */
    --color-red: #ff003cb9;
    --color-orange: #ff5e00b9;
    --color-yellow: #ffde00b9;
    --color-green: #39ff14b9;
    --color-blue: #00f3ffb9;
    --color-purple: #b026ffb9;
    --color-system: #969696b9;

    /* --- DASHBOARD SPECIFIC --- */
    --neon-green: #00ff41;
    --color-indicator: #ffffffc9;
    --font-mono: 'doto', monospace;
}

/* --- ESTILOS BASE --- */
body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-mono);
    /* Dashboard Font */
    color: var(--pixel-color-on);
}

/* --- CONTENEDOR DEL DISPLAY --- */
.display-wrapper {
    background-color: var(--pixel-color-off);
    cursor: default;
    width: 100vw;
    height: 100vh;
    position: relative;
    /* Para el z-index */
    z-index: 2;
    /* Por encima del glow */
}

.pixel-display {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    grid-template-rows: repeat(var(--grid-rows), 1fr);
    width: 100%;
    height: 100%;
    background-color: var(--pixel-color-off);
    gap: 1px;
}

/* --- PIXEL / LED --- */
.pixel {
    box-sizing: border-box;
    background-color: var(--pixel-color-noise);
    transition: background-color 0.1s ease-out;
    border: none;
    border-radius: 1px;
}

/* --- ESTADOS Y COLORES --- */
.on {
    background-color: var(--pixel-color-on);
    box-shadow: 0 0 5px rgba(200, 200, 200, 0.7);
}

.bg-noise {
    background-color: var(--pixel-color-noise);
}

.red {
    background-color: var(--color-red);
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.7);
}

.orange {
    background-color: var(--color-orange);
    box-shadow: 0 0 8px rgba(255, 94, 0, 0.7);
}

.yellow {
    background-color: var(--color-yellow);
    box-shadow: 0 0 8px rgba(255, 222, 0, 0.7);
}

.green {
    background-color: var(--color-green);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.7);
}

.blue {
    background-color: var(--color-blue);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.7);
}

.purple {
    background-color: var(--color-purple);
    box-shadow: 0 0 8px rgba(176, 38, 255, 0.7);
}

.system {
    background-color: var(--color-system);
    box-shadow: 0 0 5px #303030b9;
}

/* --- EFECTOS VISUALES --- */
.purple-glow {
    background-color: rgba(176, 38, 255, 0.25);
    box-shadow: 0 0 15px 4px rgba(176, 38, 255, 0.65);
    z-index: 0;
}

/* --- DASHBOARD UI (Nothing Phone Style Glow) --- */
#floating-indicator {
    position: fixed;
    width: 270vw;
    height: 130vw;
    bottom: -130.4vw;
    left: 50%;
    transform: translateX(-50%);

    background-color: var(--color-indicator);
    border-radius: 100%;
    box-shadow: 0 0 130px var(--color-indicator);
    opacity: 0.8;
    z-index: 1;

    animation: pulse-float 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulse-float {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 0.85;
    }

    to {
        transform: translateX(-50%) translateY(-10px);
        opacity: 0.95;
    }
}

/* --- TEXT UTILITIES --- */
.clock-text {
    font-size: 15vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -5px;
}

.date-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* --- UTILITIES --- */
[x-cloak] {
    display: none !important;
}