/* Glossary Specific Styles */

/* Glossary Index Page */
.glossary-header {
    padding: 40px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.glossary-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.glossary-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    color: white;
}

/* Category Section */
.glossary-category {
    padding: 40px;
    margin-bottom: 20px;
}

.glossary-category h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #059669;
}

.glossary-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.glossary-item {
    background: #f8fafb;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

.glossary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border-left-color: #10b981;
}

.glossary-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.glossary-item h3 a {
    color: #1e3c72;
    text-decoration: none;
}

.glossary-item h3 a:hover {
    color: #059669;
}

.glossary-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Term Detail Page */
.term-header {
    padding: 40px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f2f7 100%);
    border-left: 6px solid #059669;
}

.term-header h1 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.term-subtitle {
    font-size: 1.2rem;
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 1rem;
}

.term-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.term-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.term-content {
    padding: 40px;
}

.term-content h2 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin: 40px 0 20px 0;
    font-weight: 700;
    border-left: 4px solid #059669;
    padding-left: 16px;
}

.term-content h2:first-child {
    margin-top: 0;
}

.term-content h3 {
    font-size: 1.4rem;
    color: #2a5298;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.term-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.term-content p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: #444;
}

.term-content ul,
.term-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.term-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* External Links Section */
.external-links {
    padding: 30px;
    background: #f0fdf4;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid #10b981;
}

.external-links h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.external-links ul {
    list-style: none;
    padding: 0;
}

.external-links li {
    margin-bottom: 12px;
}

.external-links a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.external-links a:hover {
    color: #10b981;
}

.external-links a::before {
    content: "→";
    margin-right: 8px;
    font-weight: bold;
}

/* Keywords Tags */
.term-keywords {
    padding: 30px;
    background: #f8fafb;
    border-radius: 8px;
    margin: 30px 0;
}

.term-keywords h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Related Terms */
.related-terms {
    padding: 40px;
    background: #f8fafb;
    margin-top: 40px;
}

.related-terms h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-left: 4px solid #059669;
    padding-left: 16px;
}

.related-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-term-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #059669;
}

.related-term-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.related-term-card h3 {
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.related-term-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 40px;
    background: #f8fafb;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #059669;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #10b981;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glossary-header {
        padding: 30px 20px;
    }

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

    .glossary-category {
        padding: 30px 20px;
    }

    .glossary-category h2 {
        font-size: 1.6rem;
    }

    .glossary-list {
        grid-template-columns: 1fr;
    }

    .term-header {
        padding: 30px 20px;
    }

    .term-header h1 {
        font-size: 2rem;
    }

    .term-content {
        padding: 30px 20px;
    }

    .term-content h2 {
        font-size: 1.5rem;
    }

    .term-content h3 {
        font-size: 1.2rem;
    }

    .external-links,
    .term-keywords {
        padding: 20px;
    }

    .related-terms {
        padding: 30px 20px;
    }

    .related-terms-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .glossary-header h1 {
        font-size: 1.6rem;
    }

    .term-header h1 {
        font-size: 1.6rem;
    }

    .term-meta {
        flex-direction: column;
        gap: 10px;
    }

    .keywords-list {
        gap: 8px;
    }

    .keyword-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
