/* Contenedor general */
.dbtld-container {
    padding: 1rem;
    font-family: sans-serif;
}

/* Header: búsqueda + usuario */
.dbtld-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    background-color: #f3f0e6;
    padding: 6px 10px;
    border-radius: 20px;
}

/* Búsqueda */
.dbtld-search-form {
    flex: 1;
    display: flex;
    align-items: center;
}
.dbtld-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px !important;
    border: none;
    background-color: #fff !important;
    font-size: 1rem !important;
    outline: none;
    border-radius: 20px !important;
    background-image: url(data:image/svg+xml,%3Csvg fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21l-4.35-4.35M10 18a8 8 0 100-16 8 8 0 000 16z'%3E%3C/path%3E%3C/svg%3E) !important;
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
    background-size: 20px 20px !important;
    color: #333 !important;
}

/* Usuario */
.dbtld-user-menu {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    padding: 5px 10px;
    background-color: #f3f0e6;
    border-radius: 20px;
}
.dbtld-user-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    align-items: center;
	vertical-align: middle;
}
.dbtld-user-name {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dbtld-user-name strong {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}
.dbtld-caret svg {
    width: 18px;
    height: 18px;
    stroke: #888;
	vertical-align: middle;
}

/* Dropdown */
.dbtld-hover-info {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    min-width: 150px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}
.dbtld-hover-info a {
    display: block;
    padding: 0.5em 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-align: center;
}
.dbtld-hover-info a:hover {
    background: #f0f0f0;
}
.dbtld-user-avatar:hover .dbtld-hover-info {
    display: block;
}

/* Grid de tarjetas */
.dbtld-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.dbtld-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.dbtld-card-info {
    padding: 20px;
    background-color: #e69b00;
    border-radius: 0 0 12px 12px;
}
.dbtld-card img {
    max-width: 100%;
    height: 180px !important;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.dbtld-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}
.dbtld-card p {
    font-size: 0.95rem;
    color: #444;
}
.dbtld-card a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

/* Sin resultados */
.dbtld-no-results {
    text-align: center;
    color: #888;
    margin-top: 2em;
    font-size: 16px;
	display: none;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .dbtld-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dbtld-search-form,
    .dbtld-user-menu {
        width: 100%;
        justify-content: flex-start;
    }

    .dbtld-user-menu {
        margin-top: 0.5em;
    }
}
