/**
 * ABA Glossary Filter Styles
 * Version: 3.0.0
 *
 * AW Blue:      #27AAE1
 * AW Dark Blue: #2E3192
 * AW Scarlet:   #E03328
 * AW Orange:    #EC7343
 * AW Sunshine:  #FEBC12
 * Charcoal:     #333333
 */

/* -------------------------
   Category Filter Tabs
   ------------------------- */
.glossary-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.glossary-cat-nav__tab {
    padding: 8px 18px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.glossary-cat-nav__tab:hover {
    background: #27AAE1;
    border-color: #27AAE1;
    color: #fff;
}

.glossary-cat-nav__tab[data-active="true"] {
    background: #2E3192;
    border-color: #2E3192;
    color: #fff;
}

/* -------------------------
   Search Bar
   ------------------------- */
.glossary-search {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
}

.glossary-search__input {
    width: 100%;
    padding: 14px 16px 14px 46px !important;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.glossary-search__input:focus {
    border-color: #27AAE1;
    box-shadow: 0 0 0 3px rgba(39, 170, 225, 0.15);
}

.glossary-search__input::placeholder {
    color: #9ca3af;
}

.glossary-search__icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* -------------------------
   A-Z Navigation Bar
   ------------------------- */
.glossary-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0;
    margin-bottom: 24px;
}

.glossary-az-nav__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.glossary-az-nav__letter:hover:not(:disabled) {
    background: #27AAE1;
    border-color: #27AAE1;
    color: #fff;
}

.glossary-az-nav__letter[data-active="true"] {
    background: #2E3192;
    border-color: #2E3192;
    color: #fff;
}

.glossary-az-nav__letter--disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* -------------------------
   Terms List
   ------------------------- */
.glossary-terms-list {
    padding-top: 8px;
}

.glossary-terms-group {
    margin-bottom: 32px;
}

.glossary-terms-group__letter {
    font-size: 28px;
    font-weight: 700;
    color: #2E3192;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #27AAE1;
}

.glossary-term-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.glossary-term-item:last-child {
    border-bottom: none;
}

.glossary-term-item__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.4;
}

.glossary-term-item__title a {
    color: #EC7343;
    text-decoration: none;
    transition: color 0.15s ease;
}

.glossary-term-item__title a:hover {
    color: #E03328;
    text-decoration: underline;
}

.glossary-term-item__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* -------------------------
   No Results
   ------------------------- */
.glossary-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width: 767px) {
    .glossary-cat-nav {
        gap: 6px;
    }

    .glossary-cat-nav__tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .glossary-az-nav {
        gap: 4px;
    }

    .glossary-az-nav__letter {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 2px 6px;
    }

    .glossary-terms-group__letter {
        font-size: 24px;
    }

    .glossary-term-item__title {
        font-size: 16px;
    }

    .glossary-term-item__desc {
        font-size: 14px;
    }

    .glossary-search__input {
        font-size: 15px;
        padding: 12px 14px 12px 44px;
    }
}
