/**
 * Proxmi — Funnies Styling
 * Bestand: /assets/css/funnies.css
 *
 * Stijlen voor:
 *   - .funnies-widget      (homepage top 3 blok)
 *   - .funnies-pagina      (volledige /funnies.php pagina)
 *   - .funnies-item        (één rij in de top 10)
 */

/* ============================================================
   HOMEPAGE WIDGET
   ============================================================ */

.funnies-widget {
    background: #fffdf0;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 24px 0;
}

.funnies-widget__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.funnies-widget__icoon {
    font-size: 22px;
    line-height: 1;
}

.funnies-widget__titel {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.funnies-widget__lijst {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnies-widget__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5e49a;
}

.funnies-widget__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.funnies-widget__item--oud {
    opacity: 0.75;
}

.funnies-widget__rang {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    min-width: 22px;
    padding-top: 2px;
}

.funnies-widget__inhoud {
    flex: 1;
    min-width: 0;
}

.funnies-widget__link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 4px;

    /* Afkappen op 2 regels */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.funnies-widget__link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.funnies-widget__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #999;
}

.funnies-widget__oud-label {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    color: #aaa;
}

.funnies-widget__meer {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #e65100;
    text-decoration: none;
    padding: 6px 0 2px;
    border-top: 1px solid #ffd54f;
}

.funnies-widget__meer:hover {
    text-decoration: underline;
}

/* ============================================================
   FUNNIES PAGINA — KOP
   ============================================================ */

.funnies-pagina {
    padding: 30px 0 60px;
}

.funnies-pagina__kop {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid #ffd54f;
}

.funnies-pagina__emoji {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
}

.funnies-pagina__hoofdtitel {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #222;
}

.funnies-pagina__subtitel {
    font-size: 15px;
    color: #555;
    margin: 0 0 12px 0;
}

.funnies-pagina__uitleg {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #888;
}

/* ============================================================
   FUNNIES PAGINA — LEEG
   ============================================================ */

.funnies-pagina__leeg {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.funnies-pagina__leeg-icoon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ============================================================
   FUNNIES ITEM (één rij in de top 10)
   ============================================================ */

.funnies-pagina__lijst {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.funnies-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.funnies-item:hover {
    background: #fafafa;
}

.funnies-item--top3 {
    background: #fffdf0;
    border-left: 3px solid #ffd54f;
    padding-left: 14px;
    margin-left: -17px;
}

.funnies-item--oud {
    opacity: 0.7;
}

/* Rangnummer */
.funnies-item__rang {
    font-size: 26px;
    min-width: 42px;
    text-align: center;
    line-height: 1;
}

.funnies-item__rang-nr {
    font-size: 18px;
    font-weight: 700;
    color: #bbb;
}

/* Inhoud */
.funnies-item__inhoud {
    flex: 1;
    min-width: 0;
}

.funnies-item__titel {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 6px;
}

.funnies-item__titel:hover {
    color: #c0392b;
    text-decoration: underline;
}

.funnies-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.funnies-item__oud-badge {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
    color: #bbb;
    border: 1px solid #e8e8e8;
}

/* Score blok (rechts) */
.funnies-item__score-blok {
    text-align: right;
    min-width: 70px;
}

.funnies-item__score-detail {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    white-space: nowrap;
}

.funnies-item__score-totaal {
    font-size: 22px;
    font-weight: 800;
    color: #ccc;
}

.funnies-item__score-totaal--positief {
    color: #e65100;
}

/* ============================================================
   PAGINA FOOTER
   ============================================================ */

.funnies-pagina__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
}

.funnies-pagina__refresh-hint {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    .funnies-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .funnies-item__rang {
        min-width: 32px;
        font-size: 22px;
    }

    .funnies-item__score-blok {
        min-width: auto;
        margin-left: auto;
    }

    .funnies-pagina__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .funnies-widget {
        padding: 14px;
    }
}
