/* گردونه شانس - استایل‌های فرانت‌اند */

.customer-club-wheel-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    color: inherit;
    font-family: inherit;
}

.wheel-header {
    text-align: center;
    margin-bottom: 30px;
}

.wheel-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.user-points {
    background: #f8f9fa;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    border: 1px solid #e9ecef;
}

.wheel-game {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.wheel-canvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border: 3px solid #f8f9fa;
    overflow: hidden;
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 36px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.spin-button {
    margin-top: 24px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
    text-transform: none;
    letter-spacing: 0;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: #2980b9;
}

.spin-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.spin-button.spinning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.spin-text {
    display: block;
}

.spin-cost {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

.wheel-prizes {
    margin: 30px 0;
    text-align: center;
}

.wheel-prizes h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.prizes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.prize-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.prize-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prize-item h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.prize-item p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

.wheel-history {
    margin: 30px 0;
    text-align: center;
}

.wheel-history h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.spins-history {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.spin-history-item {
    background: #ffffff;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.spin-history-item .prize-name {
    font-weight: 600;
    color: #2c3e50;
}

.spin-history-item .spin-date {
    color: #6c757d;
    font-size: 12px;
}

.wheel-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.wheel-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.wheel-result h3 {
    margin: 0 0 15px 0;
    color: #27ae60;
    font-size: 24px;
}

.wheel-result p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.5;
}

.wheel-result .coupon-code {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.wheel-result button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.wheel-result button:hover {
    background: #2980b9;
}

/* انیمیشن چرخش */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wheel-canvas.spinning {
    animation: spin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .customer-club-wheel-container {
        margin: 10px;
        padding: 15px;
    }
    
    .wheel-canvas {
        width: 250px;
        height: 250px;
    }
    
    .prizes-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .wheel-header h3 {
        font-size: 24px;
    }
    
    .spin-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wheel-canvas {
        width: 200px;
        height: 200px;
    }
    
    .prizes-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .wheel-header h3 {
        font-size: 20px;
    }
}

/* اسکرول بار سفارشی */
.spins-history::-webkit-scrollbar {
    width: 6px;
}

.spins-history::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.spins-history::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

.spins-history::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}
