/* === AHL FAQ — Mediaz AHL === */

/*
 * Link colours. Themes typically style links as `.entry-content a` or
 * `.af-faq a` (specificity 0-1-1, sometimes !important). Our own
 * wrapper class .af-faq (shortcode + templates) gives 0-2-1 plus !important,
 * so these rules win regardless of the active theme.
 */

/* Dark links (#333) — normal + visited */
.af-faq a.af-vraag-link,
.af-faq a.af-categorie-card,
.af-faq a.af-categorie-balk-item,
.af-faq a.af-categorie-link,
.af-faq a.af-zoek-dropdown-item,
.af-faq a.af-vraag-link:visited,
.af-faq a.af-categorie-card:visited,
.af-faq a.af-categorie-balk-item:visited,
.af-faq a.af-categorie-link:visited,
.af-faq a.af-zoek-dropdown-item:visited {
    color: #333 !important;
    text-decoration: none !important;
}

/* Dark links — hover */
.af-faq a.af-vraag-link:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

.af-faq a.af-categorie-card:hover,
.af-faq a.af-categorie-balk-item:hover,
.af-faq a.af-categorie-link:hover {
    color: #111 !important;
}

/* Medium links (#555) — normal + visited */
.af-faq a.af-lees-meer,
.af-faq .af-bronnen a,
.af-faq a.af-terug,
.af-faq .af-disclaimer a,
.af-faq a.af-lees-meer:visited,
.af-faq .af-bronnen a:visited,
.af-faq a.af-terug:visited,
.af-faq .af-disclaimer a:visited {
    color: #555 !important;
    text-decoration: none !important;
}

/* Medium links — hover */
.af-faq a.af-lees-meer:hover {
    color: #111 !important;
}

.af-faq .af-bronnen a:hover,
.af-faq a.af-terug:hover,
.af-faq .af-disclaimer a:hover {
    color: #000 !important;
}

/* Breadcrumb links — green to match site-wide style */
.af-faq .af-breadcrumb a,
.af-faq .af-breadcrumb a:visited {
    color: #1aa44e !important;
    text-decoration: none !important;
}

.af-faq .af-breadcrumb a:hover {
    text-decoration: underline !important;
}

/* Intro tekst */
.af-intro {
    max-width: 720px;
    margin: 0 auto 1rem;
    text-align: center;
}

.af-intro p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Zoekbalk (hero-style) */
.af-zoek--hero {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem 0;
    position: relative;
}

.af-zoek--hero input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.af-zoek--hero input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Zoek-dropdown (autocomplete) */
.af-zoek-dropdown {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    margin-top: -2px;
    text-align: left;
}

.af-zoek-dropdown-item {
    display: block;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.1s ease;
}

.af-zoek-dropdown-item:last-child {
    border-bottom: none;
}

.af-zoek-dropdown-item:hover,
.af-zoek-dropdown-item--actief {
    background: #f5f7fa;
    color: #111;
    text-decoration: none;
}

.af-zoek-dropdown-item-naam {
    font-weight: 600;
    display: block;
}

