﻿/* Search Is Goth Page Styles */

.search_is_goth_section {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto 50px auto;
    padding: 20px 3%;
    box-sizing: border-box;
}

/* Header Section */
.search_is_goth_header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search_is_goth_header h1 {
    font-family: 'NewRocker-Regular', serif;
    font-size: 2.5rem;
    color: var(--main-text-color);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.search_description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(249, 249, 249, 0.9);
    font-family: 'EBGaramond-VariableFont_wght', serif;
    margin: 0;
    padding: 0 20px;
}

/* Search Form Section */
.search_is_goth_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search_input_container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.search_is_goth_searchbar {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    font-family: 'EBGaramond-VariableFont_wght', serif;
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.9), rgba(40, 40, 40, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: var(--main-text-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.search_is_goth_searchbar::placeholder {
    color: rgba(249, 249, 249, 0.5);
    font-style: italic;
}

.search_is_goth_searchbar:focus {
    border-color: var(--goth-accent, #b48aff);
    box-shadow: 0 0 15px rgba(180, 138, 255, 0.3);
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.95), rgba(50, 50, 50, 0.95));
}

.search_icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search_icon_img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    filter: invert(1);
}

/* Search Loading Indicator */
.search_loading_indicator {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.search_loading_indicator.htmx-request {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search_loading_indicator .indicator_text {
    font-family: 'EBGaramond-VariableFont_wght', serif;
    color: rgba(249, 249, 249, 0.8);
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.search_loading_indicator .indicator_image {
    width: 40px;
    height: 40px;
}

/* Search Results Section */
.search_is_goth_results {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px auto;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search_placeholder {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.6), rgba(35, 35, 35, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(3px);
}

.search_placeholder h3 {
    font-family: 'NewRocker-Regular', serif;
    font-size: 1.8rem;
    color: var(--main-text-color);
    margin: 0 0 15px 0;
    letter-spacing: 0.3px;
}

.search_placeholder p {
    font-family: 'EBGaramond-VariableFont_wght', serif;
    font-size: 1.1rem;
    color: rgba(249, 249, 249, 0.8);
    margin: 0;
    line-height: 1.5;
}

.search_no_results {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(160deg, rgba(40, 40, 40, 0.7), rgba(18, 18, 18, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.search_no_results h3 {
    font-family: 'NewRocker-Regular', serif;
    font-size: 1.7rem;
    margin: 0 0 14px 0;
    color: var(--main-text-color);
    letter-spacing: 0.4px;
}

.search_no_results p {
    font-family: 'EBGaramond-VariableFont_wght', serif;
    font-size: 1.05rem;
    color: rgba(249, 249, 249, 0.78);
    margin: 0;
    line-height: 1.5;
}

.search_results_header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 6px;
}

.search_results_header h3 {
    font-family: 'NewRocker-Regular', serif;
    font-size: 1.9rem;
    color: var(--main-text-color);
    margin: 0;
    letter-spacing: 0.55px;
}

/* Grid of cards
   - justify-items:center centers a single card horizontally
   - items have an internal max-width so they don’t stretch
*/
.search_results_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    justify-items: center;
}

/* --- Card ------------------------------------------------------- */

.search_result_item {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(52, 52, 52, 0.85), rgba(18, 18, 18, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(4px);

    /* keep each card compact and center it inside its grid cell */
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

.search_result_item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(180, 138, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.search_result_item:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 138, 255, 0.4);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.search_result_item:hover::after {
    opacity: 1;
}

.search_result_link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.search_result_link:focus-visible {
    outline: 2px solid var(--goth-accent, #b48aff);
    outline-offset: 6px;
}

/* Stacked layout (same look as your first screenshot) */
.search_result_content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "info"
        "type"
        "photo";
    align-items: center;
    row-gap: 14px;
    padding: 22px 24px;
    min-height: 132px;
    box-sizing: border-box;
}

.search_result_info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;

    /* center name + location */
    align-items: center;
    text-align: center;
}

.search_result_name {
    margin: 0;
    font-family: 'CormorantGaramond-VariableFont_wght', serif;
    font-size: 1.6rem;
    color: #fdfcff;
    letter-spacing: 0.42px;
    line-height: 1.35;
}

/* Badge (make it look like genre pills) */
.search_result_type {
  grid-area: type;
  justify-self: center;
  display: inline-block;
  line-height: 1;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-top: 2px;
  font-size: 1.2rem;
  letter-spacing: normal;   /* was 0.13em */
  text-transform: none;     /* was uppercase */
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.08), 0 0 4px rgba(255, 255, 255, 0.03);
}

/* Goth (matches .goth_genre_name) */
.search_result_type.goth_type {
  font-weight: bold;
  color: rgb(249 249 249 / 80%);
  background-color: rgb(186 186 186 / 40%);
  border-color: rgb(186 186 186 / 20%);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.08), 0 0 4px rgba(255, 255, 255, 0.03);
}

/* Not Goth (matches .non_goth_genre_name) */
.search_result_type.non_goth_type {
  font-weight: bold;
  color: rgb(196 196 196 / 88%);
  background-color: rgb(211 41 211 / 40%);
  border-color: rgb(211 41 211 / 20%);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.08), 0 0 4px rgba(255, 255, 255, 0.03);
}


.search_result_location {
    margin: 0;
    font-size: 1rem;
    color: rgba(249, 249, 249, 0.72);
    letter-spacing: 0.04em;
}

/* square photo fills card width (but the card itself is capped) */
.search_result_photo,
.search_result_photo_placeholder {
    grid-area: photo;
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 12, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-inline: auto;
}

.search_result_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease;
    filter: saturate(0.92) contrast(1.08);
}

.search_result_item:hover .search_result_photo img {
    transform: scale(1.05);
}

.photo_placeholder_text {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(249, 249, 249, 0.45);
}

/* Load more */
.load_more_search_results {
    margin: 0 auto 0 auto;
    padding: 16px 26px;
    max-width: 360px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(55, 55, 55, 0.9), rgba(24, 24, 24, 0.9));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.load_more_hint {
    font-family: 'EBGaramond-VariableFont_wght', serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(249, 249, 249, 0.65);
}

.load_more_search_results .htmx-indicator {
    display: none;
    align-items: center;
    gap: 10px;
}

.load_more_search_results .htmx-indicator.htmx-request {
    display: flex;
}

.load_more_search_results .indicator_image {
    width: 28px;
    height: 28px;
}

#search_results_list {
    position: relative;
}

/* Info Sections */
.search_is_goth_info {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.info_section {
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.7), rgba(30, 30, 30, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info_section h2 {
    font-family: 'NewRocker-Regular', serif;
    font-size: 1.6rem;
    color: var(--main-text-color);
    margin: 0 0 15px 0;
    letter-spacing: 0.3px;
}

.info_section p {
    font-family: 'EBGaramond-VariableFont_wght', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(249, 249, 249, 0.9);
    margin: 0 0 15px 0;
}

.info_section p:last-child {
    margin-bottom: 0;
}

.info_section ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.info_section li {
    font-family: 'EBGaramond-VariableFont_wght', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(249, 249, 249, 0.9);
    margin-bottom: 8px;
}

.info_section li:last-child {
    margin-bottom: 0;
}

.info_section strong {
    color: rgba(249, 249, 249, 0.95);
    font-weight: 600;
}

/* Viewport-wide tweaks (card layout stays the same) */
@media (max-width: 768px) {
    .search_is_goth_header h1 {
        font-size: 2rem;
    }

    .search_description {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .search_is_goth_searchbar {
        padding: 12px 45px 12px 15px;
        font-size: 1rem;
    }

    .info_section {
        padding: 20px;
    }

    .info_section h2 {
        font-size: 1.4rem;
    }

    .info_section p,
    .info_section li {
        font-size: 1rem;
    }

    .search_results_header h3 {
        font-size: 1.6rem;
    }

    .search_results_list {
        gap: 24px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .load_more_search_results {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search_is_goth_section {
        padding: 15px 2%;
    }

    .search_is_goth_header h1 {
        font-size: 1.7rem;
    }

    .search_description {
        font-size: 1rem;
        padding: 0 5px;
    }

    .search_is_goth_searchbar {
        padding: 10px 40px 10px 12px;
        font-size: 0.95rem;
    }

    .search_placeholder {
        padding: 30px 15px;
    }

    .search_placeholder h3 {
        font-size: 1.5rem;
    }

    .search_placeholder p {
        font-size: 1rem;
    }

    .info_section {
        padding: 15px;
    }

    .info_section h2 {
        font-size: 1.3rem;
    }

    .info_section p,
    .info_section li {
        font-size: 0.95rem;
    }

    .search_results_header {
        align-items: center;
        gap: 6px;
    }

    .search_results_header h3 {
        font-size: 1.4rem;
    }

    .search_results_list {
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .search_result_name {
        font-size: 1.35rem;
    }

    .search_result_type {
        font-size: 1rem;
        padding: 5px 12px;
    }
}

@media (min-width: 769px) {
    .search_is_goth_info {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animation for smooth content loading */
.search_is_goth_section > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.search_is_goth_header { animation-delay: 0.1s; }
.search_is_goth_form { animation-delay: 0.2s; }
.search_is_goth_results { animation-delay: 0.3s; }
.search_is_goth_info { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .search_is_goth_searchbar {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(20, 20, 20, 0.9);
    }

    .search_placeholder,
    .info_section {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(15, 15, 15, 0.9);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .search_is_goth_section > * {
        animation: none;
        transition: none;
    }
    .search_is_goth_searchbar { transition: none; }
}