/* ================================================================================= */
/* GENERAL STYLES                                                                    */
/* ================================================================================= */

/* Footer */
.hhs-footer {
    background-color: #1b1b1b;
}

/* List of Names */
.hhs-child-list .hh-names a {
    font-size: 3vw;
}

@media (min-width: 640px) {
    .hhs-child-list .hh-names a {
        font-size: 2vw;
    }
}

@media (min-width: 960px) {
    .hhs-child-list .hh-names a {
        font-size: 1.2vw;
    }
}

.hhs-child-list .hh-names > div {
    padding: 0px 5px 15px 5px;
}

.hhs-child-list .hh-names a {
    padding: 0px 5px 15px 5px;
    white-space: nowrap;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0);
    transition: 0.2s ease;
    color: #888888 !important;
}

.hhs-child-list .hh-names a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: 0.2s ease;
    color: #ffffff !important;
}


/* ================================================================================= */
/* FILTER CONTROLS                                                                   */
/* ================================================================================= */

/* Reset Button */
.hhs-child-list .hh-filter .hh-reset-button {
    color: #ccc;
    letter-spacing: 1px;
}

.hhs-child-list .hh-filter .hh-reset-button .uk-icon {
    padding-right: 8px;
}


/* ================================================================================= */
/* STATE AND AGE SELECT DROPDOWNS                                                    */
/* ================================================================================= */

.hh-select {
    color: #fff;
    border: 1px solid #999;
    padding-left: 45px;
    margin-right: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

/* General select styles */
.hhs-child-list .hh-filter .uk-select {
    color: rgba(255,255,255,0.8) !important;
    letter-spacing: 1px;
}

/* State and Age select hover states */
.hhs-child-list .hh-filter .uk-select.hh-select:hover {
    border-color: #dcad61 !important;
    color: #dcad61 !important;
}

/* State and Age select focus/active states - keep styling until clicked away */
.hhs-child-list .hh-filter .uk-select.hh-select:focus,
.hhs-child-list .hh-filter .uk-select.hh-select:active,
.hhs-child-list .hh-filter .uk-select.hh-select:focus-visible {
    border-color: #dcad61 !important;
    color: #dcad61 !important;
    outline: none;
}

/* Icon color on hover */
.hh-select-wrapper:hover .hh-select-icon {
    color: #dcad61 !important;
}

/* Icon color when select has focus/active - target through parent wrapper */
.hh-select-wrapper:has(.hh-select:focus) .hh-select-icon,
.hh-select-wrapper:has(.hh-select:active) .hh-select-icon,
.hh-select-wrapper:has(.hh-select:focus-visible) .hh-select-icon {
    color: #dcad61 !important;
}


/* ================================================================================= */
/* ATTRIBUTES DROPDOWN (DETAILS/SUMMARY)                                             */
/* ================================================================================= */

.hh-attribute-details {
    width: 100%;
    position: relative;
}

/* Summary Button */
.hh-attribute-summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 0 15px;
    min-height: 43px;
    background-color: transparent;
    border: 1px solid #999999;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Remove default marker in WebKit browsers */
.hh-attribute-summary::-webkit-details-marker {
    display: none;
}

.hh-summary-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.hh-icon {
    flex-shrink: 0;
    color: #999999;
}

.hh-summary-text {
    flex: 1;
    text-align: left;
}

.hh-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: #999999;
}

/* Rotate chevron when open */
.hh-attribute-details[open] .hh-chevron {
    transform: rotate(180deg);
}

/* Hover state */
.hh-attribute-summary:hover {
    color: #dcad61;
    border-color: #dcad61;
    background-color: transparent;
}

.hh-attribute-summary:hover .hh-icon,
.hh-attribute-summary:hover .hh-chevron {
    color: #dcad61;
}

/* Open state */
.hh-attribute-details[open] .hh-attribute-summary {
    color: #dcad61;
    border-color: #dcad61;
}

.hh-attribute-details[open] .hh-icon,
.hh-attribute-details[open] .hh-chevron {
    color: #dcad61;
}

/* Focus state for keyboard navigation */
.hh-attribute-summary:focus {
    outline: none;
}

.hh-attribute-details:not([open]) .hh-attribute-summary:focus-visible {
    color: #dcad61;
    border-color: #dcad61;
}

.hh-attribute-details:not([open]) .hh-attribute-summary:focus-visible .hh-icon,
.hh-attribute-details:not([open]) .hh-attribute-summary:focus-visible .hh-chevron {
    color: #dcad61;
}

/* Dropdown panel */
.hh-attribute-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 350px;
    background-color: #1a1a1a;
    border: 1px solid #999999;
    border-radius: 0;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Checkbox options */
.hh-attribute-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.hh-attribute-option:hover {
    color: #dcad61;
}

.hh-attribute-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #999999;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background-color: transparent;
}

.hh-attribute-option input[type="checkbox"]:checked {
    border-color: #dcad61;
    background-color: #dcad61;
}

/* Checkmark */
.hh-attribute-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #131313;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hh-attribute-option:hover input[type="checkbox"] {
    border-color: #dcad61;
}


/* ================================================================================= */
/* SEARCH BY NAME INPUT                                                              */
/* ================================================================================= */

.hhs-child-list .uk-input {
    background-color: #131313;
}

.hhs-child-list .uk-input::placeholder {
    color: #fff;
    opacity: 0.9;
}

#name_filter .uk-input {
    transition: border-color 0.2s ease, color 0.2s ease;
}

/* Hover state for wrapper affects icon, border, placeholder, and text */
#name_filter:hover .uk-form-icon {
    color: #dcad61 !important;
    transition: color 0.2s ease;
}

#name_filter:hover .uk-input {
    border-color: #dcad61 !important;
    color: #dcad61 !important;
}

#name_filter:hover .uk-input::placeholder {
    color: #dcad61 !important;
    transition: color 0.2s ease;
}

/* Focus state for input - reset text color back to normal and change background */
#name_filter .uk-input:focus {
    border-color: #dcad61 !important;
    color: rgba(255,255,255,0.8) !important;
    background-color: #131313 !important;
}

/* When input is focused, also change the icon color */
#name_filter .uk-input:focus ~ .uk-form-icon {
    color: #dcad61 !important;
}
