/* SL Knowledge Hub Frontend Styles */

/* Global CSS Variables */
:root {
    --slkh-primary: #6366f1;
    --slkh-primary-light: #818cf8;
    --slkh-bg-dark: #0a0a0f;
    --slkh-bg-card: #12121a;
    --slkh-bg-card-lighter: #1a1a24;
    --slkh-text-primary: #ffffff;
    --slkh-text-secondary: #a1a1aa;
    --slkh-border: #2a2a3a;
    --slkh-accent-green: #10b981;
    --slkh-accent-orange: #f59e0b;
    --slkh-accent-blue: #3b82f6;
    --slkh-accent-pink: #ec4899;
    --slkh-accent-cyan: #06b6d4;
}

/* ===========================================
   GLOBAL STYLES - Work on any page
   =========================================== */

/* Inline Term Link - works in lessons, topics, anywhere */
.slkh-term-link {
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px dotted #6366f1;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(99, 102, 241, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
}

.slkh-term-link:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.2);
    border-bottom-style: solid;
}

/* Popup - Global overlay */
.slkh-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slkh-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slkh-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1a1a24;
    border-radius: 20px;
    border: 1px solid #2a2a3a;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.slkh-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.slkh-popup-header {
    padding: 24px;
    border-bottom: 1px solid #2a2a3a;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.slkh-popup-header h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: #ffffff;
}

.slkh-popup-cat {
    font-size: 0.8rem;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.slkh-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0a0a0f;
    border: 1px solid #2a2a3a;
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.slkh-popup-close:hover {
    background: #12121a;
    color: #ffffff;
}

.slkh-popup-content {
    padding: 24px;
}

.slkh-popup-content p {
    color: #a1a1aa;
    line-height: 1.8;
    margin: 0 0 20px;
    font-size: 1rem;
}

.slkh-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.slkh-popup-link:hover {
    color: #ffffff;
    gap: 12px;
}

/* ===========================================
   LOGIN REQUIRED SCREEN
   =========================================== */
.slkh-login-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.slkh-login-card {
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.slkh-login-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.slkh-login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slkh-text-primary);
    margin: 0 0 12px;
}

.slkh-login-card p {
    color: var(--slkh-text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}

.slkh-login-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--slkh-primary) 0%, var(--slkh-primary-light) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.slkh-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.slkh-register-link {
    margin-top: 20px !important;
    font-size: 0.9rem;
}

.slkh-register-link a {
    color: var(--slkh-primary-light);
    text-decoration: none;
}

.slkh-register-link a:hover {
    text-decoration: underline;
}

.slkh-knowledge-hub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Search */
.slkh-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.slkh-search-bar {
    display: flex;
    align-items: center;
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 16px;
    padding: 16px 24px;
    gap: 12px;
    transition: all 0.3s ease;
}

.slkh-search-bar:focus-within {
    border-color: var(--slkh-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.slkh-search-bar svg {
    width: 20px;
    height: 20px;
    color: var(--slkh-text-secondary);
    flex-shrink: 0;
}

.slkh-search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--slkh-text-primary);
    font-size: 1rem;
    outline: none;
}

.slkh-search-bar input::placeholder {
    color: var(--slkh-text-secondary);
}

.slkh-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.slkh-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--slkh-border);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.slkh-search-result:hover {
    background: var(--slkh-bg-card-lighter);
}

.slkh-search-result:last-child {
    border-bottom: none;
}

/* Layout with Sidebar */
.slkh-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.slkh-main-content {
    min-width: 0;
}

/* Mobile/Desktop visibility */
.slkh-mobile-only {
    display: none;
}

.slkh-desktop-only {
    display: block;
}

/* Mobile Sections (Popular & Recent before terms) - hidden on desktop */
.slkh-mobile-sections {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .slkh-mobile-only {
        display: block;
    }
    .slkh-desktop-only {
        display: none;
    }
    .slkh-mobile-sections {
        display: grid;
    }
}

.slkh-mobile-section {
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 16px;
    padding: 20px;
}

.slkh-mobile-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slkh-text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slkh-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.slkh-mobile-section-icon {
    width: 18px;
    height: 18px;
    stroke: var(--slkh-text-secondary);
    flex-shrink: 0;
}

.slkh-mobile-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slkh-mobile-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--slkh-bg-dark);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    align-items: center;
}

.slkh-mobile-item:hover {
    background: var(--slkh-bg-card-lighter);
}

