/* Glossary Page Styles */

/* Glossary Import Admin Styles */
.glossary-import-container {
    max-width: 800px;
    margin-top: 20px;
}

.glossary-import-container .form-table th {
    width: 200px;
}

.glossary-import-container .file-info {
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

.glossary-import-container .import-warning {
    margin-top: 10px;
}

.glossary-import-container .import-details {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #0073aa;
    margin-top: 15px;
}

.glossary-import-container .import-details p {
    margin: 5px 0;
}

#import-results {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

#import-results h3 {
    margin-top: 0;
    color: #23282d;
}

#import-summary ul {
    margin: 10px 0;
    padding-left: 20px;
}

#import-summary li {
    margin: 5px 0;
}

.notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #00a32a;
    background: #fff;
}

.notice.notice-error {
    border-left-color: #d63638;
}

.notice.notice-warning {
    border-left-color: #dba617;
}

.notice.notice-success {
    border-left-color: #00a32a;
}

.spinner {
    float: none;
    margin-left: 10px;
}

/* Basic Layout */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Glossary Page Header */
.glossary-page-header.section-padding {
    padding: 10rem 0 5rem;
}

.glossary-page-header {
    background: linear-gradient(135deg, #111d31 0%, #273039 100%);
    text-align: center;
    position: relative;
}

.glossary-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(155, 89, 182, 0.5);
    z-index: 1;
}

.glossary-page-header .container {
    position: relative;
    z-index: 2;
}

.glossary-page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Glossary Search Section */
.glossary-search-section {
    margin-top: 2rem;
    position: relative;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Alphabet Navigation */
.alphabet-nav-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.alphabet-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

.alphabet-btn:hover {
    border-color: #bdd653;
    color: #273039;
    transform: translateY(-1px);
}

.alphabet-btn.active {
    background: #bdd653;
    border-color: #bdd653;
    color: #273039;
    box-shadow: 0 2px 8px rgba(189, 214, 83, 0.3);
}

/* Glossary Layout */
.glossary-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* Glossary Content */
.glossary-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.glossary-section {
    margin-bottom: 3rem;
}

.glossary-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #273039;
    margin: 0;
}

/* Terms List */
.terms-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glossary-term {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    background: white;
}

.glossary-term:hover {
    border-color: #bdd653;
    box-shadow: 0 4px 15px rgba(189, 214, 83, 0.1);
    transform: translateY(-2px);
}

.glossary-term.highlighted {
    border-color: #bdd653;
    background: rgba(189, 214, 83, 0.05);
    box-shadow: 0 4px 20px rgba(189, 214, 83, 0.2);
}

.term-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.term-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #273039;
    margin: 0;
}

.term-pronunciation {
    background: rgba(189, 214, 83, 0.1);
    color: #273039;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

.term-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.term-definition {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.term-definition p {
    margin-bottom: 1rem;
}

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

.term-example {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #bdd653;
}

.term-example h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #273039;
    margin: 0 0 0.5rem 0;
}

.term-example p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.term-related h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #273039;
    margin: 0 0 1rem 0;
}

.related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-term-tag {
    background: rgba(39, 48, 57, 0.1);
    color: #273039;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(39, 48, 57, 0.2);
}

/* Glossary Sidebar */
.glossary-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Quick Navigation */
.quick-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-nav-link:hover {
    background: rgba(189, 214, 83, 0.1);
    color: #273039;
    text-decoration: none;
}

.quick-nav-link .letter {
    font-weight: 600;
}

.quick-nav-link .count {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Popular Terms */
.popular-terms {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popular-term-link {
    padding: 8px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.popular-term-link:hover {
    background: rgba(189, 214, 83, 0.1);
    color: #273039;
    text-decoration: none;
}

/* No Terms Message */
.no-terms-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-terms-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* Glossary CTA Section */
.glossary-cta-section {
    background: #f8f9fa;
}

.glossary-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: #bdd653;
    color: #273039;
}

.btn-primary:hover {
    background: #a8c442;
    color: #273039;
}

.btn-secondary {
    background: #273039;
    color: white;
}

.btn-secondary:hover {
    background: #1a2329;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .glossary-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .glossary-sidebar {
        position: static;
        order: 2;
    }
    
    .glossary-content {
        order: 1;
    }
    
    .alphabet-nav {
        gap: 6px;
    }
    
    .alphabet-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 1rem;
    }
    
    .search-icon {
        right: 15px;
        font-size: 1.1rem;
    }
    
    .glossary-content,
    .sidebar-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .glossary-term {
        padding: 1.5rem;
    }
    
    .term-title {
        font-size: 1.3rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .alphabet-nav {
        gap: 4px;
    }
    
    .alphabet-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .glossary-content,
    .sidebar-section {
        padding: 1rem;
    }
    
    .glossary-term {
        padding: 1rem;
    }
    
    .term-title {
        font-size: 1.2rem;
    }
    
    .term-definition {
        font-size: 1rem;
    }
    
    .alphabet-nav {
        gap: 3px;
    }
    
    .alphabet-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 30px;
    }
}
