/* WPGlossary Frontend Styles */

/* =============================================
   GLOSSARY WRAPPER / OUTER BORDER
   ============================================= */
.wp-glossary {
    border: 2px solid #d8b4e8;
    border-radius: 10px;
    padding: 20px 24px 24px;
    background: #fdfaff;
    box-shadow: 0 2px 10px rgba(85, 21, 103, 0.08);
    margin-bottom: 30px;
}

/* =============================================
   DATA / RESULTS REGION
   ============================================= */
.wpg-data-area {
    border: 2px solid #c49ad8;
    border-radius: 10px;
    padding: 18px 20px 20px;
    background: #fff;
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(85, 21, 103, 0.07);
    clear: both;
}
.wpg-data-area #let {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8d5f5;
    font-size: 22px;
    color: #551567;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =============================================
   ACCORDION — CONTAINER
   ============================================= */
#wpgLeftCon {
    border: 1px solid #e8d5f5;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    overflow: hidden;
}

#accordion.accordion {
    margin: 0;
    padding: 0;
}

/* =============================================
   ACCORDION — EACH ROW (toggle + content)
   ============================================= */
.accordion-group {
    border: 0 none !important;
    border-bottom: 1px solid #e2c8f0 !important;
    margin: 0 !important;
}
.accordion-group:last-child {
    border-bottom: 0 none !important;
}

