/* WC Roulette Frontend Styles */

:root {
    --wcr-primary: #00bcd4;
    --wcr-dark: #0d1b2a;
    --wcr-darker: #06121d;
    --wcr-glow: #ffa726;
    --wcr-success: #4caf50;
    --wcr-error: #f44336;
    --wcr-text: #ffffff;
    --wcr-text-muted: #b0bec5;
}

.wcr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, var(--wcr-darker) 0%, var(--wcr-dark) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
}

/* Header */
.wcr-header {
    text-align: center;
    margin-bottom: 30px;
}

.wcr-points-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 188, 212, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid var(--wcr-primary);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.wcr-points-icon {
    font-size: 24px;
}

.wcr-points-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--wcr-primary);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.wcr-points-label {
    font-size: 18px;
    color: var(--wcr-text-muted);
}

/* Wheel Section */
.wcr-wheel-section {
    text-align: center;
    margin: 40px 0;
}

.wcr-title {
    color: var(--wcr-primary);
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.wcr-wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas Wheel */
#wcrCanvas {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 0 30px rgba(255, 167, 38, 0.4));
}

/* Wheel Center Button */
/* Spin Button Container Below Wheel */
.wcr-spin-button-container {
    text-align: center;
    margin: 30px 0;
}

.wcr-spin-btn {
    min-width: 200px;
    padding: 20px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--wcr-primary) 0%, #0097a7 100%);
    border: 3px solid var(--wcr-glow);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 167, 38, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
}

.wcr-spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 167, 38, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.wcr-spin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.wcr-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #555;
    border-color: #777;
    box-shadow: none;
}

.wcr-spin-icon {
    font-size: 32px;
}

.wcr-spin-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wcr-spin-cost {
    font-size: 16px;
    font-weight: 600;
    color: var(--wcr-glow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Wheel Pointer */
.wcr-wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--wcr-glow);
    filter: drop-shadow(0 0 10px rgba(255, 167, 38, 0.8));
    z-index: 5;
}

/* Messages */
.wcr-message {
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
}

.wcr-message.wcr-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid var(--wcr-error);
    color: var(--wcr-error);
}

.wcr-message.wcr-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--wcr-success);
    color: var(--wcr-success);
}

/* History Section */
.wcr-history-section {
    margin: 50px 0;
}

.wcr-section-title {
    color: var(--wcr-primary);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.wcr-history-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.wcr-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.wcr-history-table th {
    background: rgba(0, 188, 212, 0.3);
    color: var(--wcr-text);
    padding: 15px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid var(--wcr-primary);
}

.wcr-history-table td {
    padding: 15px;
    text-align: center;
    color: var(--wcr-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wcr-history-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wcr-history-table tr:last-child td {
    border-bottom: none;
}

.wcr-no-data {
    padding: 40px !important;
    color: var(--wcr-text-muted);
    font-style: italic;
}

.wcr-details-btn {
    background: var(--wcr-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcr-details-btn:hover {
    background: #0097a7;
    transform: scale(1.05);
}

/* Buy Points Section */
.wcr-buy-points {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 15px;
    border: 2px dashed var(--wcr-primary);
}

.wcr-buy-points h3 {
    color: var(--wcr-primary);
    font-size: 24px;
    margin-bottom: 15px;
}

.wcr-buy-points p {
    color: var(--wcr-text-muted);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Buttons */
.wcr-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.wcr-btn-primary {
    background: linear-gradient(135deg, var(--wcr-primary) 0%, #0097a7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.wcr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
}

/* Prize Modal */
.wcr-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.wcr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wcr-modal-content {
    background: linear-gradient(135deg, var(--wcr-darker) 0%, var(--wcr-dark) 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--wcr-primary);
    animation: slideUp 0.4s ease;
}

.wcr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--wcr-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.wcr-modal-close:hover {
    color: var(--wcr-error);
}

.wcr-modal-body {
    text-align: center;
}

.wcr-prize-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

.wcr-modal-title {
    color: var(--wcr-primary);
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.wcr-prize-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--wcr-glow);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 167, 38, 0.5);
}

.wcr-prize-desc {
    color: var(--wcr-text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Coupon Code Display */
.wcr-coupon-code {
    background: rgba(0, 188, 212, 0.2);
    border: 2px solid var(--wcr-primary);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.wcr-coupon-label {
    color: var(--wcr-text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.wcr-coupon-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--wcr-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    word-break: break-all;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.wcr-copy-coupon {
    background: var(--wcr-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.wcr-copy-coupon:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
}

.wcr-copy-coupon:active {
    transform: translateY(0);
}

.wcr-modal-close-btn {
    margin-top: 20px;
}

/* Login Required */
.wcr-login-required {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.wcr-login-required h3 {
    color: var(--wcr-primary);
    margin-bottom: 15px;
}

.wcr-login-required p {
    color: var(--wcr-text-muted);
    margin-bottom: 25px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Spinning animation */
.wcr-spinning #wcrCanvas {
    animation: spin 0.2s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .wcr-container {
        padding: 15px;
    }

    .wcr-wheel-container {
        width: 350px;
        height: 350px;
    }

    #wcrCanvas {
        width: 350px !important;
        height: 350px !important;
    }

    .wcr-spin-btn {
        min-width: 180px;
        padding: 15px 30px;
    }

    .wcr-spin-icon {
        font-size: 28px;
    }

    .wcr-spin-text {
        font-size: 18px;
    }

    .wcr-spin-cost {
        font-size: 14px;
    }

    .wcr-points-value {
        font-size: 24px;
    }

    .wcr-history-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .wcr-wheel-container {
        width: 350px;
        height: 350px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #wcrCanvas {
        width: 350px !important;
        height: 350px !important;
    }

    .wcr-spin-btn {
        min-width: 160px;
        padding: 12px 25px;
    }

    .wcr-spin-icon {
        font-size: 24px;
    }

    .wcr-spin-text {
        font-size: 16px;
    }

    .wcr-spin-cost {
        font-size: 13px;
    }
}
}

.wcr-spin-cost {
    font-size: 14px;
}
}