/* ========================================
   BÚSQUEDA RÁPIDA — Input + Dropdown en Navbar
======================================== */

/* Contenedor del buscador */
.quick-search-wrapper {
    position: relative;
}

/* Input de búsqueda */
.quick-search-input {
    width: 180px;
    padding: 7px 14px 7px 34px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease,
                background 0.3s ease;
}

.quick-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

.quick-search-input:focus {
    width: 240px;
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Icono de lupa dentro del input */
.quick-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.78rem;
    pointer-events: none;
}

/* Dropdown de resultados */
.quick-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    overflow: hidden;
    display: none;
}

.quick-search-dropdown.active {
    display: block;
}

/* Item de resultado */
.qs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.qs-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.qs-item:last-child {
    border-bottom: none;
}

/* Icono de tipo de archivo */
.qs-type-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
}

/* Info del resultado */
.qs-info {
    flex: 1;
    min-width: 0;
}

.qs-title {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.qs-category {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

/* Estado vacío */
.qs-empty {
    padding: 20px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.qs-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.4;
}

/* Footer: ver todos */
.qs-footer {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #D4AF37;
    text-decoration: none;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease;
}

.qs-footer:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #D4AF37;
}

/* Spinner de carga */
.qs-loading {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .quick-search-input {
        width: 140px;
    }
    .quick-search-input:focus {
        width: 180px;
    }
    .quick-search-dropdown {
        width: 280px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .quick-search-wrapper {
        display: none;
    }
}
