/* Advanced Search Page Styles */

.advanced_search_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 94%;
    max-width: 1400px;
    margin: 20px auto;
    box-sizing: border-box;
}

.advanced_search_section h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Filter Section */
.search_filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.filter_group {
    background: linear-gradient(to bottom right, rgba(50, 50, 50, 0.4), rgba(30, 30, 30, 0.4));
    background-color: rgba(48, 48, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(3px);
    box-sizing: border-box;
}

.filter_group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--main-text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
}

.filter_row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.filter_row label {
    margin-bottom: 5px;
    font-weight: 500;
}

.filter_row input[type="text"],
.filter_row input[type="number"],
.filter_row select {
    padding: 8px 10px;
    background-color: rgba(20, 20, 20, 0.9);
    color: var(--main-text-color);
    border: 1px solid rgba(180, 111, 255, 0.3);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.filter_row input[type="text"]:focus,
.filter_row input[type="number"]:focus,
.filter_row select:focus {
    outline: none;
    border-color: rgba(193, 88, 155, 0.7);
    box-shadow: 0 0 8px rgba(193, 88, 155, 0.5);
    background-color: rgba(25, 25, 25, 1);
}

.filter_row select[multiple] {
    min-height: 120px;
    cursor: pointer;
}

.filter_row select[multiple] option {
    padding: 5px;
    margin: 2px 0;
}

.filter_row select[multiple] option:hover {
    background-color: rgba(193, 88, 155, 0.3);
}

.filter_row select[multiple] option.goth_genre {
    background-color: rgba(128, 128, 128, 0.6);
    color: #ffffff;
    font-weight: bold;
}

.filter_row select[multiple] option.non_goth_genre {
    background-color: rgba(193, 88, 155, 0.4);
    color: #b8b8b8;
    font-style: italic;
}

.filter_row select[multiple] option.goth_genre:checked {
    background-color: rgba(180, 180, 180, 0.8);
    color: #ffffff;
}

.filter_row select[multiple] option.non_goth_genre:checked {
    background-color: rgba(193, 88, 155, 0.7);
    color: #c0c0c0;
}

.filter_row input[type="checkbox"],
.filter_row input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter_row label:has(input[type="checkbox"]),
.filter_row label:has(input[type="radio"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

/* Search Button */
.search_button_container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.hidden_fields {
    display: none;
}

.search_button {
    padding: 12px 40px;
    background: linear-gradient(to bottom, #4a1f1f, #3c0f0f);
    color: var(--main-text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.search_button:hover {
    background: linear-gradient(to bottom, #5a1717, #4a1f1f);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.search_button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Search Results */
.search_results_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.results_count {
    text-align: center;
    font-size: 1.2rem;
    margin: 20px 0;
    scroll-margin-top: 110px;
}

.search_results_table {
    width: 100%;
    max-width: 1400px;
}

/* Band Result Card */
.band_result_wrapper {
    margin-bottom: 15px;
}

.band_result_card {
    background: linear-gradient(to bottom right, rgba(50, 50, 50, 0.4), rgba(30, 30, 30, 0.4));
    background-color: rgba(48, 48, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(3px);
    padding: 15px;
    cursor: pointer;
    transition:
        background-color 0.3s ease 50ms,
        box-shadow 0.4s ease 50ms,
        transform 0.2s ease;
}

.band_result_card:hover {
    background: linear-gradient(to bottom right, rgba(80, 80, 80, 0.5), rgba(50, 50, 50, 0.5));
    background-color: rgba(109, 109, 109, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.band_result_main {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    align-items: center;
}

.band_photo_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.band_photo {
    border: solid 1.2px #3c0f0f;
    width: 100%;
    max-width: 100px;
    aspect-ratio: 1.3;
    object-fit: cover;
    border-radius: 50%;
}

.band_info_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.band_name_row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chevron_icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.band_name {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--main-text-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.band_name:hover {
    color: var(--hover-page);
}

.band_result_card:hover .chevron_icon {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

.chevron_icon {
    transition: transform 0.2s ease;
}

.band_details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    color: rgba(249, 249, 249, 0.85);
}

.band_details span {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* Album Results Section */
.band_albums_section {
    margin-top: 10px;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
}

.albums_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.album_result_card {
    background-color: rgba(48, 48, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
}

.album_result_card:hover {
    background-color: rgba(68, 68, 68, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.album_name_and_type {
    text-align: center;
    margin-bottom: 10px;
}

.album_name {
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.album_type {
    color: rgba(249, 249, 249, 0.7);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.album_date {
    color: rgba(249, 249, 249, 0.85);
    font-size: 0.9rem;
    font-style: italic;
}

.album_genres {
    line-height: 1.3;
    text-align: center;
}

/* Genre styling to match main page */
.album_genres .goth_genre {
    font-weight: bold;
    color: white;
}

.album_genres .non_goth_genre {
    color: #c1589b;
}

.no_genres {
    color: rgba(249, 249, 249, 0.5);
    font-style: italic;
    font-size: 0.9rem;
}

/* Search Error */
.search_error {
    text-align: center;
    padding: 30px;
    background-color: rgba(60, 15, 15, 0.6);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    margin: 20px 0;
}

.search_error p {
    margin: 0;
    font-size: 1.1rem;
}

/* Loading Indicator */
#search_indicator {
    display: none;
    padding: 40px 0;
}

#search_indicator.htmx-request {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search_filters {
        grid-template-columns: 1fr;
    }
    
    .band_result_main {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
    
    .band_photo {
        max-width: 70px;
    }
    
    .band_name {
        font-size: 1.1rem;
    }
    
    .band_details {
        flex-direction: column;
        gap: 8px;
    }
    
    .albums_list {
        grid-template-columns: 1fr;
    }
    
    .search_button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 530px) {
    .advanced_search_section {
        width: 98%;
    }
    
    .filter_group {
        padding: 15px;
    }
    
    .band_result_main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .band_photo_container {
        margin-bottom: 10px;
    }
    
    .band_name_row {
        justify-content: center;
    }
    
    .band_details {
        justify-content: center;
    }
}

/* Touch Friendly Targets */
@media (max-width: 768px) {
    .band_result_card {
        padding: 18px;
    }
    
    .filter_row input[type="checkbox"],
    .filter_row input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    
    .chevron_icon {
        width: 24px;
        height: 24px;
    }
}



