/* --- ESTILOS EXCLUSIVOS PARA LA DEMO DE DADOS --- */
/* Este archivo es autónomo y permite incrustar la demo en cualquier página */

#demo-dados {
    background-color: #000;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Títulos y Textos de la Demo */
#demo-dados h2 {
    color: #ffffff;
    position: relative; z-index: 10;
    font-family: 'Poppins', sans-serif;
}

#demo-dados h2 .text-gradient {
    background-image: linear-gradient(45deg, #ff3d00, #E11D48);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#demo-dados .text-muted-foreground {
    color: rgba(255, 255, 255, 0.7) !important;
    position: relative; z-index: 10;
    font-family: 'Poppins', sans-serif;
}

/* --- ESCENA 3D (Copia local para independencia de la Demo) --- */
#demo-dados .scene {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin: 1.2rem 0;
    perspective: 800px;
    position: relative; z-index: 10;
}

#demo-dados .cube-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

#demo-dados .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 0 5px rgba(225, 29, 72, 0.5);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

#demo-dados .cube {
    width: 64px;
    height: 64px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}

#demo-dados .face {
    position: absolute;
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 10px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.6);
}

/* RUTAS RELATIVAS: Buscan en la carpeta 'faces' junto a este CSS */
#demo-dados .front  { transform: translateZ(32px); background-image: url('./faces/dice-1.svg'); }
#demo-dados .back   { transform: rotateY(180deg) translateZ(32px); background-image: url('./faces/dice-6.svg'); }
#demo-dados .right  { transform: rotateY(90deg) translateZ(32px); background-image: url('./faces/dice-2.svg'); }
#demo-dados .left   { transform: rotateY(-90deg) translateZ(32px); background-image: url('./faces/dice-5.svg'); }
#demo-dados .top    { transform: rotateX(90deg) translateZ(32px); background-image: url('./faces/dice-3.svg'); }
#demo-dados .bottom { transform: rotateX(-90deg) translateZ(32px); background-image: url('./faces/dice-4.svg'); }

/* --- BOTONES DE LA DEMO --- */
#demo-dados .btn-roll,
#demo-dados .buy-button {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 3px solid #d946ef !important;
    color: #d946ef !important;
    padding: 0.8rem 2.5rem !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2) !important;
    margin-top: 1.5rem !important;
}

/* AJUSTE ESPECÍFICO PARA EL BOTÓN DE COMPRA (Equilibrado) */
#demo-dados .buy-button {
    padding: 1rem 3rem !important;    /* Reducido ligeramente */
    font-size: 1.15rem !important;    /* Tamaño de fuente más balanceado */
    border-width: 2px !important;     /* Borde estándar */
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 55px !important;      /* Altura ajustada */
}

#demo-dados .btn-roll:hover,
#demo-dados .buy-button:hover {
    background: linear-gradient(135deg, #c026d3, #e11d48) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.6) !important;
}

#demo-dados .btn-roll:disabled {
    border-color: #555 !important;
    color: #888 !important;
    background: rgba(0,0,0,0.8) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Mensajes de Límite */
#plays-left,
#demo-limit-message p {
    color: rgba(255, 255, 255, 0.9);
    position: relative; z-index: 10;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- MODAL DE RESULTADOS DEMO --- */
#result-modal-demo {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: none;
    justify-content: center; align-items: center;
    z-index: 2000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

#result-modal-demo .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 320px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#result-modal-demo .modal-title-challenge {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

#result-modal-demo .result-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

#result-modal-demo .result-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    backdrop-filter: blur(5px);
    width: 100%;
    box-sizing: border-box;
}

#result-modal-demo .result-item i {
    font-size: 1.2rem;
    color: #d946ef;
    min-width: 20px;
    text-align: center;
}

#result-modal-demo .result-item span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#result-modal-demo .summary-text {
    font-size: 1.1rem; /* Ligeramente más pequeño */
    font-weight: 400;  /* Peso normal, no negrita */
    line-height: 1.5;  /* Más espaciado para legibilidad */
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    margin-top: 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column; /* Para que cada parte del reto esté en una línea */
    gap: 0.5rem;
    align-items: center;
}

#result-modal-demo .summary-text span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#result-modal-demo .summary-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

#result-modal-demo .summary-actions .btn-roll {
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    margin-top: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 25px !important;
    color: white !important;
    box-shadow: none !important;
    justify-content: center !important;
}

#result-modal-demo .summary-actions .btn-roll:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: white !important;
    transform: translateY(-2px) !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
