/* Nikoala Glossary Styles */
.nikoala-glossary-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Section */
.glossary-search-section {
    margin-bottom: 30px;
    padding: 20px;
}

.glossary-search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#glossary-search {
    flex: 1;
    min-width: 300px;
}

/* Results Section */
.glossary-results {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.glossary-search-result {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

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

.glossary-search-result h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 18px;
}

.glossary-definition {
    line-height: 1.6;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

/* Index Section */
.glossary-index {
    margin-bottom: 30px;
    padding: 20px;
}

.glossary-index h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.glossary-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glossary-letter-link {
    display: inline-block;
    padding: 8px 12px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.glossary-letter-link:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-1px);
}

/* Entries Section */
.glossary-entries {
    padding: 20px;
}

.glossary-letter-section {
    margin-bottom: 40px;
}

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

.button.no-margin {
    margin: 0;
}

.glossary-letter-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 10px 0;
    border-bottom: 3px solid #0073aa;
    text-align: center;
}

.glossary-entries-list {
    display: grid;
    gap: 20px;
}

.glossary-entry {
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.glossary-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.glossary-term {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.glossary-definition {
    line-height: 1.7;
    font-size: 16px;
}

.glossary-definition p {
    margin: 0 0 10px 0;
}

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

.glossary-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Empty State */
.glossary-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.glossary-empty p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .glossary-search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    #glossary-search {
        min-width: auto;
        width: 100%;
    }
    
    .glossary-letters {
        justify-content: center;
    }
    
    .glossary-letter-heading {
        font-size: 24px;
    }
    
    .glossary-term {
        font-size: 18px;
    }
    
    .glossary-definition {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .glossary-letter-link {
        min-width: 32px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .glossary-entry {
        padding: 15px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.glossary-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.glossary-loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}