/* WooCommerce Spin & Win Plugin Styles */

/* Container and Modal */
.wc-spin-win-container {
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wc-spin-win-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in;
}

.wc-spin-win-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.wc-spin-win-content {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

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

.wc-spin-win-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.wc-spin-win-close:hover {
    color: #333;
}

/* Header */
.wc-spin-win-header {
    text-align: center;
    margin-bottom: 20px;
}

.wc-spin-win-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

.wc-spin-win-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Wheel Wrapper */
.wc-spin-win-wheel-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#spinWheelCanvas {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

.wc-spin-win-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #a56595;
    z-index: 10;
}

/* Controls */
.wc-spin-win-controls {
    text-align: center;
    margin-bottom: 30px;
}

.wc-spin-win-button {
    background-color: #a56595;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(165, 101, 149, 0.3);
}

.wc-spin-win-button:hover:not(:disabled) {
    background-color: #8b4a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 101, 149, 0.4);
}

.wc-spin-win-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.wc-spin-win-timer {
    margin: 15px 0 0 0;
    font-size: 14px;
    color: #666;
}

#timerDisplay {
    font-weight: 600;
    color: #a56595;
}

/* Result Box */
.wc-spin-win-result {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.wc-spin-win-result h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.wc-spin-win-prize-label {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #a56595;
}

.wc-spin-win-coupon-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px dashed #a56595;
}

.wc-spin-win-coupon-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.wc-spin-win-coupon-code {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    color: #a56595;
    letter-spacing: 2px;
    margin-bottom: 10px;
    word-break: break-all;
}

.wc-spin-win-copy-btn {
    background: #a56595;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.wc-spin-win-copy-btn:hover {
    background: #8b4a7a;
}

.wc-spin-win-checkout-btn {
    display: inline-block;
    background-color: #a56595;
    color: white !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wc-spin-win-checkout-btn:hover {
    background-color: #8b4a7a;
    text-decoration: none;
}

/* Error Box */
.wc-spin-win-error {
    background: #fee;
    border-left: 4px solid #c33;
    padding: 15px;
    border-radius: 5px;
    color: #c33;
}

.wc-spin-win-error p {
    margin: 0;
}

/* Trigger Button */
.wc-spin-win-trigger {
    background-color: #a56595;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(165, 101, 149, 0.3);
    margin: 20px 0;
}

.wc-spin-win-trigger:hover {
    background-color: #8b4a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 101, 149, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
    .wc-spin-win-content {
        padding: 20px;
    }

    .wc-spin-win-header h2 {
        font-size: 24px;
    }

    .wc-spin-win-wheel-wrapper {
        width: 300px;
        height: 300px;
    }

    #spinWheelCanvas {
        width: 300px;
        height: 300px;
    }

    .wc-spin-win-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}
