/**
 * Tarot Chatbot - Estilos del Sistema
 */

:root {
    /* Paleta de Colores */
    --oya-primary: #C8A44D;
    --oya-primary-hover: #1f1c16;
    --oya-bg-overlay: rgba(0, 0, 0, 0.85);
    --oya-bg-container: #111111;
    --oya-bg-header: #161616;
    --oya-bg-button: #1a1a1a;
    --oya-text-light: #ffffff;
    --oya-text-muted: #888888;
    --oya-border-color: #333333;

    /* Configuración Visual */
    --oya-border-radius: 16px;
    --oya-border-radius-inner: 8px;
    --oya-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset de caja básico */
#oya-modal-overlay,
#oya-modal-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* -------------------------------------------------------------------------- */
/* 1. BOTÓN DE ACTIVACIÓN (FLOTANTE)                                          */
/* -------------------------------------------------------------------------- */
#oya-button {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--oya-primary);
    background-color: var(--oya-bg-container);
    color: var(--oya-primary);
    font-size: 26px;
    cursor: pointer;
    z-index: 999998;
    box-shadow: 0 4px 15px rgba(200, 164, 77, 0.3);
}

#oya-button:hover {
    background-color: var(--oya-bg-button);
}

/* -------------------------------------------------------------------------- */
/* 2. OVERLAY Y CONTENEDOR PRINCIPAL                                          */
/* -------------------------------------------------------------------------- */
#oya-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--oya-bg-overlay);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

#oya-game-container {
    background-color: var(--oya-bg-container);
    color: var(--oya-text-light);
    width: 90%;
    max-width: 550px;
    border: 2px solid var(--oya-primary);
    border-radius: var(--oya-border-radius);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(200, 164, 77, 0.25);
    font-family: var(--oya-font-family);
}

/* -------------------------------------------------------------------------- */
/* 3. CABECERA                                                                */
/* -------------------------------------------------------------------------- */
#oya-game-header {
    background-color: var(--oya-bg-header);
    color: var(--oya-primary);
    padding: 16px 20px;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid var(--oya-border-color);
    position: relative;
}

#oya-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--oya-text-muted);
    font-size: 24px;
    cursor: pointer;
}

#oya-close-btn:hover {
    color: var(--oya-primary);
}

/* -------------------------------------------------------------------------- */
/* 4. ÁREA DE JUEGO                                                           */
/* -------------------------------------------------------------------------- */
#oya-game-body {
    padding: 35px 25px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oya-screen {
    display: none;
    width: 100%;
}

.oya-screen.active {
    display: block;
}

/* Tipografías y Espaciados */
.oya-instruction {
    color: var(--oya-text-muted);
    font-size: 14px;
    text-align: center;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    line-height: 1.2;
}

.oya-main-title {
    color: var(--oya-text-light);
    font-size: 24px;
    text-align: center;
    margin: 0 0 35px 0;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* 5. CUADRÍCULA Y BOTONES                                                    */
/* -------------------------------------------------------------------------- */
.oya-grid-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.oya-opt-btn {
    background-color: var(--oya-bg-button);
    color: var(--oya-text-light);
    border: 1px solid var(--oya-border-color);
    border-radius: var(--oya-border-radius-inner);
    
    min-height: 60px;
    padding: 15px 20px;
    font-size: 16px;
    font-family: var(--oya-font-family);
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.oya-opt-btn:hover {
    border-color: var(--oya-primary);
    background-color: var(--oya-primary-hover);
}

/* -------------------------------------------------------------------------- */
/* 6. FORMULARIOS Y PANTALLA DE PERFIL                                        */
/* -------------------------------------------------------------------------- */
#oya-game-container .oya-form-group {
    margin-bottom: 20px;
    width: 100%;
}

#oya-game-container .oya-label {
    display: block;
    color: var(--oya-text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    font-family: var(--oya-font-family);
}

#oya-game-container select.oya-input,
#oya-game-container input.oya-input {
    display: block;
    width: 100%;
    background-color: var(--oya-bg-button);
    color: var(--oya-text-light);
    border: 1px solid var(--oya-border-color);
    border-radius: var(--oya-border-radius-inner);
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--oya-font-family);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    height: auto;
    line-height: normal;
}

#oya-game-container button.oya-submit-btn {
    display: block;
    width: 100%;
    background-color: var(--oya-primary);
    color: #000000;
    border: none;
    border-radius: var(--oya-border-radius-inner);
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    font-family: var(--oya-font-family);
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.15s ease;
}

#oya-game-container button.oya-submit-btn:hover {
    background-color: #e0b95c;
}

/* -------------------------------------------------------------------------- */
/* 7. PANTALLA DE MEZCLA Y CARTAS GRÁFICAS                                    */
/* -------------------------------------------------------------------------- */
.oya-deck-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.oya-shuffling-card {
    width: 140px;
    height: 220px;
    background: linear-gradient(135deg, #161616 0%, #0d0d0d 100%);
    border: 2px solid var(--oya-primary);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* Detalle lineal dorado exclusivo del reverso de la carta */
.oya-shuffling-card::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(200, 164, 77, 0.25);
    border-radius: 8px;
    pointer-events: none;
}

/* Estado de la carta revelada (Frontal Gráfico) */
.oya-shuffling-card.revealed {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.oya-shuffling-card.revealed::after {
    display: none;
}

#oya-interpretation-box {
    margin-top: 25px;
    background-color: var(--oya-bg-button);
    border: 1px solid var(--oya-border-color);
    border-radius: var(--oya-border-radius-inner);
    padding: 20px;
    max-height: 180px;
    overflow-y: auto;
}

#oya-card-name {
    color: var(--oya-primary);
    font-size: 18px;
    margin-bottom: 8px;
}

#oya-card-meaning {
    font-size: 14px;
    line-height: 1.5;
    color: #dddddd;
}