/* assets/css/search.css */

/* Página de búsqueda */
.search-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--salsa-dark);
    margin-bottom: 0.5rem;
}

.search-query {
    color: var(--neutral-600);
    font-size: 1.125rem;
}

/* Resultados de búsqueda */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.search-result-item {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.result-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.result-image {
    position: relative;
    padding-bottom: 100%;
}

.result-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    padding: 1.5rem;
}

.result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-subtitle {
    color: var(--neutral-600);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-play,
.btn-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-play {
    background-color: var(--salsa-red);
    color: white;
}

.btn-play:hover {
    background-color: var(--salsa-dark);
    transform: scale(1.05);
}

.btn-add {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
}

.btn-add:hover {
    background-color: var(--neutral-200);
}

/* Sin resultados */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--salsa-dark);
    margin-bottom: 1rem;
}

.no-results-text {
    color: var(--neutral-600);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .result-info {
        padding: 1rem;
    }
    
    .result-title {
        font-size: 1rem;
    }
    
    .no-results {
        padding: 3rem 1rem;
    }
}