/**
 * Styles pour la Roue Quotidienne
 */

.membres-wheel-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.membres-wheel-title {
    text-align: center;
    color: white;
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.membres-wheel-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
}

/* Statistiques */
.membres-wheel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.membres-wheel-stat {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.membres-wheel-stat.cooldown {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.membres-wheel-stat .stat-label {
    display: block;
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 5px;
}

.membres-wheel-stat .stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #111827;
}

/* La roue */
.membres-wheel-game {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.membres-wheel-spinner {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 90vw;
    max-height: 90vw;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ef4444;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-svg.spinning {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.wheel-spin-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 5px solid white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.wheel-spin-button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.wheel-spin-button:active:not(:disabled) {
    transform: scale(0.95);
}

.wheel-spin-button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Segments de la roue */
.wheel-segment {
    stroke: white;
    stroke-width: 2;
    transition: opacity 0.3s;
}

.wheel-segment:hover {
    opacity: 0.8;
}

.wheel-segment-text {
    fill: white;
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Message de résultat */
.membres-wheel-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.membres-wheel-result.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.membres-wheel-result.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
}

.membres-wheel-result-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.membres-wheel-result-message {
    font-size: 1.2em;
    font-weight: bold;
    color: #111827;
}

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

/* Historique */
.membres-wheel-history {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.membres-wheel-history h3 {
    margin: 0 0 15px 0;
    color: #111827;
    font-size: 1.3em;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.history-icon {
    font-size: 1.8em;
    text-align: center;
}

.history-label {
    font-weight: 600;
    color: #374151;
}

.history-date {
    font-size: 0.85em;
    color: #6b7280;
}

/* Animation du compte à rebours */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.membres-wheel-stat.cooldown .stat-value {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .membres-wheel-container {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .membres-wheel-title {
        font-size: 1.8em;
    }
    
    .membres-wheel-wrapper {
        padding: 20px 15px;
    }
    
    .membres-wheel-spinner {
        width: 300px;
        height: 300px;
    }
    
    .wheel-spin-button {
        width: 90px;
        height: 90px;
        font-size: 1em;
    }
    
    .wheel-pointer {
        font-size: 30px;
        top: -15px;
    }
}

@media (max-width: 480px) {
    .membres-wheel-stats {
        grid-template-columns: 1fr;
    }
    
    .membres-wheel-spinner {
        width: 250px;
        height: 250px;
    }
    
    .wheel-spin-button {
        width: 80px;
        height: 80px;
        font-size: 0.9em;
    }
}