.slkh-mobile-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slkh-mobile-item-icon.term { background: rgba(99, 102, 241, 0.2); color: var(--slkh-primary-light); }
.slkh-mobile-item-icon.document { background: rgba(16, 185, 129, 0.2); color: var(--slkh-accent-green); }
.slkh-mobile-item-icon.tool { background: rgba(6, 182, 212, 0.2); color: var(--slkh-accent-cyan); }

.slkh-mobile-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slkh-mobile-item-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slkh-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slkh-mobile-item-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--slkh-text-secondary);
    flex-shrink: 0;
}

/* View More Button */
.slkh-view-more-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 10px 16px !important;
    background: var(--slkh-bg-dark) !important;
    border: 1px solid var(--slkh-border) !important;
    border-radius: 10px !important;
    color: var(--slkh-text-secondary) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.slkh-view-more-btn:hover {
    background: var(--slkh-bg-card-lighter) !important;
    color: var(--slkh-text-primary) !important;
    border-color: var(--slkh-primary) !important;
}

.slkh-view-more-btn svg {
    transition: transform 0.2s ease;
}

.slkh-view-more-btn:hover svg {
    transform: translateX(3px);
}

/* List Modal (Popular/Recent) */
.slkh-list-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slkh-list-modal-overlay.active {
    display: flex;
}

.slkh-list-modal {
    background: var(--slkh-bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile: bottom sheet style */
@media (max-width: 600px) {
    .slkh-list-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .slkh-list-modal {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

.slkh-list-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--slkh-border);
    flex-shrink: 0;
}

.slkh-list-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slkh-text-primary);
    margin: 0;
}

.slkh-list-modal-header h3 svg {
    color: var(--slkh-text-secondary);
}

.slkh-list-modal-close {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--slkh-bg-dark) !important;
    border: 1px solid var(--slkh-border) !important;
    border-radius: 10px !important;
    color: var(--slkh-text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.slkh-list-modal-close:hover {
    background: var(--slkh-bg-card-lighter) !important;
    color: var(--slkh-text-primary) !important;
}

.slkh-list-modal-content {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.slkh-list-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--slkh-bg-dark);
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.slkh-list-modal-item:last-child {
    margin-bottom: 0;
}

.slkh-list-modal-item:hover {
    background: var(--slkh-bg-card-lighter);
}

.slkh-list-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slkh-list-modal-icon.term { background: rgba(99, 102, 241, 0.2); color: var(--slkh-primary-light); }
.slkh-list-modal-icon.document { background: rgba(16, 185, 129, 0.2); color: var(--slkh-accent-green); }
.slkh-list-modal-icon.tool { background: rgba(6, 182, 212, 0.2); color: var(--slkh-accent-cyan); }

.slkh-list-modal-item-content {
    flex: 1;
    min-width: 0;
}

.slkh-list-modal-item-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slkh-text-primary);
    margin: 0 0 4px;
}

.slkh-list-modal-item-content p {
    font-size: 0.75rem;
    color: var(--slkh-text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slkh-list-modal-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: var(--slkh-text-secondary);
    flex-shrink: 0;
}

/* Sidebar */
.slkh-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar Search */
.slkh-sidebar-search {
    position: relative;
}

.slkh-sidebar-search .slkh-search-bar {
    padding: 12px 16px;
}

.slkh-sidebar-search .slkh-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.slkh-sidebar-section {
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 16px;
    padding: 20px;
}

.slkh-sidebar-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slkh-text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slkh-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.slkh-sidebar-header-icon {
    width: 18px;
    height: 18px;
    stroke: var(--slkh-text-secondary);
    flex-shrink: 0;
}

.slkh-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slkh-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--slkh-bg-dark);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.slkh-sidebar-item:hover {
    background: var(--slkh-bg-card-lighter);
    transform: translateX(4px);
}

.slkh-sidebar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slkh-sidebar-icon.term { background: rgba(99, 102, 241, 0.2); color: var(--slkh-primary-light); }
.slkh-sidebar-icon.document { background: rgba(16, 185, 129, 0.2); color: var(--slkh-accent-green); }
.slkh-sidebar-icon.tool { background: rgba(6, 182, 212, 0.2); color: var(--slkh-accent-cyan); }

.slkh-sidebar-item-content {
    flex: 1;
    min-width: 0;
}

