/* ====================== */
/* Spin Wheel Main Styles */
/* ====================== */

#spinwheel-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Wheel Container */
#spinwheel {
    position: relative;
    margin: 0 auto;
    width: 400px;
    height: 400px;
}

/* Wheel Canvas */
#wheelCanvas {
    display: block;
    margin: 0 auto;
    transition: transform 0.1s ease-out;
    position: relative;
    z-index: 1;
}

/* Pointer/Triangle Indicator */
.wheel-pointer {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(10px, -50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 30px solid #c0392b;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

/* Spin Button */
#spinwheel-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

div#spin-button-wrapper {
    z-index: 9999;
    position: relative;
}

#spinwheel-button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

#spinwheel-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Results Container */
#spinwheel-result {
    min-height: 60px;
    margin-top: 20px;
    font-size: 18px;
}

/* Result Messages */
.result-message {
    padding: 15px;
    border-radius: 5px;
    margin: 15px auto;
    max-width: 80%;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s;
}

/* Win Message */
.result-message.congratulations {
    background: #2ecc71;
    color: white;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* No Win Message */
.result-message.try-again {
    background: #e74c3c;
    color: white;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Loading State */
.result-message.loading {
    color: #7f8c8d;
    background: transparent;
    box-shadow: none;
}

/* Error State */
.result-message.error {
    background: #e74c3c;
    color: white;
}

/* Login Notice */
.spinwheel-notice {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    text-align: center;
    margin: 20px auto;
    max-width: 80%;
}

/* ============= */
/* Animations */
/* ============= */

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes bounce {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}


/* Notice */

.spinwheel-banner-box {
    background: #eafaf1;
    border: 2px solid #2ecc71;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 16px;
    color: #14532d;
    font-weight: 500;
    line-height: 1.6;
}

.spinwheel-banner-box strong {
    color: #27ae60;
}

.spinwheel-thankyou-wrap {
    margin-bottom: 25px;
    text-align: center;
}

.spinwheel-thankyou-button {
    background-color: #00ae21;
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.spinwheel-thankyou-button:hover {
    background-color: #27ae60;
}
