/* ============================================
   CYBERLUDUS - BOX ANTEPRIMA v1.0
   Stile coerente con cl-review-box.css
   Le classi .cl-review-body, .cl-pro-con-section,
   .cl-wysiwyg-content ecc. sono condivise e già
   definite in cl-review-box.css
   ============================================ */

/* ---- CONTAINER PRINCIPALE ---- */
.cl-preview-box {
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    position: relative;
    background: linear-gradient(145deg, #0a0a0f 0%, #12121a 50%, #0d0d14 100%);
    border: 1px solid rgba(255, 60, 60, 0.15);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    animation: cl-fadeInUp 0.6s ease forwards;
}

/* Linea rossa luminosa in alto */
.cl-preview-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff3c3c, #ff6b35, #ff3c3c, transparent);
    z-index: 2;
}

/* Glow di sfondo */
.cl-preview-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 60, 60, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 107, 53, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Effetto scanlines (shared con review box) */
.cl-preview-box .scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    pointer-events: none;
    z-index: 3;
}

/* ---- HEADER ---- */
.cl-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 20px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Etichetta "PRIME IMPRESSIONI" */
.cl-preview-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 6px;
    color: rgba(255, 60, 60, 0.7);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Titolo gioco */
.cl-preview-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* ---- BADGE ESITO ---- */
.cl-esito-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 130px;
    min-height: 90px;
    border: 2px solid;
    border-radius: 4px;
    padding: 12px 10px;
    box-sizing: border-box;
    text-align: center;
}

.cl-esito-icon {
    font-size: 30px;
    line-height: 1;
    display: block;
}

.cl-esito-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    display: block;
}

/* ---- BODY (riusa classi cl-review-box.css) ---- */
/* .cl-review-body, .cl-pro-con-section, .cl-pro-section,
   .cl-con-section, .cl-section-header, .cl-section-icon,
   .cl-pro-icon, .cl-con-icon, .cl-section-title,
   .cl-pro-title, .cl-con-title, .cl-wysiwyg-content,
   .cl-pro-content, .cl-con-content — già definite */

/* ---- FOOTER (riusa .cl-review-footer e .cl-footer-brand) ---- */

/* ---- VARIANTE HARDWARE ---- */
.cl-preview-box.cl-preview-hardware {
    border-color: rgba(0, 212, 255, 0.2);
}
.cl-preview-box.cl-preview-hardware::before {
    background: linear-gradient(90deg, transparent, #00d4ff, #0af, #00d4ff, transparent);
}
.cl-preview-box.cl-preview-hardware::after {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 180, 255, 0.04) 0%, transparent 60%);
}
.cl-preview-box.cl-preview-hardware .cl-preview-label {
    color: rgba(0, 212, 255, 0.7);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .cl-preview-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 18px 16px;
    }

    .cl-preview-title {
        font-size: 18px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .cl-esito-badge {
        width: 100%;
        min-height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 12px 20px;
        gap: 12px;
    }

    .cl-esito-icon {
        font-size: 24px;
    }
}

/* ---- PREFERS REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    .cl-preview-box { animation: none; opacity: 1; transform: none; }
}
