@charset "UTF-8";

/* ─── EL TRUCO MAESTRO: ASEGURAR EL CONTENEDOR PADRE ─── */
/* Asegúrate de que la columna de la izquierda de tu inventario (donde está el Aguijón, el God Tuner, etc.) 
   tenga una clase (por ejemplo, .inventory-column-1). Le aplicaremos obligatoriamente un position: relative.
*/
/* Obliga a la columna a ser el marco de referencia de los paneles */
.inventory-column {
    position: relative !important;
}

/* Modificamos el panel base para que se ajuste exactamente al contenedor padre */
.glass-panel-local {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;       /* Clavado al ancho exacto de la columna */
    height: 40%;      /* Ajustado a la mitad superior exacta de la sección */
    
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 12, 2, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), 
                inset 0 0 25px rgba(255, 215, 0, 0.08);
    
    padding: 15px;
    box-sizing: border-box;
    z-index: 50; 
    transform-origin: center top; 
}

.hidden {
    display: none !important;
}

/* Animaciones sin prefijos antiguos */
.animate-scale-in {
    animation: scale-in-ver-top 0.25s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.animate-scale-out {
    animation: scale-out-ver-top 0.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ─── ENCABEZADO Y COMPONENTES ─── */
.glass-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 0.9rem; /* Un pelín más pequeño para que no rompa en cajas angostas */
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.panel-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    margin: 8px 0; /* Espaciado más compacto */
}

/* ─── BOTÓN DE MINIMIZAR ESTILIZADO ─── */
#minimize-panel-btn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    color: #c5a059;
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s ease;
}

#minimize-panel-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

/* ─── SECCIÓN CHECKLIST ANIMADA ─── */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px;
    cursor: pointer;
    border-bottom: 1px solid rgba(212, 175, 55, 0.04);
}

/* El texto base */
.task-text {
    color: #e6dfd3;
    font-family: sans-serif;
    font-size: 0.8rem; /* Reducido para encajar perfectamente en la columna */
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap; /* Evita que el texto del panteón se rompa en dos renglones */
    overflow: hidden;
    text-overflow: ellipsis; /* Si el nombre es muy largo, añade "..." elegantemente */
}

/* La línea del tachado */
.task-text::after {
    content: "";
    position: absolute;
    left: 0;
    top: 55%;
    width: 0%;
    height: 1.5px;
    background-color: rgba(212, 175, 55, 0.3);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checkbox personalizado modificado para la X gigante */
.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 14px; /* Un pelín más compacto */
    height: 14px;
    border: 1px solid rgba(215, 175, 55, 0.4);
    border-radius: 3px;
    background: rgba(15, 12, 2, 0.5);
    cursor: pointer;
    position: relative;
    flex-shrink: 0; /* Evita que el checkbox se deforme si el texto empuja */
    transition: all 0.2s ease;
}

.task-checkbox:hover {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.task-checkbox:checked {
    background: rgba(20, 5, 5, 0.8);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Pseudo-elemento con la X gigante estilo Godhome */
.task-checkbox:checked::before {
    content: "✕";
    position: absolute;
    color: #ff4a4a;
    font-size: 18px; /* Proporcional al nuevo contenedor */
    font-weight: 900;
    top: 45%;
    left: 50%;
    text-shadow: 0 0 6px rgba(255, 74, 74, 0.8), 0 0 2px #000;
    animation: pop-x 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Reacción interactiva cuando se activa el Checkbox */
.task-checkbox:checked ~ .task-text {
    color: #615a4d;
}

.task-checkbox:checked ~ .task-text::after {
    width: 100%;
}

/* Keyframes modernos */
@keyframes pop-x {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes scale-in-ver-top {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

@keyframes scale-out-ver-top {
    0% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; }
}