/**
 * Frontend Styles - Lucky Draw
 */

.sp-lucky-draw-frontend {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.sp-draw-container {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sp-draw-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.sp-entry-count {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 15px;
    background: #f0f3ff;
    border-radius: 8px;
}

.sp-draw-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 18px 45px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sp-draw-btn .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.sp-draw-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.sp-draw-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sp-spinner {
    display: none;
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

.sp-spinner.active {
    display: block;
}

/* Winner Display */
.sp-winner-display {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    animation: zoomIn 0.6s ease;
}

.sp-winner-animation {
    margin-bottom: 20px;
}

.sp-winner-animation .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #ffd700;
    animation: bounce 1s infinite;
}

.sp-winner-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
}

.sp-winner-name {
    font-size: 42px;
    font-weight: 700;
    color: #ffd700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sp-winner-details {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 20px;
}

.sp-winner-details div {
    margin: 8px 0;
}

/* Notice */
.sp-draw-notice {
    margin-bottom: 20px;
}

.sp-draw-notice .notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
}

.sp-draw-notice .notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sp-draw-notice .notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .sp-draw-container {
        padding: 25px 20px;
    }

    .sp-draw-title {
        font-size: 24px;
    }

    .sp-draw-btn {
        padding: 15px 35px;
        font-size: 18px;
    }

    .sp-winner-name {
        font-size: 32px;
    }

    .sp-winner-animation .dashicons {
        font-size: 60px;
        width: 60px;
        height: 60px;
    }
}