/* Frontend Styles for Vòng Quay May Mắn */

/* Floating Button */
.vqmm-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s ease;
    animation: vqmm-float 3s ease-in-out infinite;
}

.vqmm-floating-btn:hover {
    transform: scale(1.1);
}

.vqmm-floating-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes vqmm-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Modal */
.vqmm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: vqmm-fadeIn 0.3s;
}

.vqmm-modal-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 3% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: vqmm-slideIn 0.4s;
}

@keyframes vqmm-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.vqmm-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.vqmm-close:hover,
.vqmm-close:focus {
    transform: rotate(90deg);
}

.vqmm-title {
    text-align: center;
    color: #ffffff;
    font-size: 32px;
    margin: 0 0 30px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* Wheel Container */
.vqmm-wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    max-width: 100%;
}

/* Pointer/Arrow */
.vqmm-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #FFD700;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* Wheel Canvas */
#vqmm-wheel {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Center Button */
.vqmm-center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.vqmm-spin-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

.vqmm-spin-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.vqmm-spin-btn:active:not(:disabled) {
    transform: scale(0.95);
}

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

/* Result Popup */
.vqmm-result-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: vqmm-fadeIn 0.3s;
}

.vqmm-result-content {
    position: relative;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin: 15% auto;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: vqmm-bounceIn 0.6s;
}

@keyframes vqmm-bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vqmm-result-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.vqmm-result-close:hover {
    opacity: 0.7;
}

.vqmm-result-content h3 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.vqmm-result-content p {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 30px 0;
}

.vqmm-result-content p strong {
    display: block;
    font-size: 26px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.vqmm-result-ok {
    background-color: #ffffff;
    color: #f5576c;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vqmm-result-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.vqmm-result-ok:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vqmm-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .vqmm-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .vqmm-wheel-container {
        width: 350px;
        height: 350px;
    }
    
    .vqmm-spin-btn {
        width: 80px;
        height: 80px;
        font-size: 16px;
    }
    
    .vqmm-floating-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .vqmm-result-content {
        padding: 30px 20px;
    }
    
    .vqmm-result-content h3 {
        font-size: 24px;
    }
    
    .vqmm-result-content p {
        font-size: 18px;
    }
    
    .vqmm-result-content p strong {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .vqmm-wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .vqmm-spin-btn {
        width: 70px;
        height: 70px;
        font-size: 14px;
    }
    
    .vqmm-pointer {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 30px;
    }
}

