/* Glossary specific styles */
.glossary-hero {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFD180 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.glossary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/pattern.svg') repeat;
    opacity: 0.05;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #34495e;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 2.5rem;
}

.glossary-nav-section {
    padding: 3rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.term-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    border-top: 4px solid #4F46E5;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.term-card h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.term-card h3 a {
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.term-card h3 a:hover {
    color: #4F46E5;
}

.term-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.term-meta {
    display: flex;
    flex-direction: column;
    margin-top: 0px;
    padding-top: 0px;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
}

.related-terms span {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
    margin: 0;
}

.related-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-terms a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 20px;
    color: #4F46E5;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.related-terms a:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-1px);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: auto;
    padding-top: 0.5rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    transform: translateX(5px);
    color: #FFA500;
}

.glossary-section {
    padding: 4rem 0;
}

.bg-white {
    background: white;
}

.bg-light {
    background: #F9FAFB;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }

    .term-card {
        padding: 1.5rem;
    }

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

    .term-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-terms {
        width: 100%;
    }
}

/* Term Detail Page Styles */
.term-hero {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFD180 100%);
    padding-bottom: 2rem;
    padding-top: 7rem;
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay */
.term-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.term-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb styling */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0 1rem;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #4B5563;
    font-size: 0.95rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #9CA3AF;
}

.breadcrumb a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #4F46E5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .term-hero {
        padding-bottom: 2rem;
        padding-top: 5rem;
    }

    .term-hero .container {
        padding: 0 1rem;
    }

    .breadcrumb {
        margin-bottom: 1rem;
    }

    .breadcrumb li {
        font-size: 0.85rem;
    }
}

/* Term header styling */
.term-header {
    max-width: 800px;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.term-header h1 {
    font-size: 3rem;
    color: #1F2937;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .term-hero {
        padding: 2rem 0;
    }

    .term-hero .container {
        padding: 0 1rem;
    }

    .breadcrumb {
        margin-bottom: 1.5rem;
    }

    .breadcrumb li {
        font-size: 0.85rem;
    }

    .category-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

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

/* Optional: Add animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.term-header {
    animation: fadeIn 0.5s ease-out;
}

/* Optional: Add hover effect for interactive elements */
.term-hero .container {
    transition: transform 0.3s ease;
}

.term-hero .container:hover {
    transform: translateY(-2px);
}

.term-content-section {
    padding: 4rem 0;
}

.term-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.term-definition {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.related-content {
    margin-top: 4rem;
}

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

.related-term-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.related-term-card:hover {
    transform: translateY(-2px);
}

.related-term-card h3 {
    color: #4F46E5;
    margin-bottom: 0.5rem;
}

.learn-more {
    display: block;
    margin-top: 1rem;
    color: #4F46E5;
    font-weight: 500;
}

.sidebar-box {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.quick-nav li {
    margin-bottom: 0.5rem;
}

.quick-nav a {
    color: #4B5563;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.quick-nav a.active {
    background: #F3F4F6;
    color: #4F46E5;
    font-weight: 500;
}

.view-all {
    display: block;
    margin-top: 1rem;
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
}

.cta-box {
    background: #F9FAFB;
    text-align: center;
}

.cta-box h3 {
    color: #111827;
    margin-bottom: 1rem;
}

.explore-more {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #F3F4F6 0%, #FFFFFF 100%);
}

.explore-more h2 {
    font-size: 2.5rem;
    color: #111827;
    text-align: left;
    margin-bottom: 2rem;
    font-weight: 600;
}

.explore-more h3 {
    font-size: 1.5rem;
    color: #4F46E5;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 500;
}

.related-terms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-pill {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: white;
    color: #4F46E5;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.category-pill:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

.term-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.term-count {
    background: rgba(79, 70, 229, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4F46E5;
    margin-left: 0.75rem;
    min-width: 24px;
    text-align: center;
}

.category-pill:hover .term-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.no-terms-message {
    text-align: center;
    color: #6B7280;
    font-style: italic;
    margin: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .explore-more {
        padding: 3rem 1rem;
    }

    .explore-more h2 {
        font-size: 2rem;
    }

    .explore-more h3 {
        font-size: 1.25rem;
    }

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

/* Related Terms Section */
.related-terms {
    margin-top: 0px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.related-terms span {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
    margin-right: 0.5rem;
}

.related-terms a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 20px;
    color: #4F46E5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.related-terms a:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-1px);
}

.related-terms a:not(:last-child)::after {
    content: '';
    margin: 0 0.25rem;
}

/* Search styles */
.hero-search {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.15);
}

.search-input::placeholder {
    color: #94A3B8;
}

.search-button {
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 50px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.search-button:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

.search-button i {
    font-size: 1.2rem;
}

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-search {
        flex-direction: row;
        gap: 0.5rem;
    }

    .search-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .search-button {
        width: 48px;
        height: 48px;
    }
}

/* Add these styles to your existing CSS */
.term-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #6B7280;
}

.reset-search {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-search:hover {
    background: #4338CA;
    transform: translateY(-1px);
} 