/* Glossary Page Styles for Blockchain Gambling Hub */

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Glossary Term Page */
.glossary-term {
    background: var(--card-bg);
}

.term-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.term-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.term-hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.term-body {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.term-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-dark);
}

.term-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.term-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.term-body p {
    margin-bottom: 1.5rem;
}

.term-body ul,
.term-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.term-body li {
    margin-bottom: 0.75rem;
}

.term-body strong {
    font-weight: 700;
    color: var(--text-dark);
}

.term-body em {
    font-style: italic;
}

/* External Links Section */
.external-links {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--hover-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.external-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.external-links li {
    margin-bottom: 0.75rem;
}

.external-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.external-links a::before {
    content: '→';
    color: var(--secondary-color);
}

.external-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Glossary Index Page */
.glossary-category {
    margin-bottom: 3rem;
}

.glossary-category h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.term-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.term-list li {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.term-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.term-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.term-list a:hover {
    color: var(--primary-color);
}

/* Glossary Link in Content */
.glossary-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: var(--transition);
}

.glossary-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .term-title {
        font-size: 2rem;
    }

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

    .external-links {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .term-title {
        font-size: 1.75rem;
    }

    .term-category {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .term-body {
        font-size: 1rem;
    }
}
