/* Glossary-specific styles */

/* Glossary Term Card */
.glossary-term {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 185, 252, 0.05) 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--cta-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    scroll-margin-top: calc(var(--nav-height) + 3rem);
}

.glossary-term:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-primary);
}

.glossary-term h3 {
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.glossary-term h3 i {
    color: var(--cta-color);
    font-size: 1.1rem;
}

.glossary-term p {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

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

.term-highlight {
    background: linear-gradient(135deg, rgba(255, 211, 1, 0.2), rgba(255, 211, 1, 0.1));
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Key Points in Terms */
.term-points {
    margin-top: 1rem;
    padding-left: 1.25rem;
    border-left: 3px solid rgba(0, 185, 252, 0.3);
}

.term-points li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
}

.term-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cta-color);
    font-weight: 700;
}

/* Intro Section */
.glossary-intro {
    background: linear-gradient(135deg, rgba(36, 107, 207, 0.1) 0%, rgba(0, 185, 252, 0.1) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 185, 252, 0.3);
}

.glossary-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Stats Box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--cta-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cta-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
}

.category-section h2 {
    scroll-margin-top: calc(var(--nav-height) + 3rem);
}

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

/* Featured Image */
.article-featured-image {
    margin: 0 0 2.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

.article-featured-image figcaption {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 185, 252, 0.05) 100%);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    border-top: 1px solid var(--shadow-color);
}