/* Custom Styles for Modern Woordenboek 2026 */
.wb-wrapper {
    font-family: 'Source Sans Pro', sans-serif;
    color: #2c3e50;
    margin-top: 1rem;
}

/* Header & Search block */
.wb-header {
    text-align: center;
    margin-bottom: 2rem;
}
.wb-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}
.wb-header p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.wb-search-container {
    position: relative;
    max-width: 550px;
    margin: 2rem auto 1.5rem;
}
.wb-search-input {
    width: 100%;
    padding: 0.85rem 1.5rem 0.85rem 3.25rem !important;
    font-size: 1.05rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.wb-search-input:focus {
    border-color: #27ae60;
    box-shadow: 0 8px 16px rgba(39, 174, 96, 0.1);
}
.wb-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.wb-search-clear {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.3rem;
    display: none;
    outline: none;
    line-height: 1;
    padding: 0;
}
.wb-search-clear:hover {
    color: #475569;
}

/* Alphabet Quick-Nav */
.wb-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 auto 2.5rem;
    padding: 0.6rem;
    background-color: #f8fafc;
    border-radius: 50px;
    max-width: 780px;
    border: 1px solid #e2e8f0;
}
.wb-alpha-btn {
    border: none;
    background: none;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    min-width: 30px;
    text-align: center;
}
.wb-alpha-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.wb-alpha-btn.active {
    background-color: #27ae60;
    color: #fff;
}
.wb-alpha-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: none !important;
    color: #cbd5e1 !important;
}

/* Custom Tabs */
.wb-tabs-header {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.wb-tab-btn {
    border: none;
    background: none;
    padding: 0.75rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    outline: none;
    margin-bottom: -2px;
}
.wb-tab-btn:hover {
    color: #27ae60;
}
.wb-tab-btn.active {
    color: #27ae60;
}
.wb-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #27ae60;
    border-radius: 3px 3px 0 0;
}
.wb-tab-badge {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    margin-left: 0.4rem;
    vertical-align: middle;
    font-weight: 700;
}
.wb-tab-btn.active .wb-tab-badge {
    background-color: #e8f5e9;
    color: #27ae60;
}

/* Tab contents & Word layouts */
.wb-tab-content {
    display: none;
}
.wb-tab-content.active {
    display: block;
}
.wb-letter-section {
    margin-bottom: 2rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.wb-letter-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}
.wb-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}
.wb-word-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: block;
}
.wb-word-card:hover {
    border-color: #27ae60;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.08);
}
.wb-word-link {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    display: block;
    word-break: break-word;
}
.wb-word-card:hover .wb-word-link {
    color: #27ae60;
}

/* Word Detail Design */
.wb-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}
.wb-detail-word {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.wb-detail-meta {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}
.wb-detail-description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #334155;
}
.wb-detail-description p {
    margin-bottom: 1.25rem;
}

.wb-promo-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
.wb-promo-card h3 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.wb-promo-card p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.wb-promo-card p:last-child {
    margin-bottom: 0;
}

.wb-back-btn {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-weight: 600;
    text-decoration: none !important;
    margin-bottom: 2rem;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.wb-back-btn:hover {
    color: #27ae60;
}
.wb-back-btn svg {
    margin-right: 0.5rem;
}

/* Edit button wrapper */
.wb-edit-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.wb-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s;
}
.wb-edit-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Detail page footer navigation */
.wb-navigator-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}
.wb-nav-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow issues with long text */
}
.wb-nav-card:hover {
    border-color: #27ae60;
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.05);
    background-color: #fcfefe;
}
.wb-nav-card.prev {
    align-items: flex-start;
}
.wb-nav-card.next {
    align-items: flex-end;
}
.wb-nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.wb-nav-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.wb-nav-card.prev .wb-nav-title {
    text-align: left;
}
.wb-nav-card.next .wb-nav-title {
    text-align: right;
}
.wb-nav-card:hover .wb-nav-title {
    color: #27ae60;
}

/* Empty states */
.wb-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 1.1rem;
    display: none;
}

@media (max-width: 768px) {
    .wb-tabs-header {
        gap: 0.25rem;
    }
    .wb-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    .wb-navigator-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .wb-nav-card {
        width: 100%;
        align-items: center !important;
    }
    .wb-nav-card.prev .wb-nav-title, 
    .wb-nav-card.next .wb-nav-title {
        text-align: center !important;
    }
    .wb-detail-card {
        padding: 1.5rem;
    }
}