﻿/* Glossary Hero Section */
.glossary-hero {
    padding: 140px 0 80px;
    color: white;
    text-align: center;
    position: relative;
}

.glossary-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.glossary-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.glossary-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.glossary-hero .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.glossary-hero .breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.glossary-hero .breadcrumbs a:hover {
    opacity: 0.8;
}

.glossary-hero .breadcrumbs span {
    margin: 0 10px;
    opacity: 0.7;
}

/* Alphabet Navigation Section */
.alphabet-nav-section {
    padding: 40px 0;
    background-color: #f8fafc;
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alphabet-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alphabet-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.alphabet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.alphabet-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.2);
}

.search-container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#glossary-search {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#glossary-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 141, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .glossary-hero {
        padding: 120px 0 60px;
    }
}

@media (max-width: 768px) {
    .glossary-hero h1 {
        font-size: 2.2rem;
    }
    
    .glossary-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .alphabet-list {
        gap: 3px;
    }
    
    .alphabet-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .glossary-hero {
        padding: 100px 0 50px;
    }
    
    .glossary-hero h1 {
        font-size: 1.8rem;
    }
    
    .alphabet-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    #glossary-search {
        padding: 10px 15px 10px 40px;
    }
}

/* Featured Terms Section */
.featured-terms {
    padding: 80px 0;
    background-color: #f8fafc;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.term-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 141, 0.2);
}

.term-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.2rem;
}

.term-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.term-definition {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.term-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.term-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.term-link:hover {
    color: var(--hover-accent);
}

.term-link:hover i {
    transform: translateX(3px);
}

/* A-Z Glossary Section */
.glossary-list-section {
    padding: 80px 0;
    background-color: white;
}

.glossary-list {
    margin-top: 40px;
}

.letter-section {
    margin-bottom: 50px;
}

.letter-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 122, 141, 0.1);
    display: flex;
    align-items: center;
}

.letter-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 122, 141, 0.1);
    margin-left: 20px;
}

.term-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.term-item:hover {
    border-color: rgba(0, 122, 141, 0.2);
    box-shadow: 0 5px 20px rgba(0, 122, 141, 0.05);
}

.term-name {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.term-meaning {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.term-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.term-category {
    background: rgba(0, 122, 141, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.term-related {
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.term-related:hover {
    color: var(--accent);
}

.term-related::before {
    content: '→';
    margin-right: 5px;
}

.no-terms {
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.glossary-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.glossary-cta p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(0, 122, 141, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 141, 0.1);
}

.btn-outline i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-outline:hover i {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .featured-terms,
    .glossary-list-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .letter-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .term-card {
        padding: 25px;
    }
    
    .term-item {
        padding: 20px;
    }
    
    .term-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .glossary-cta p {
        font-size: 1rem;
    }
}