/* Glossary Styles */

.glossary-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.glossary-hero .hero-subtitle {
    text-align: center;
}

.glossary-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.filters-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.filters-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.glossary-section {
    padding: 4rem 0;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.term-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.25s ease;
}

.term-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.term-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.term-header h2 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
}

.term-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    background: rgba(59, 130, 246, 0.08);
}

.term-definition {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.glossary-empty {
    margin: 2.5rem auto 0;
    max-width: 720px;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.35);
}

.glossary-empty strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.glossary-empty p {
    margin: 0;
    color: var(--text-secondary);
}

.glossary-cta {
    padding: 1rem 0 5rem;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.14));
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.cta-card h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.6rem;
}

.cta-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 70ch;
}

@media (max-width: 720px) {
    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
