/* Vocabulary Module Styles */
.vocabulary-container {
    font-family: "Roboto", sans-serif;
}

/* Header Section */
.vocabulary-header {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vocabulary-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.vocabulary-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.vocabulary-container .vocabulary-search {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #FFFFFF52;
    border-radius: 6px;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    transition: border-color 0.2s ease;
    height: 100%;
}

.vocabulary-search:focus {
    outline: none;
    border-color: #2168A6;
}

.vocabulary-filter-wrapper {
    min-width: 200px;
}

.vocabulary-category-filter {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.vocabulary-category-filter:focus {
    outline: none;
    border-color: #2168A6;
}

/* Terms List */
.vocabulary-terms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vocabulary-term-card {
    background: #FFFFFF52;
    border: 1px solid #C3D9EB;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
	position:relative;
}

.vocabulary-term-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #C3D8EB;
}

.vocabulary-term-card.hidden {
    display: none;
}

/* Term Header */
.vocabulary-term-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.vocabulary-term-title-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vocabulary-term-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.vocabulary-term-category {
    display: inline-block;
    padding: 6px 12px;
    background-color: #2168A61A;
    border: 1px solid #2168A6;
    color: #2168A6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    font-family: "Roboto", Sans-serif;
    font-size: 1em;
    font-weight: 400;
    font-style: italic;
}

.vocabulary-term-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.vocabulary-term-toggle:hover {
    color: #2168A6;
    background:none;
}

.vocabulary-term-card.expanded .vocabulary-term-toggle {
    transform: rotate(180deg);
}

.vocabulary-chevron {
    width: 20px;
    height: 20px;
}

/* Term Content */
.vocabulary-term-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
}

.vocabulary-term-card.expanded .vocabulary-term-content {
    max-height: 2000px;
    padding-top: 20px;
}

.vocabulary-term-excerpt {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
}

/* Related Terms */
.vocabulary-related-terms {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.vocabulary-related-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.vocabulary-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vocabulary-tag {
    padding: 8px 16px;
    background-color: #42B8831A;
    border: 1px solid #42b883;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: "Roboto", Sans-serif;
    font-size: 1em;
    font-weight: 400;
    font-style: italic;
    color: #42B883;
}

.vocabulary-tag:hover {
    background-color: #e8e8e8;
    border-color: #2168A6;
    color: #2168A6;
}

/* No Results */
.vocabulary-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .vocabulary-header {
        flex-direction: column;
    }
    
    .vocabulary-search-wrapper,
    .vocabulary-filter-wrapper {
        width: 100%;
    }
    
    .vocabulary-term-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vocabulary-term-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .vocabulary-term-title-wrapper {
        padding-right: 40px;
    }
}
