/* klipy-styles.css - Estética Full Neón Routters.vip (Sin efecto Zoom) */

/* Contenedor de botones en el editor */
.klipy-btn-group {
    padding: 8px 0;
    z-index: 999;
    display: inline-flex;/* Botón Subir Video (Verde Neón Routters) */
.vid-btn {
    border-color: #00ff00 !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4) !important;
}
.vid-btn:hover { 
    box-shadow: 0 0 15px #00ff00 !important; 
}

/* Estilización del input file para que encaje con el Modal */
#klipy-file-input {
    color: #fff;
    width: 80%;
    margin: 0 auto;
}

#klipy-file-input::file-selector-button {
    background-color: #1a1a1a;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-right: 15px;
}

#klipy-file-input::file-selector-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}
    gap: 8px;
}

/* Botón Base (Estilo GIF / General) */
.klipy-injected-btn {
    background-color: #c8a2c8 !important; /* Lila base */
    color: #ffffff !important;
    border: 2px solid #00ffff !important; /* Borde Cian Neón */
    padding: 6px 14px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Botón Sticker (Rosa Neón) */
.stk-btn {
    border-color: #ff00ff !important;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.4) !important;
}

/* Botón YouTube (Rojo Neón) */
.yt-btn {
    border-color: #ff0000 !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4) !important;
}

/* Efectos Hover - ¡Corregido sin Zoom ni saltos! */
.klipy-injected-btn:hover {
    filter: brightness(1.2) !important; /* Solo mantenemos el aumento de brillo */
}

.klipy-injected-btn:hover { box-shadow: 0 0 15px #00ffff !important; }
.stk-btn:hover { box-shadow: 0 0 15px #ff00ff !important; }
.yt-btn:hover { box-shadow: 0 0 15px #ff0000 !important; }

/* Estructura del Modal (Ventana Emergente) */
#klipy-modal {
    position: fixed !important;
    z-index: 9999999 !important;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.klipy-backdrop {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro detrás */
}

.klipy-content {
    position: relative; 
    z-index: 10000000;
    background: #1a1a1a; 
    width: 92%; 
    max-width: 480px;
    border-radius: 15px; 
    border: 3px solid #00ffff;
    padding: 20px; 
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* Caja de búsqueda */
#klipy-search {
    width: 100%; 
    padding: 12px; 
    border-radius: 8px;
    border: 2px solid #c8a2c8; 
    background: #000; 
    color: #00ffff;
    outline: none;
    font-size: 14px;
}

#klipy-search:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Botón de cerrar (X) */
#klipy-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#klipy-close:hover {
    color: #ff0000;
}

/* Rejilla de Resultados */
#klipy-results {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; 
    max-height: 380px; 
    overflow-y: auto; 
    margin-top: 15px;
    padding-right: 5px;
}

/* Estilo de las imágenes e items - ¡Corregido sin Zoom! */
#klipy-results img {
    width: 100%; 
    height: 100px; 
    object-fit: cover;
    border-radius: 8px; 
    cursor: pointer; 
    border: 2px solid transparent;
    transition: 0.2s;
}

#klipy-results img:hover {
    border-color: #00ffff;
    /* Se eliminó el transform: scale(1.03) para que la imagen se quede quieta */
}

/* Scrollbar personalizada para el modal */
#klipy-results::-webkit-scrollbar {
    width: 6px;
}
#klipy-results::-webkit-scrollbar-thumb {
    background: #c8a2c8;
    border-radius: 10px;
}

/* Estilos específicos para items de YouTube */
.yt-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
}

.yt-title {
    font-size: 10px;
    color: #eee;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: sans-serif;
}

.yt-item:hover .yt-title {
    color: #ff0000;
}

/* Pie del modal */
.klipy-footer { 
    text-align: right; 
    color: #00ffff; 
    font-size: 10px; 
    margin-top: 12px; 
    opacity: 0.5;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Botón Subir Video (Verde Neón Routters) */
.vid-btn {
    border-color: #00ff00 !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4) !important;
}
.vid-btn:hover { 
    box-shadow: 0 0 15px #00ff00 !important; 
}

/* Estilización del input file para que encaje con el Modal */
#klipy-file-input {
    color: #fff;
    width: 80%;
    margin: 0 auto;
}

#klipy-file-input::file-selector-button {
    background-color: #1a1a1a;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-right: 15px;
}

#klipy-file-input::file-selector-button:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}