/* ============================================================
   wayayo_reactie.css
   Styling voor het reactie- en stemgedeelte onder elk artikel.
   ============================================================ */

.wayayo-reactie-blok {
    margin-top: 14px;
    padding: 12px 0 0 0;
    border-top: 1px solid #e5e5e5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: #333;
    clear: both;
}

/* ============================================================
   STEMKNOppen
   ============================================================ */

.stem-rij {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* ← deze regel toevoegen */
    gap: 8px;
    margin-bottom: 10px;
}

.stem-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f6f7;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    line-height: 1.2;
    white-space: nowrap;
    user-select: none;
}

.stem-btn:hover {
    background: #e9ebee;
    border-color: #b9bdc4;
}

.stem-btn:active {
    transform: scale(0.97);
}

.stem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stem-btn.al-gestemd {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.stem-btn .tel {
    font-weight: bold;
    margin-left: 4px;
    color: #111;
}

.stem-btn.al-gestemd .tel {
    color: #065f46;
}

/* ============================================================
   REACTIES — toggle-knop
   ============================================================ */

.reactie-sectie {
    margin-top: 6px;
    text-align: center;
}

.reactie-toggle {
    background: none;
    border: none;
    color: #2563eb;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: none;
}

.reactie-toggle:hover {
    text-decoration: underline;
}

.reactie-toggle:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
    border-radius: 3px;
}

.reactie-aantal {
    font-weight: bold;
}

/* ============================================================
   REACTIES — inhoud (lijst + formulier)
   ============================================================ */

.reactie-inhoud {
    margin-top: 10px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* ---- Lijst met bestaande reacties ---- */

.reactie-lijst {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.reactie-lijst em {
    color: #777;
    font-style: italic;
}

.reactie-item {
    border-left: 3px solid #d1d5db;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.reactie-item:last-child {
    margin-bottom: 0;
}

.reactie-kop {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.3;
}

.reactie-kop strong {
    color: #111;
    font-weight: bold;
}

.reactie-kop small {
    color: #888;
    font-size: 0.78rem;
}

.reactie-tekst {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #222;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---- Formulier ---- */

.reactie-form {
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

.reactie-form input[type="text"],
.reactie-form input[type="email"],
.reactie-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #222;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.reactie-form input[type="text"]:focus,
.reactie-form input[type="email"]:focus,
.reactie-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.reactie-form textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.4;
}

.reactie-form button[type="submit"] {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.reactie-form button[type="submit"]:hover {
    background: #1d4ed8;
}

.reactie-form button[type="submit"]:disabled {
    background: #93b4f0;
    cursor: not-allowed;
}

.reactie-melding {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b91c1c;
    min-height: 1.2em;
}

.reactie-melding.ok {
    color: #065f46;
    font-weight: 500;
}

/* ============================================================
   MOBIEL — kleinere knoppen, betere aanraakbaarheid
   ============================================================ */

@media (max-width: 600px) {

    .stem-rij {
        gap: 6px;
    }

    .stem-btn {
        font-size: 0.78rem;
        padding: 6px 10px;
        border-radius: 16px;
    }

    .stem-btn .tel {
        margin-left: 2px;
    }

    .reactie-inhoud {
        padding: 10px 8px;
    }

    .reactie-item {
        padding: 6px 8px;
    }

    .reactie-toggle {
        font-size: 0.88rem;
    }

    .reactie-form button[type="submit"] {
        width: 100%;
        padding: 11px;
    }
}