.af-zoek-dropdown-item-def {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-zoek-dropdown-leeg {
    padding: 1rem 1.2rem;
    text-align: center;
    color: #999;
    font-style: italic;
}

.af-geen-resultaten {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem 0;
}

/* Vragenlijst (overzicht + categoriepagina) */
.af-vragenlijst {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.af-vraag-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.af-vraag-item:last-child {
    border-bottom: none;
}

.af-vraag-link,
.af-vraag-link:visited {
    font-weight: 600;
    text-decoration: none !important;
    color: #333 !important;
}

.af-vraag-link:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

.af-samenvatting {
    display: inline;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.af-lees-meer,
.af-lees-meer:visited {
    display: inline;
    font-size: 0.85em;
    color: #555 !important;
    text-decoration: none !important;
    margin-left: 0.3rem;
    transition: color 0.15s ease;
}

.af-lees-meer:hover {
    color: #111 !important;
}

/* Paginering */
.af-paginering {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 2rem 0;
}

.af-paginering .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.4rem 0.6rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    color: #333 !important;
    transition: background-color 0.15s ease;
}

.af-paginering a.page-numbers:hover {
    background: #e0e0e0;
    color: #111 !important;
}

.af-paginering .page-numbers.current {
    background: #333;
    color: #fff !important;
}

.af-paginering .page-numbers.dots {
    background: transparent;
    color: #999 !important;
}

/* Category navigation bar */
.af-categorie-balk {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.af-categorie-balk-item,
.af-categorie-balk-item:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    color: #333 !important;
    font-size: 0.9em;
    transition: background-color 0.15s ease;
}

.af-categorie-balk-item small {
    font-weight: 400;
    color: #999;
}

.af-categorie-balk-item:hover {
    background: #e0e0e0;
    color: #111 !important;
    text-decoration: none !important;
}

.af-categorie-balk-item--actief {
    background: #333;
    color: #fff;
}

.af-categorie-balk-item--actief small {
    color: rgba(255, 255, 255, 0.7);
}

/* Single vraag: taxonomy info */
.af-taxonomie-info {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.af-taxonomie-label {
    font-weight: 600;
    color: #555;
    margin-right: 0.5rem;
}

.af-categorie-link,
.af-categorie-link:visited {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 0.9em;
}

.af-categorie-link:hover {
    background: #e0e0e0;
    color: #111 !important;
    text-decoration: none !important;
}

/* Single vraag pagina */
.af-antwoord {
    line-height: 1.7;
    margin-bottom: 2rem;
}

.af-antwoord p {
    margin-bottom: 1rem;
}

/* Tussenkoppen: vette regel, alinea er direct onder (zie AF_Post_Type::filter_antwoord). */
.af-antwoord p.af-kop {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.af-antwoord p.af-kop + p {
    margin-top: 0;
}

.af-antwoord sup a,
.af-antwoord sup a:visited {
    color: #1aa44e;
    text-decoration: none;
    font-weight: 600;
}

/* Bronnen */
.af-bronnen {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.af-bronnen h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.af-bronnen ol,
.af-bronnen ul {
    padding-left: 1.4rem;
    margin: 0;
}

/* Bullets voor pagina's zonder [1]-citaties in de tekst, zoals de oorspronkelijke FAQ's. */
.af-bronnen ul {
    list-style: disc;
}

.af-bronnen li {
    padding: 0.3rem 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.af-bronnen li::marker {
    color: #999;
}

.af-bronnen a,
.af-bronnen a:visited {
    color: #555 !important;
    text-decoration: none;
    font-weight: 700;
}

.af-bronnen a:hover {
    color: #000 !important;
    text-decoration: underline;
}

/* Breadcrumb — matches site-wide GeneratePress breadcrumb style */
.af-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 1em;
    color: #333;
    margin-bottom: 0.8rem;
}

.af-breadcrumb a,
.af-breadcrumb a:visited {
    color: #1aa44e !important;
    text-decoration: none !important;
}

.af-breadcrumb a:hover {
    text-decoration: underline !important;
}

.af-breadcrumb-sep {
    color: #333;
    margin: 0 0.1rem;
}

/* Navigatie */
.af-navigatie {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.af-terug,
.af-terug:visited {
    color: #555 !important;
    text-decoration: none !important;
}

.af-terug:hover {
    color: #000 !important;
}

/* Bijgewerkt datum */
.af-bijgewerkt {
    color: #999;
    margin-top: 2rem;
}

/* Homepage sections */
.af-home-sectie {
    margin-bottom: 2.5rem;
}

.af-home-sectie h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.af-home-sectie > p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Category grid (overzicht) */
.af-categorie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
}

.af-categorie-card,
.af-categorie-card:visited {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none !important;
    color: #333 !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.af-categorie-card:hover {
    background: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    color: #111 !important;
}

.af-categorie-card-naam {
    font-weight: 600;
}

.af-categorie-card-count {
    font-size: 0.8em;
    color: #888;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* SEO content */
.af-seo-content p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.af-seo-content p:last-child {
    margin-bottom: 0;
}

/* Disclaimer */
.af-disclaimer {
    margin-top: 2.5rem;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

.af-disclaimer p {
    margin: 0;
    color: #777;
    font-size: 0.85em;
    line-height: 1.6;
}

.af-disclaimer a,
.af-disclaimer a:visited {
    color: #555 !important;
}

.af-disclaimer a:hover {
    color: #000 !important;
}

/* Teller */
.af-teller {
    color: #999;
    font-size: 0.9em;
    margin-top: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .af-categorie-grid {
        grid-template-columns: 1fr;
    }

    .af-zoek--hero input {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .af-categorie-balk {
        gap: 0.3rem;
    }

    .af-categorie-balk-item {
        font-size: 0.8em;
        padding: 0.3rem 0.6rem;
    }
}

/* Fallback layout for themes without GeneratePress containers. */
.af-content-area {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    box-sizing: border-box;
}