.slkh-sidebar-item-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slkh-text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slkh-sidebar-item-content p {
    font-size: 0.75rem;
    color: var(--slkh-text-secondary);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slkh-sidebar-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--slkh-text-secondary);
}

/* Mobile: Single column, hide sidebar sections (they show above terms) */
@media (max-width: 1024px) {
    .slkh-layout {
        grid-template-columns: 1fr;
    }
    
    .slkh-sidebar {
        display: none;
    }
}

/* Section */
.slkh-section {
    margin-bottom: 40px;
}

.slkh-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--slkh-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.slkh-header-icon {
    width: 24px;
    height: 24px;
    stroke: var(--slkh-text-secondary);
    flex-shrink: 0;
}

/* Category Grid */
.slkh-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .slkh-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .slkh-category-grid {
        grid-template-columns: 1fr;
    }
}

.slkh-category-tile {
    position: relative;
    background: linear-gradient(145deg, var(--slkh-bg-card-lighter) 0%, var(--slkh-bg-card) 100%);
    border: 1px solid var(--slkh-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.slkh-category-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--tile-color, rgba(99, 102, 241, 0.15)) 0%, transparent 70%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.slkh-category-tile:hover {
    transform: translateY(-8px);
    border-color: var(--tile-accent, var(--slkh-primary));
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.slkh-category-tile:hover::before {
    opacity: 1;
}

.slkh-tile-begrippen { --tile-color: rgba(99, 102, 241, 0.2); --tile-accent: #6366f1; }
.slkh-tile-templates { --tile-color: rgba(16, 185, 129, 0.2); --tile-accent: #10b981; }
.slkh-tile-tools { --tile-color: rgba(6, 182, 212, 0.2); --tile-accent: #06b6d4; }

.slkh-tile-count {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--slkh-text-secondary);
}

.slkh-tile-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
}

.slkh-tile-icon svg {
    width: 32px;
    height: 32px;
    color: var(--slkh-text-primary);
}

.slkh-tile-content {
    position: relative;
}

.slkh-tile-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--slkh-text-primary);
}

.slkh-tile-content p {
    font-size: 0.85rem;
    color: var(--slkh-text-secondary);
    margin: 0;
}

/* A-Z Navigation */
.slkh-az-nav {
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.slkh-az-title {
    font-size: 0.9rem;
    color: var(--slkh-text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slkh-az-icon {
    width: 18px;
    height: 18px;
    stroke: var(--slkh-text-secondary);
    flex-shrink: 0;
}

.slkh-az-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slkh-az-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--slkh-bg-dark);
    color: var(--slkh-text-secondary);
    border: 1px solid transparent;
}

.slkh-az-letter:hover {
    background: var(--slkh-bg-card-lighter);
    color: var(--slkh-text-primary);
    border-color: var(--slkh-border);
}

.slkh-az-letter.has-items {
    color: var(--slkh-text-primary);
}

.slkh-az-letter.has-items:hover,
.slkh-az-letter.active {
    background: var(--slkh-primary);
    border-color: var(--slkh-primary);
    color: white;
}

/* Terms Container */
.slkh-terms-container {
    margin-bottom: 40px;
}

.slkh-letter-group {
    margin-bottom: 30px;
}

.slkh-letter-group.hidden {
    display: none;
}

.slkh-letter-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slkh-primary-light);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--slkh-border);
}

.slkh-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.slkh-term-card {
    background: var(--slkh-bg-card);
    border: 1px solid var(--slkh-border);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.slkh-term-card:hover {
    background: var(--slkh-bg-card-lighter);
    border-color: var(--slkh-primary);
    transform: translateY(-2px);
}

.slkh-term-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.slkh-term-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--slkh-text-primary);
}

.slkh-term-cat {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--slkh-bg-dark);
    color: var(--slkh-text-secondary);
}

.slkh-term-desc {
    font-size: 0.85rem;
    color: var(--slkh-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===========================================
   KNOWLEDGE HUB PAGE SPECIFIC STYLES
   =========================================== */

/* Scrollbar */
.slkh-knowledge-hub ::-webkit-scrollbar {
    width: 8px;
}

.slkh-knowledge-hub ::-webkit-scrollbar-track {
    background: var(--slkh-bg-dark);
}

.slkh-knowledge-hub ::-webkit-scrollbar-thumb {
    background: var(--slkh-border);
    border-radius: 4px;
}

.slkh-knowledge-hub ::-webkit-scrollbar-thumb:hover {
    background: var(--slkh-text-secondary);
}
