/* ============================================
   DOGSTON — SELECCIONAR TAMAÑO PROMPT
   Estilo 8-bit Pixel Art
   ============================================ */

/* ─── Contenedor del prompt ─── */
.cpy-size-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    width: fit-content;
    background: rgba(255, 0, 68, 0.06);
    border: 2px solid rgba(255, 0, 68, 0.3);
    border-left: 4px solid #ff0044;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
    animation: dgsPromptPulse 2.5s steps(2) infinite;
    cursor: default;
    box-shadow: 3px 3px 0px 0px rgba(255, 0, 68, 0.25);
}

/* Glow pulsante del borde — 8-bit steps */
@keyframes dgsPromptPulse {
    0%, 100% {
        border-color: rgba(255, 0, 68, 0.3);
        border-left-color: #ff0044;
        box-shadow: 3px 3px 0px 0px rgba(255, 0, 68, 0.25);
    }
    50% {
        border-color: rgba(255, 0, 68, 0.55);
        border-left-color: #ff0044;
        box-shadow: 3px 3px 0px 0px rgba(255, 0, 68, 0.25),
                    0 0 15px rgba(255, 0, 68, 0.15);
    }
}

/* Scanline pixel que recorre el fondo */
.cpy-size-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 0, 68, 0.06),
            rgba(255, 100, 100, 0.04),
            transparent);
    animation: dgsScanline 3s steps(12) infinite;
    pointer-events: none;
}

@keyframes dgsScanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ─── Ícono de la mano (recorre todo el ancho) ─── */
.cpy-size-prompt__icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 1.3rem;
    animation: dgsSweepHand 2.5s steps(10) infinite;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 4px rgba(255, 0, 68, 0.3));
}

@keyframes dgsSweepHand {
    0% { left: 2%; }
    50% { left: 90%; }
    100% { left: 2%; }
}

/* ─── Texto ─── */
.cpy-size-prompt__text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff0044;
    font-weight: 400;
    text-shadow:
        0 0 8px rgba(255, 0, 68, 0.3),
        2px 2px 0px rgba(0, 0, 0, 0.6);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cpy-size-prompt__text span {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: rgba(232, 232, 232, 0.55);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    text-shadow: none;
    margin-top: 4px;
}

/* ─── Glow en los swatches cuando el prompt está activo ─── */
.cpy-size-highlight .variable-items-wrapper {
    animation: dgsSwatchGlow 2s steps(2) infinite;
    border-radius: 0 !important;
    padding: 3px 7px 3px 3px !important;
    width: fit-content;
}

@keyframes dgsSwatchGlow {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(255, 0, 68, 0.15);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(255, 0, 68, 0.4),
                    0 0 12px rgba(255, 0, 68, 0.1);
    }
}

/* ─── Fade out al seleccionar — pixelado ─── */
.cpy-size-prompt.cpy-hiding {
    animation: dgsFadeOut 0.3s steps(4) forwards;
}

@keyframes dgsFadeOut {
    to {
        opacity: 0;
        transform: translateY(-6px);
        max-height: 0;
        padding: 0 18px;
        margin: 0;
        border-width: 0;
        overflow: hidden;
    }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .cpy-size-prompt {
        padding: 8px 12px;
        gap: 8px;
    }
    .cpy-size-prompt__text {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
    .cpy-size-prompt__text span {
        font-size: 0.72rem;
    }
    .cpy-size-prompt__icon {
        font-size: 1.1rem;
    }
}
