
/* Glossary Styles */

/* Header Section */
.glossary-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.glossary-header .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.glossary-header .section-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* Controls Section */
.glossary-controls {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 0;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--background));
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 1rem;
}

.search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.search-input:focus {
    outline: none;
}

.search-button {
    padding: 0.75rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: hsl(var(--primary));
    opacity: 0.9;
}

/* Category Filters */
.filter-section {
    text-align: center;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-filter {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-filter:hover,
.category-filter.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Results Info */
.results-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
}

.results-info p {
    margin: 0.25rem 0;
}

/* Terms Grid */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.term-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.term-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: hsl(var(--primary));
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.term-title {
    margin: 0;
    flex: 1;
}

.term-title a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.term-category {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.term-definition {
    flex: 1;
    margin-bottom: 1rem;
}

.term-definition p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

.term-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: hsl(var(--foreground));
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: hsl(var(--muted-foreground));
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

/* Info Section */
.info-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
}

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

.info-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.info-icon {
    font-size: 2rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.info-card h3 {
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.info-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Term Detail Page */
.term-detail {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.term-detail-header {
    padding: 2rem;
    border-bottom: 1px solid hsl(var(--border));
    background: rgba(255, 255, 255, 0.02);
}

.term-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.term-category-badge {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.375rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.term-date {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.term-detail .term-title {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.term-summary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.term-summary .term-definition {
    font-size: 1.125rem;
    line-height: 1.7;
    color: hsl(var(--foreground));
    margin: 0;
}

.term-content {
    padding: 2rem;
}

.term-explanation h2 {
    color: hsl(var(--foreground));
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.term-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.related-terms h2 {
    color: hsl(var(--foreground));
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.related-term {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.term-footer {
    padding: 2rem;
    border-top: 1px solid hsl(var(--border));
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.term-actions {
    display: flex;
    gap: 1rem;
}

.term-info .author {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin: 0;
}

/* Suggestion Box */
.suggestion-box {
    margin: 3rem 0;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
}

.suggestion-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.suggestion-content i {
    font-size: 2rem;
    color: #22c55e;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
}

.suggestion-text h3 {
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.suggestion-text p {
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glossary-controls {
        padding: 1.5rem;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .category-filter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .term-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .term-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .term-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .term-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .suggestion-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .glossary-header .section-title {
        font-size: 2rem;
    }
    
    .term-detail .term-title {
        font-size: 1.5rem;
    }
    
    .term-detail-header,
    .term-content,
    .term-footer {
        padding: 1.5rem;
    }
}
