/* Sorteio Comentários do Youtube - Frontend Styles */
#lottery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.lottery-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.lottery-header h1 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.lottery-prize-box {
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.prize-label {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.prize-value {
    font-size: 2em;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-gift-icon {
    font-size: 1em;
    margin-top: 20px;
}

.lottery-gift-icon h4 {
    margin: 0;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.8;
}

.lottery-gift-icon h4 strong {
    display: block;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffd700;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.lottery-info {
    text-align: center;
    margin-bottom: 30px;
}

#participants-count {
    font-size: 1.2em;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.lottery-button {
    background: linear-gradient(45deg, #a855f7, #7c3aed);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.lottery-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #7c3aed, #6d28d9);
}

.lottery-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.participant-card {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.participant-card.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    transform: scale(1.05);
    border: 2px solid #fff;
    box-shadow: 0 5px 20px rgba(255,215,0,0.5);
    font-weight: bold;
}

.winner-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.winner-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: winner-appear 0.5s ease;
}

@keyframes winner-appear {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.winner-label {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.winner-name {
    font-size: 24px;
    font-weight: black;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.winner-congrats {
    font-size: 1.2em;
    margin-top: 15px;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti::before,
.confetti::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #ffd700;
    animation: confetti-fall 3s linear infinite;
}

.confetti::before {
    left: 20%;
    animation-delay: 0s;
    background: #a855f7;
}

.confetti::after {
    left: 80%;
    animation-delay: 0.5s;
    background: #4ecdc4;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    #lottery-container {
        margin: 10px;
        padding: 15px;
    }
    
    .lottery-header h1 {
        font-size: 1.8em;
        text-align: center;
    }
    
    .lottery-prize-box {
        padding: 15px;
        margin: 15px auto;
    }
    
    .prize-label {
        font-size: 1.1em;
    }
    
    .prize-value {
        font-size: 1.5em;
        min-height: 40px;
    }
    
    .lottery-gift-icon h4 {
        font-size: 0.85em;
        padding: 15px;
        line-height: 1.6;
    }
    
    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .winner-text {
        margin: 20px;
        padding: 30px;
    }
}