/* ==========================================================================
   Dilema Radio - Spin or Bin Styling - DEFINITIEVE FIX VERSIE
   ========================================================================== */

/* Hoofdcontainer voor de hele module */
.drsb-voting-wrapper {
    background-color: #101010;
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 20px 25px;
    text-align: center;
    font-family: inherit;
    margin: 0 auto 30px auto;
    max-width: 600px;
    position: relative; 
    overflow: hidden; 
}

/* Algemene titels en paragrafen */
.drsb-voting-wrapper h3, .drsb-voting-wrapper p {
    position: relative;
    z-index: 2; /* Zorgt dat ALLE tekst boven de animatie staat */
}
.drsb-voting-wrapper h3 { color: #ffffff; font-size: 22px; margin-top: 0; margin-bottom: 5px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }
.drsb-voting-wrapper p { color: #888; font-size: 14px; margin-top: 0; margin-bottom: 20px; }

/* --- Actieve Voting Staat --- */
.drsb-progress-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background-color: #333; }
.drsb-progress-spin { background: linear-gradient(90deg, #007bff, #5a00ff); transition: width 0.4s ease; }
.drsb-progress-bin { background-color: #444; transition: width 0.4s ease; }
.drsb-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 600; color: #ccc; }
.drsb-buttons { margin-top: 20px; }
.drsb-button { background-color: #007bff; color: #ffffff; border: none; padding: 12px 28px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s ease-in-out; border-radius: 5px; margin: 5px; text-transform: uppercase; letter-spacing: 1px; }
.drsb-button:hover { transform: translateY(-2px); opacity: 0.9; }
.drsb-button.drsb-button-bin { background-color: #333; color: #aaa; }
.drsb-button.drsb-button-bin:hover { background-color: #444; }
.drsb-button:disabled { opacity: 0.5; cursor: not-allowed; transform: translateY(0); }
.drsb-message { font-size: 13px; color: #00ff7f; margin-top: 15px; height: 18px; }
.drsb-closing-info { font-size: 0.9em; color: #aaa; margin-top: 15px; text-align: center; }
.drsb-closing-info strong { color: #eee; }

/* --- Gesloten Voting Staat (Verdict) --- */
.drsb-verdict-content {
    position: relative;
    z-index: 2; /* Extra zekerheid: de tekst-content staat BOVEN de animatie */
}
.drsb-final-result {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 10px 0 5px 0;
    padding: 10px;
    border: none;
}
.drsb-community-says {
    font-size: 16px;
    color: #aaa;
    margin-top: 0;
}
.drsb-final-result .drsb-spin-text { color: #28a745; }
.drsb-final-result .drsb-bin-text { color: #dc3545; }

/* --- Animaties --- */
.drsb-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* Gebruik right en bottom voor robuustheid */
    bottom: 0; /* Gebruik right en bottom voor robuustheid */
    pointer-events: none;
    z-index: 1; /* LAAG 1: De animatie laag ligt ACHTER de tekst */
}

/* Bounce animatie */
.drsb-button.is-bouncing {
    animation: bounce 1s ease-in-out 3;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-8px); }
}

/* Confetti animatie */
.drsb-animation-overlay.confetti .confetto {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: fall-confetti 4s linear infinite;
}
@keyframes fall-confetti {
    0% { 
        transform: translateY(-50px) rotate(0deg); 
        opacity: 1;
    }
    100% { 
        /* Gebruik de --end-y variabele van de JavaScript! */
        transform: translateY(var(--end-y)) rotate(720deg); 
        opacity: 1;
    }
}

/* Rode kruizen animatie */
.drsb-animation-overlay.crosses .cross {
    position: absolute;
    opacity: 0;
    font-size: 24px;
    line-height: 1;
    color: #dc3545;
    animation: fall-cross 3s linear infinite;
}
@keyframes fall-cross {
    0% {
        transform: translateY(-50px) rotate(-45deg);
        opacity: 1;
    }
    100% {
        /* Gebruik de --end-y variabele van de JavaScript! */
        transform: translateY(var(--end-y)) rotate(45deg);
        opacity: 0;
    }
}