/* Glossary Page Styles */

.glossary-page {
    background: var(--bg-light);
}

.glossary {
    padding: 120px 0 60px;
}

.glossary .back-link {
    display: inline-block;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.glossary .back-link:hover {
    text-decoration: underline;
}

.glossary-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.glossary-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.glossary-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.glossary-header .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.language-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.language-links span {
    color: var(--text-light);
}

.language-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.language-links a:hover {
    text-decoration: underline;
}

/* Alphabetical Navigation */
.glossary-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.glossary-nav a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.glossary-nav a:hover {
    background: var(--primary-color);
    color: white;
}

/* Letter Sections */
.letter-section {
    margin-bottom: 2.5rem;
}

.letter-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Individual Terms */
.term {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.term h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.term-french {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.term p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.term-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.term-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.glossary-content .cta-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2.5rem;
}

.glossary-content .cta-section h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: none;
}

.glossary-content .cta-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* RTL Support for Farsi */
[dir="rtl"] .term {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .glossary-nav {
    direction: ltr;
}

/* Responsive */
@media (max-width: 768px) {
    .glossary-content {
        padding: 1.5rem;
    }

    .glossary-header h1 {
        font-size: 1.5rem;
    }

    .glossary-nav a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.9rem;
    }

    .language-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
