@import url('https://fonts.googleapis.com/css2?family=Honk&family=Momo+Trust+Display&display=swap');

.momo-trust-display-regular {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}

#canvas{
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: url(https://i.imgur.com/ATMqzDf.png) no-repeat;
    background-size: 100%;
    background-position: center;
    width: 85%;
    height: 85%;
    min-width: 250px;
    min-height: 250px;
    max-width: 340px;
    max-height: 340px;
}

/* Classe para rotacionar a imagem de fundo */
.roleta-fundo-ajustado {
    transform: rotate(10deg);
}

.roleta-container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90vw;
    height: 90vw;
    min-width: 400px;
    min-height: 400px;
    max-width: 500px;
    max-height: 500px;
    margin: 0 auto;
}

#roletaModal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    display: none;
}

#roletaModal[style*="display: block"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-content {
    box-shadow: none;
}

#roletaModalContent {
    background-color: transparent;
    max-width: 600px;
    text-align: center;
    position: relative;
    padding: 30px 30px 0px 30px;
}

#roletaModalContent h2 {
    margin-bottom: 20px;
}

.seta{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    font-size: clamp(30px, 6vw, 60px);
    color: #c49139;
    z-index: 10;
}

.modal-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 120%;
    pointer-events: none; /* Permite clicar através da borda */
    z-index: -1;
    max-width: 398px;
}

.modal-border img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rodar-btn{
    position: absolute;
    width: 20%;
    max-width: 145px;
    min-width: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s ease;
}

.rodar-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.rodar-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Media Queries para responsividade */
@media screen and (max-width: 768px) {
    .roleta-container {
        width: 95vw;
        height: 95vw;
        min-width: 300px;
        min-height: 300px;
        max-width: 300px;
        max-height: 300px;
    }
    
    .seta {
        font-size: clamp(25px, 7vw, 50px);
        top: 38%;
    }
    
    .rodar-btn {
        width: 35%;
        min-width: 70px;
        max-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .roleta-container {
        width: 98vw;
        height: 98vw;
        min-width: 350px;
        min-height: 350px;
        max-width: 500px;
        max-height: 500px;
    }
    
    .seta {
        font-size: clamp(20px, 8vw, 40px);
        top: 37%;
    }
    
    .rodar-btn {
        width: 25%;
        min-width: 60px;
        max-width: 100px;
    }
}

@media screen and (max-width: 1024px) {
    .roleta-container {
        width: 70vw;
        height: 70vw;
        min-height: unset!important;
        max-width: 500px;
        max-height: 500px;
    }
}

/* Estilos adicionais para funcionalidades da roleta */

.info-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.btn-info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Modal para histórico e cupons */
#modalResultado {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

#modalResultado .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

#modalResultado .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

#modalResultado .close:hover,
#modalResultado .close:focus {
    color: #000;
    text-decoration: none;
}

/* Histórico */
.historico-lista {
    max-height: 400px;
    overflow-y: auto;
}

.historico-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    margin: 5px 0;
    border-radius: 5px;
}

.historico-data {
    font-size: 12px;
    color: #666;
}

.historico-premio {
    font-weight: bold;
    color: #27ae60;
}

.historico-opcao {
    font-size: 12px;
    color: #666;
}

/* Cupons */
.cupons-lista {
    max-height: 400px;
    overflow-y: auto;
}

.cupom-item {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cupom-item.usado {
    background: #95a5a6;
    opacity: 0.7;
}

.cupom-codigo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.cupom-valor {
    font-size: 14px;
    margin-bottom: 5px;
}

.cupom-status {
    font-size: 12px;
    margin-bottom: 5px;
}

.cupom-expira {
    font-size: 11px;
    opacity: 0.8;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Estilo para o botão close da roleta */
.roleta-close-btn {
    position: absolute;
    top: -25px;
    right: -25px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #c49139;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #c49139;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.roleta-close-btn:hover {
    background: rgba(196, 145, 57, 0.9);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 145, 57, 0.4);
}

.roleta-close-btn:active {
    transform: scale(0.95);
}

.roleta-close-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsivo para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .roleta-close-btn {
        top: -20px;
        right: -20px;
        width: 50px;
        height: 50px;
    }
}

/* Responsivo para novos elementos */
/* ===== MODAL DE PRÊMIO DA ROLETA ===== */
#premioModal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000 !important;
}

#premioModal .bg-gradient-to-r {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
}

#premioModal .rounded-2xl {
    animation: modalSlideIn 0.3s ease-out;
}

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

@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
    }
    
    #modalResultado .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .historico-item {
        flex-direction: column;
        text-align: center;
    }
    
    #roletaModalContent {
        padding: 15px;
    }
    
    .roleta-close-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .roleta-close-btn svg {
        width: 20px;
        height: 20px;
    }
    
    #premioModal .rounded-2xl {
        margin: 2rem 1rem;
    }
}