/* =========================================
   Top 10 Waarderingen — top10-style.css v2.0
   ========================================= */

/* ===========================
   ALGEMEEN
   =========================== */
.top10-plugin {
    max-width: 600px;
    margin-bottom: 30px;
}

/* ===========================
   CATEGORIELABELS
   =========================== */
.top10-categorie-labels {
    margin-top: 6px;
    font-size: 0.85em;
}

.top10-cat-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 4px;
}

.top10-cat-hoofd {
    background: #f2f2f2;
    font-weight: 700;
}

.top10-cat-overig {
    color: #666;
}

/* ===========================
   STEMMEN / STERREN
   =========================== */
.top10-stem-container {
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
}

.top10-stem-intro {
    font-style: italic;
    margin-bottom: 10px;
    color: #555;
}

.top10-gem-score {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top10-admin-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.top10-sterren-container {
    position: relative;
    display: inline-block;
    font-size: 20px;
    color: #ddd;
    line-height: 1;
    white-space: nowrap;
}

.top10-sterren,
.top10-sterren-vol {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}

.top10-sterren { color: #ddd; z-index: 1; }
.top10-sterren-vol { color: #FFD700; overflow: hidden; z-index: 2; }

.top10-stem-form {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.top10-stem-btn {
    padding: 7px 13px;
    font-size: 15px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    color: #0073aa;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 40px;
    text-align: center;
}

.top10-stem-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ===========================
   MELDINGEN (na stem-actie)
   =========================== */
.top10-melding {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
}
.top10-melding--success { background: #dff0d8; border: 1px solid #3c763d; color: #3c763d; }
.top10-melding--warning { background: #fff4e5; border: 1px solid #f0c36d; color: #8a6d3b; }
.top10-melding--error   { background: #f2dede; border: 1px solid #ebccd1; color: #a94442; }

/* ===========================
   ZOEKFORMULIER
   =========================== */
.top10-zoekformulier {
    max-width: 800px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.top10-form-group {
    margin-bottom: 16px;
}

.top10-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.top10-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23555' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.top10-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.top10-select:disabled {
    background-color: #eee;
    cursor: not-allowed;
    opacity: 0.7;
}

.top10-fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.top10-legend {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 0 8px;
}

.top10-radio-label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}

/* Uitgebreid zoeken knop */
.toon-uitgebreid-zoeken-knop {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 450px;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    margin-bottom: 16px;
}

.toon-uitgebreid-zoeken-knop:hover {
    background: #005a87;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.toon-uitgebreid-zoeken-knop:active {
    transform: translateY(1px);
}

/* Zoek-knop */
.zoek-mijn-droneknop,
.top10-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 450px;
    transition: background 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    min-width: 140px;
}

.zoek-mijn-droneknop:hover,
.top10-button:hover { background: #005bb5; }

.top10-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.3);
}

/* ===========================
   RESULTATENLIJST
   =========================== */
.top10-resultaten-lijst {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top10-resultaat-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 16px 16px 54px; /* ruimte voor badge */
    margin-bottom: 16px;
    border-radius: 8px;
    border-bottom: 1px solid #e8e8e8;
}

/* ===========================
   NUMMERING — Optie A
   Goud / zilver / brons / blauw
   =========================== */
.ranking-badge {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0073e6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.ranking-badge--1 { background: #c8960c; } /* Goud  */
.ranking-badge--2 { background: #8a8a8a; } /* Zilver */
.ranking-badge--3 { background: #a0522d; } /* Brons  */

/* ===========================
   THUMBNAIL
   =========================== */
.top10-thumbnail {
    width: 250px;
    height: 215px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.top10-thumbnail img,
img.top10-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.top10-geen-foto {
    width: 250px;
    height: 215px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    font-style: italic;
    flex-shrink: 0;
}

/* ===========================
   TEKSTBLOK
   =========================== */
.top10-tekst {
    flex: 1;
    min-width: 0;
}

.top10-tekst h4 {
    margin: 0 0 6px;
    font-size: 1.05em;
    line-height: 1.3;
}

.top10-tekst h4 a {
    color: #0073aa;
    text-decoration: none;
}

.top10-tekst h4 a:hover {
    text-decoration: underline;
}

.top10-excerpt {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.5;
}

.top10-score {
    font-size: 0.9em;
    color: #555;
    margin: 4px 0 0;
}

/* Top 10 badge in "alle resultaten" */
.top10-badge-top10 {
    display: inline-block;
    background: #ffd700;
    color: #7a5c00;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

/* Scheider */
.top10-scheider {
    border: none;
    border-top: 3px solid #444;
    margin: 40px 0;
}

/* Totaal-stemmen teller */
.top10-totaal-stemmen {
    font-size: 1em;
    color: #333;
    margin: 8px 0;
}

/* ===========================
   MOBIEL
   =========================== */
@media (max-width: 768px) {
    .top10-resultaat-item {
        display: block;
        padding-left: 0;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .ranking-badge {
        position: static;
        display: inline-flex;
        margin: 0 0 10px;
    }

    .top10-thumbnail,
    .top10-geen-foto,
    img.top10-thumbnail {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
        margin: 0 0 12px !important;
        border-radius: 6px !important;
    }

    .top10-thumbnail img {
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
        object-fit: cover !important;
    }

    .top10-tekst {
        display: block;
        width: 100%;
    }

    .top10-stem-btn {
        flex: 1 1 calc(20% - 6px);
        min-width: 36px;
    }

    .zoek-mijn-droneknop,
    .toon-uitgebreid-zoeken-knop,
    .top10-button {
        max-width: 100%;
    }
}