/* The clickable word heading */
.accordion-toggle.togglestart {
    display: block;
    width: 100%;
    padding: 13px 18px 13px 16px;
    background-color: #f5ecfd;
    background-image: -moz-linear-gradient(top, #fdf8ff, #ecdff8);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdf8ff), to(#ecdff8));
    background-image: -webkit-linear-gradient(top, #fdf8ff, #ecdff8);
    background-image: -o-linear-gradient(top, #fdf8ff, #ecdff8);
    background-image: linear-gradient(to bottom, #fdf8ff, #ecdff8);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffdf8ff', endColorstr='#ffecdff8', GradientType=0);
    border-color: #d8b4e8;
    color: #3a0a4d;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-left: 4px solid #b472d4;
    transition: background-color 0.18s, border-color 0.18s;
    box-sizing: border-box;
    text-decoration: none;
}
.accordion-toggle.togglestart:hover {
    background-color: #e8d5f7;
    background-image: -moz-linear-gradient(top, #f5ecfd, #dfc5f5);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5ecfd), to(#dfc5f5));
    background-image: -webkit-linear-gradient(top, #f5ecfd, #dfc5f5);
    background-image: -o-linear-gradient(top, #f5ecfd, #dfc5f5);
    background-image: linear-gradient(to bottom, #f5ecfd, #dfc5f5);
    background-repeat: repeat-x;
    border-left-color: #7b1fa2;
    color: #551567;
}
.accordion-toggle.togglestart.highlight {
    background-color: #e0c3f5 !important;
    background-image: -moz-linear-gradient(top, #ecdff8, #d4a8ee) !important;
    background-image: -webkit-linear-gradient(top, #ecdff8, #d4a8ee) !important;
    background-image: linear-gradient(to bottom, #ecdff8, #d4a8ee) !important;
    background-repeat: repeat-x !important;
    border-left-color: #551567 !important;
    color: #3a0a4d !important;
    font-weight: bold !important;
    font-size: 15px !important;
    line-height: inherit !important;
}

/* The expanded definition panel */
.accordion-content {
    border-top: 1px solid #d8b4e8;
    background: #faf5fd;
    padding: 16px 22px 18px 24px;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: inset 0 3px 8px rgba(85, 21, 103, 0.05);
}

/* =============================================
   WORD DETAIL INSIDE ACCORDION
   ============================================= */
.inner-word {
    border: 0 none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}
.inner-word p {
    font-weight: normal !important;
    margin: 4px 0 8px;
    color: #444;
}
.inner-word i {
    float: left;
    font-weight: bold !important;
    font-style: normal;
    color: #551567;
    margin-right: 4px;
}
.inner-word a {
    color: #551567 !important;
    font-style: italic;
    text-decoration: underline dotted;
}
.inner-word a:hover { color: #a855c8 !important; }

/* =============================================
   SIDEBAR
   ============================================= */
#cstSideBar {
    float: right;
    background: #fff;
    padding: 16px;
    width: 300px;
    border: 1px solid #d8b4e8;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(85, 21, 103, 0.07);
}
#cstSideBar img { float: left; width: 100px; margin-top: 5px; }
#cstSideBar span { float: right; width: 170px; }
#cstSideBar h3 { margin: 0; padding: 0; font-weight: normal; font-size: 18px; line-height: 22px; }

/* =============================================
   MISC
   ============================================= */
#toggle-view {
    list-style: none;
    margin: 0;
    padding: 0;
}
#toggle-view li { position: relative; cursor: pointer; }
#toggle-view h3 { margin: 0; font-size: 14px; }
#toggle-view span { position: absolute; right: 5px; top: 0; color: #ccc; font-size: 13px; }
#toggle-view .panel {
    background: #fff;
    border: 0 none !important;
    margin: 22px 0 20px 20px;
    display: none;
}
.accordion-content.default { display: block; }
.audioTgl { display: none; }
#allLink { font-size: 13px !important; }
#let { text-transform: uppercase; }
.accordion-heading { display: block; width: 100%; line-height: 30px; }
.accordion-heading a { padding: 0 !important; float: left; }
.audioImg { float: left; margin-left: 21px; }
.clrfixia30 { clear: both; }
.highlight .audioImg { display: inline !important; }
audio { width: 90px !important; height: 27px !important; }
.lenBar { line-height: 30px; height: 30px; }
.lenBar b { float: left; font-weight: bold !important; }
.lenBar select { float: left; padding: 2px; margin: 0 10px; width: 150px; }
.lenBar audio { float: left; }
.clrfixia3 { clear: both; padding-bottom: 20px; }
.loadWidgetTgr { cursor: pointer; }

/* Search keyword title */
.wpg-search-title {
    display: none;
    margin: 10px 0 14px;
    padding: 8px 14px;
    background: #f5eefa;
    border-left: 4px solid #551567;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
}
.wpg-search-title--active {
    display: block;
}
.wpg-search-title em {
    font-style: normal;
    font-weight: bold;
    color: #551567;
}

/* A-Z button strip */
.btn-group { white-space: pre-line !important; }
#allLink {
    font-size: 13px !important;
    height: 10px;
    line-height: 3px;
    padding: 10px;
    display: none;
}
.btn { margin-left: 4px !important; margin-bottom: 4px !important; border-radius: 5px !important; }

/* Responsive forms */
.wpg-search-form,
.wpg-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.wpg-form-label { white-space: nowrap; }
.wpg-search-input { width: 207px; }
.wpg-search-btn { border-radius: 0px 5px 5px 0px !important; }
.wpg-filter-select { width: 295px; }

@media (max-width: 600px) {
    .wpg-search-form,
    .wpg-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .wpg-form-label { margin-bottom: 2px; }
    .wpg-search-input,
    .wpg-filter-select,
    .wpg-search-btn {
        width: 100%;
        box-sizing: border-box;
    }
    #pager .btn-group {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    #wpgLeftCon { width: 100%; float: none; }
    #cstSideBar { float: none; width: 100%; margin-top: 16px; }
}

@media (max-width: 800px) {
    #wpgLeftCon { width: 100%; float: none; }
    #cstSideBar { float: none; width: 100%; padding: 14px; margin-top: 16px; box-sizing: border-box; }
    .accordion-group { margin: 0 !important; }
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input { height: auto !important; }
.cstUpBtn { height: auto !important; }

/* Pagination */
.pagination-wrapper {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}
.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 10px;
}
.btn.active {
    background-color: #551567 !important;
    color: white !important;
    font-weight: bold;
}
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-sm {
    padding: 5px 10px !important;
    font-size: 12px !important;
    margin: 0 2px;
}

/* Disabled letter buttons */
.wpg-no-result {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
