/* Variáveis de cores - Adicionando modo dark */
:root {
  --primary-color: #03008A;
  --secondary-color: #4f54c0;
  --accent-color: #03008acc;
  --white-color: #fff;
  --text-color: #333;
  --light-text-color: #777;
  --bg-color: #f5f7ff;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 8px 20px rgba(3, 0, 138, 0.1);
  --transition: all 0.3s ease;
}

/* Modo dark */
[data-theme="dark"] {
  --primary-color: #6366f1;
  --secondary-color: #818cf8;
  --accent-color: #6366f1cc;
  --white-color: #fff;
  --text-color: #e5e7eb;
  --light-text-color: #9ca3af;
  --bg-color: #111827;
  --card-bg: #1f2937;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Wheel Styles - Atualizado */
.wheel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 10px var(--primary-color), 
                0 0 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotate(0deg);
    will-change: transform;
    background-color: #fff;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 12;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3),
                inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 13;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease, transform 0.05s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.spin-button.clicked {
    transform: translate(-50%, -50%) scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.4),
                inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.spin-button:disabled {
    background: var(--light-text-color);
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.wheel-arrow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 40px solid var(--primary-color);
    z-index: 11;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.wheel-arrow::after {
    position: absolute;
    top: -42px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    z-index: -1;
}

/* Info Sections Styles */
.wheel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.info-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.benefits-list {
    list-style-type: none;
}

.benefits-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-color);
    font-size: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: var(--primary-color);
    margin-top: 3px;
    min-width: 20px;
}

.benefits-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.user-tickets {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
}

.user-tickets i {
    color: inherit;
}

.prizes-info {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.prizes-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.prizes-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.prizes-list {
    list-style-type: none;
}

.prizes-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.prizes-list li:last-child {
    border-bottom: none;
}

.prize-color {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 12px;
    border: 3px solid var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-sections {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 500px) {
    .wheel-container {
        padding-bottom: 80px;
    }

    .wheel-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .wheel {
        box-shadow: 0 0 0 8px var(--primary-color), 0 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .wheel-center {
        width: 45px;
        height: 45px;
    }
    
    .spin-button {
        width: 75px;
        height: 75px;
        font-size: 14px;
    }
    
    .wheel-arrow {
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-top: 30px solid var(--primary-color);
        top: -20px;
    }
    
    .card {
        min-width: 280px;
        padding: 20px 15px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .benefits-list li, .prizes-list li {
        font-size: 14px;
    }
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.winner-animation {
    animation: pulse 0.5s ease infinite alternate;
}

/* Adicionado para melhorar a animação da roleta */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wheel-spinning {
    animation: spin 0.5s linear infinite;
}

/* Ajustes para o canvas */
#wheelCanvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}