/* Kennisbank Overzicht Page Styling */

.kennisbank-overzicht {
    background: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #6b4ce3 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.hero-section .breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-section .breadcrumbs a {
    color: white;
    text-decoration: none;
}

.hero-section .breadcrumbs a:hover {
    text-decoration: underline;
}

.hero-section .breadcrumbs span {
    margin: 0 8px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.hero-subtitle #total-count {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-box .clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.search-box .clear-btn:hover {
    color: var(--primary-purple);
}

.results-count {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* Alphabet Navigation */
.alphabet-nav-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.alphabet-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alphabet-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.alphabet-btn.active {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.alphabet-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.alphabet-btn.disabled:hover {
    transform: none;
    border-color: #e0e0e0;
    color: #333;
}

/* Loading State */
.loading-section {
    padding: 80px 0;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Begrippen Section */
.begrippen-section {
    padding: 40px 0 80px;
}

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

.begrip-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.begrip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.begrip-letter {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-purple), #6b4ce3);
    color: white;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    margin-bottom: 12px;
}

.begrip-card h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: var(--primary-purple);
}

.begrip-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Alphabet Sections */
.alphabet-section {
    margin-bottom: 40px;
}

.alphabet-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-purple);
}

.alphabet-section-letter {
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border-radius: 10px;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alphabet-section-count {
    color: #666;
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

.no-results a {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* Popular Topics */
.popular-topics {
    padding: 60px 0;
    background: white;
}

.popular-topics h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

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

.topic-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.topic-card h3 {
    color: var(--primary-purple);
    margin: 0 0 8px 0;
    font-size: 20px;
}

.topic-card p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .begrippen-grid {
        grid-template-columns: 1fr;
    }

    .alphabet-nav {
        gap: 5px;
    }

    .alphabet-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
