/* --- TEMA: WHATSAPP (Dark Mode) --- */
.theme-whatsapp {
    background-color: #0b141a !important;
    border-color: #005c4b !important;
    /* Fondo oficial de doodles con opacidad controlada */
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png") !important;
    background-size: 400px !important;
    background-blend-mode: soft-light !important;
}

.theme-whatsapp .toxic-header {
    background: #1f2c34 !important; /* Header estilo barra de chat */
    color: #8696a0 !important;
    border-bottom: 1px solid #2f3b43 !important;
}

/* FIX ICONOS: Solo el logo principal, más grande y limpio */
.theme-whatsapp .toxic-content #icon-1 {
    color: #25D366 !important; /* Verde brillante oficial */
    font-size: 4rem !important; /* Icono GRANDE */
    -webkit-text-stroke: 0 !important; /* Quitar borde neón */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)) !important; /* Sombra suave */
    margin-bottom: 10px;
    display: block !important;
}

/* Ocultar el segundo icono para limpiar el diseño */
.theme-whatsapp .toxic-content #icon-2 {
    display: none !important;
}

/* FIX BURBUJA: Estilo nativo de mensaje enviado */
/* Sobreescribimos la clase .bubble-neon del sistema general */
.theme-whatsapp .bubble-neon {
    background-color: #005c4b !important; /* Verde mensaje enviado */
    color: #e9edef !important; /* Texto blanco mensaje */
    border: none !important;
    
    /* Forma de burbuja de WA */
    border-radius: 7.5px !important;
    border-top-right-radius: 0 !important; /* Esquina de la cola */
    
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13) !important;
    
    /* Posicionamiento y tamaño */
    width: fit-content !important;
    max-width: 85% !important;
    align-self: flex-end !important; /* A la derecha */
    margin-left: auto !important; 
    margin-right: 10px !important; /* Espacio para la cola */
    padding: 8px 12px 10px 12px !important;
    text-align: left !important;
}

/* La "colita" del mensaje */
.theme-whatsapp .bubble-neon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px; /* Posicionar afuera a la derecha */
    left: auto !important; /* Anular estilo base */
    bottom: auto !important; /* Anular estilo base */
    transform: none !important; /* Anular estilo base */
    
    width: 0;
    height: 0;
    /* Triángulo apuntando a la derecha */
    border-top: 10px solid #005c4b; 
    border-right: 10px solid transparent;
    border-left: none !important;
}

/* Limpiar estilos del texto interno para que no interfieran */
.theme-whatsapp p#card-dialogue {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important; /* Texto un poco más grande y legible */
    line-height: 1.4;
}
/* Eliminar cualquier ::after viejo que pudiera tener el párrafo */
.theme-whatsapp p#card-dialogue::after {
    content: none !important;
}

/* FIX INSTRUCCIONES: Alta legibilidad con fondo oscuro fuerte */
.theme-whatsapp .card-instructions-area p#card-instruction {
    color: #ffffff !important;
    font-weight: 600; /* Más peso */
    text-shadow: none; /* Quitamos sombra de texto, usamos fondo */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro fuerte para contraste máximo */
    padding: 10px 15px;
    border-radius: 8px;
    display: block; /* Ocupa ancho disponible si es necesario */
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem; /* Un poco más grande */
}


/* --- TEMA: TINDER (Fire Mode) --- */
.theme-tinder {
    background: linear-gradient(45deg, #fd267a, #ff6036) !important;
    border-color: white !important;
}

.theme-tinder .toxic-header {
    background: rgba(0,0,0,0.2) !important;
    color: white !important;
    border-bottom: none !important;
}

.theme-tinder h2#card-title {
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    font-style: italic;
    font-weight: 800;
}

/* FIX ICONOS TINDER: Solo llama grande */
.theme-tinder .toxic-content #icon-1 {
    color: white !important;
    font-size: 4rem !important; /* Icono grande */
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    display: block !important;
}
.theme-tinder .toxic-content #icon-2 {
    display: none !important; /* Ocultar segundo icono */
}

.theme-tinder p#card-dialogue {
    background: white !important;
    color: #fd267a !important;
    border-radius: 20px !important;
    border: none !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    transform: rotate(-2deg);
    padding: 15px !important;
    font-size: 1.2rem !important;
}

/* FIX INSTRUCCIONES TINDER: Fondo oscuro para contraste sobre el degradado */
.theme-tinder .card-instructions-area p#card-instruction {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* --- TEMA: TIKTOK (Dance Mode) --- */
.theme-tiktok {
    background: #000 !important;
    border-color: #25F4EE !important;
    box-shadow: -3px 0 0 #FE2C55, 3px 0 0 #25F4EE !important;
}

.theme-tiktok .toxic-header {
    background: #111 !important;
    border-bottom: 1px solid #333 !important;
}

.theme-tiktok #challenge-header-title {
    color: white !important;
    text-shadow: 2px 2px 0px #FE2C55, -2px -2px 0px #25F4EE !important;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9/16; 
    max-height: 350px; 
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; /* Asegura que no reciba clics directos */
}

/* OVERLAY BLOQUEADOR: ESTE ES EL SECRETO */
#overlay-blocker {
    z-index: 20; /* Siempre encima del video */
    background: transparent;
    cursor: pointer;
    opacity: 0; /* Invisible pero bloquea la interacción con el iframe */
}