/* Lucky Wheel Pro - Frontend Styles */

.lwp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lwpFadeIn 0.3s ease-in-out;
}

@keyframes lwpFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lwp-modal-container {
    position: relative;
    background: var(--lwp-bg-color, #1e1e1e);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lwpSlideUp 0.4s ease-out;
}

@keyframes lwpSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lwp-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--lwp-text-color, #fff);
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.lwp-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lwp-modal-content {
    display: flex;
    padding: 40px;
    gap: 40px;
}

@media (max-width: 768px) {
    .lwp-modal-content {
        flex-direction: column;
        padding: 30px 20px;
    }
}

.lwp-wheel-section {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lwp-wheel-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.lwp-wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff4444;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 5;
}

.lwp-spin-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--lwp-wheel-center-bg-color, #333333);
    border: 2px solid #fff;
    color: var(--lwp-wheel-center-color, #ffffff);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.lwp-spin-center-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lwp-spin-center-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lwp-spin-icon {
    display: block;
    line-height: 1.3;
}

.lwp-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--lwp-text-color, #fff);
}

.lwp-popup-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.lwp-popup-subtitle {
    font-size: 20px;
    margin: 0 0 20px 0;
    font-weight: 500;
    text-align: center;
}

.lwp-popup-description {
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
}

#lwp-spin-form {
    margin-bottom: 20px;
}

#lwp-email-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--lwp-text-color, #fff);
    margin-bottom: 15px;
    transition: all 0.3s;
}

#lwp-email-input:focus {
    outline: none;
    border-color: var(--lwp-button-color, #9edc3f);
    background: rgba(255, 255, 255, 0.15);
}

#lwp-email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.lwp-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--lwp-button-color, #9edc3f);
    color: var(--lwp-button-text-color, #fff);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lwp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.lwp-privacy-note {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.5;
    margin: 15px 0 0 0;
}

#lwp-result-section,
#lwp-error-section {
    animation: lwpFadeIn 0.4s ease-in-out;
}

.lwp-success-content {
    text-align: center;
}

#lwp-result-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #4caf50;
    font-weight: bold;
}

#lwp-result-message {
    font-size: 18px;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.lwp-coupon-code-display {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#lwp-coupon-display {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--lwp-button-color, #9edc3f);
    border-radius: 10px;
    color: var(--lwp-text-color, #fff);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}

.lwp-copy-btn {
    padding: 15px 25px;
    background: var(--lwp-button-color, #9edc3f);
    color: var(--lwp-button-text-color, #fff);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.lwp-copy-btn:hover {
    transform: translateY(-2px);
}

.lwp-error-content {
    text-align: center;
}

#lwp-error-message {
    font-size: 16px;
    color: var(--lwp-text-color, #fff);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

/* Wheel Spinning Animation */
.lwp-wheel-spinning {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Responsive */
@media (max-width: 768px) {
    .lwp-popup-title {
        font-size: 24px;
    }
    
    .lwp-popup-subtitle {
        font-size: 16px;
    }
    
    #lwp-wheel-canvas {
        width: 300px;
        height: 300px;
    }
    
    .lwp-spin-center-btn {
        width: 60px;
        height: 60px;
        font-size: 8px;
    }
}

/* Loading spinner */
.lwp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: lwpSpin 0.8s linear infinite;
}

@keyframes lwpSpin {
    to {
        transform: rotate(360deg);
    }
}
