/**
 * Estilos para a Roleta do Amor
 */

.roleta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
}

.roleta {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
}

.roleta canvas {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.roleta-indicador {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background-image: url('/images/ponteiro.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 10;
    pointer-events: none;
}

.girar-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: #ff4081;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.girar-button:hover {
    background-color: #f50057;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Modal de resultado */
.resultado-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.resultado-conteudo-modal {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: aparecer 0.5s ease;
}

.resultado-header {
    padding: 1.5rem;
    background-color: #ff4081;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
}

.resultado-subtitulo {
    display: block;
    font-size: 1rem;
    font-style: italic;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
}

.resultado-conteudo {
    padding: 2rem;
    font-size: 1.2rem;
    text-align: center;
    color: #333;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.fechar-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    z-index: 10;
}

/* Animações */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .roleta {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
    
    .resultado-conteudo-modal {
        width: 95%;
    }
    
    .resultado-header {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .resultado-conteudo {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos específicos para mensagens de login e status */
.login-warning {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #fff3f8;
    border-left: 4px solid #ff6b9e;
    border-radius: 4px;
    font-size: 0.9rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.user-status {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f0fff0;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
    font-size: 0.9rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.user-status p {
    color: #2e7d32;
    font-weight: 500;
}

/* Estilos para o wrapper e animações de fade */
.roleta-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Painel de personalização */
.personalizacao-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem 1.5rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}

.personalizacao-container.ativo {
    opacity: 1;
    visibility: visible;
}

.roleta-container {
    transition: opacity 0.3s ease;
}

.roleta-container.oculto {
    opacity: 0;
    pointer-events: none;
}

.personalizacao-header {
    position: relative;
    display: block;
    margin-bottom: 2.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    font-family: 'Bebas Neue', cursive !important;
    text-align: center;
}

.personalizacao-header h3 {
    color: #FF4D8D;
    font-family: 'Bebas Neue', cursive !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.fechar-personalizacao {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.personalizacao-intro {
    text-align: center;
    margin-bottom: 2.1rem;
    font-family: 'Poppins', sans-serif !important;
}
.personalizacao-intro .personalizacao-titulo {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}
.personalizacao-intro p {
    color: #555;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0 auto 0.4rem auto;
    max-width: 520px;
    line-height: 1.5;
}

/* Formulário de personalização */
.gold-slots-info {
    background-color: #FFF9E6;
    border-left: 4px solid #F9BF1A;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.gold-slots-info p {
    color: #8B6E00;
    margin: 0;
}

.gold-count {
    font-weight: bold;
    color: #F9BF1A;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.form-group textarea:focus {
    border-color: #F9BF1A;
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 191, 26, 0.2);
}

.caracteres-restantes {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    text-align: right;
}

.gold-submit-button {
    background-color: #F9BF1A;
    color: #271C1D;
    border: none;
    border-radius: 50px;
    padding: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.gold-submit-button:hover {
    background-color: #e9af0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(249, 191, 26, 0.3);
}

.gold-submit-button:disabled {
    background-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Lista de campos dourados */
.gold-slots-list {
    margin-top: 2rem;
}

.gold-slots-list h4 {
    color: #FF4D8D;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.5px;
}

.gold-slots-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gold-slots-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    background-color: #FFF9E6;
    border-radius: 8px;
    border-left: 3px solid #F9BF1A;
}

.gold-slot-text {
    flex: 1;
    font-size: 0.9rem;
}

.remove-gold-slot {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 10px;
    line-height: 1;
}

.empty-slots {
    color: #888;
    font-style: italic;
    text-align: center;
    border-left: none !important;
    background-color: #f9f9f9 !important;
}

/* Comprar mais campos dourados */
.buy-gold-slots {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.buy-gold-slots p {
    margin-bottom: 1rem;
    color: #666;
}

.gold-buy-button {
    background-color: #FF4D8D;
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsividade para o painel de personalização */
@media (max-width: 768px) {
    .personalizacao-container {
        padding: 1.5rem;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }
    
    .personalizacao-header h3 {
        font-size: 1.3rem;
    }
    
    .gold-slots-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gold-slot-text {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .remove-gold-slot {
        align-self: flex-end;
    }
}

.roleta-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    color: #681739;
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.roleta-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.roleta-explanation {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto 15px;
    line-height: 1.4;
}

.prize-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    color: #681739;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ticket-title {
    /* Mantemos esta como fonte do sistema já que não queremos Montserrat */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #681739;
    text-align: center;
}

.back-to-roleta-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F9BF1A;
    color: #271C1D;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 25px;
    transition: all 0.3s;
}

.premium-heading {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #681739;
    text-transform: uppercase;
}

/* Personalização de slots - NOVO VISUAL PREMIUM */
.personalizacao-categoria {
    margin-bottom: 2.2rem;
    padding-left: 0.8rem;
    border-left: 6px solid #eee;
}
.personalizacao-categoria-titulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    color: #271C1D;
}

/* Cores de categoria (exemplo, ajuste conforme necessário) */
.categoria-rosa { border-left-color: #A72F7B !important; }
.categoria-preto { border-left-color: #222 !important; }
.categoria-dourado { border-left-color: #F9BF1A !important; }
.categoria-roxo { border-left-color: #6C3483 !important; }
.categoria-vermelho { border-left-color: #A41623 !important; }

.personalizacao-slot {
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 1.2rem;
    padding: 1.1rem 1rem 0.7rem 1rem;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    box-shadow: 0 2px 8px #271c1d0a;
    font-family: 'Poppins', sans-serif !important;
}
.slot-categoria-rosa { border-color: #A72F7B; }
.slot-categoria-preto { border-color: #222; }
.slot-categoria-dourado { border-color: #F9BF1A; }
.slot-categoria-roxo { border-color: #6C3483; }
.slot-categoria-vermelho { border-color: #A41623; }

.slot-dourado {
    border-color: #F9BF1A !important;
    background: linear-gradient(90deg,#fffbe6 60%,#f9bf1a22 100%) !important;
    box-shadow: 0 2px 16px #f9bf1a33;
}
.slot-dourado .personalizacao-slot-label {
    color: #F9BF1A !important;
    font-weight: 700;
}
.slot-dourado .personalizacao-slot-textarea {
    border-color: #F9BF1A !important;
    background: #fffbe6 !important;
    color: #A41623 !important;
}

.slot-original .personalizacao-slot-label {
    color: #271C1D;
}

.personalizacao-slot-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.personalizacao-slot-textarea {
    width: 100%;
    min-height: 32px;
    max-height: 70px;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: #271C1D;
    background: #fff;
    resize: none;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 0.3rem;
}
.personalizacao-slot-textarea:focus {
    outline: none;
    border-color: #F9BF1A;
    background: #fffbe6;
}

.personalizacao-char-count {
    font-size: 0.9rem;
    color: #888;
    text-align: right;
    margin-bottom: 0.2rem;
}

.personalizacao-char-count.char-count-warning {
    color: #ff4d4d;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.personalizacao-btn-reset {
    display: inline-block;
    background: #F9BF1A;
    color: #271C1D;
    border: none;
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.3rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Poppins', sans-serif !important;
}
.personalizacao-btn-reset:hover {
    background: #e5ad15;
    color: #fff;
}

.personalizacao-btn-salvar {
    display: inline-block;
    background: #2ecc40;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.3rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Poppins', sans-serif !important;
}
.personalizacao-btn-salvar:hover:not(:disabled) {
    background: #27ae38;
    color: #fff;
}
.personalizacao-btn-salvar:disabled {
    background: #b2eac2;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .personalizacao-categoria {
        padding-left: 0.3rem;
    }
    .personalizacao-slot {
        padding: 0.7rem 0.5rem 0.5rem 0.5rem;
    }
    .personalizacao-slot-textarea {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
}

.slots-input-pequeno {
    width: 48px;
    min-width: 0;
    max-width: 100px;
    padding-left: 0.3em;
    padding-right: 0.3em;
}

.slots-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.slots-contador {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #271C1D;
    font-weight: 500;
    font-family: 'Poppins', sans-serif !important;
}

.slots-compra-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif !important;
}

.slots-compra-form label {
    font-size: 0.95rem;
    color: #271C1D;
    font-weight: 500;
    margin-right: 4px;
}

.slots-input.slots-input-pequeno {
    width: 48px;
    height: 38px;
    font-size: 0.95rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 0 8px;
    text-align: center;
    margin-right: 4px;
    background: #fff;
    color: #271C1D;
    box-shadow: 0 1px 4px #271c1d11;
    transition: border-color 0.2s;
}

.slots-input.slots-input-pequeno:focus {
    border-color: #F9BF1A;
    outline: none;
}

#btn-comprar-slots {
    background: #A41623;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #271c1d11;
    font-family: 'Poppins', sans-serif !important;
    margin-left: 2px;
}

#btn-comprar-slots:hover {
    background: #F9BF1A;
    color: #271C1D;
    box-shadow: 0 4px 12px #f9bf1a33;
}

@media (max-width: 600px) {
    .slots-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .slots-compra-form {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
    }
    .slots-input.slots-input-pequeno {
        width: 38px;
        font-size: 1rem;
        height: 32px;
    }
    #btn-comprar-slots {
        font-size: 0.95rem;
        padding: 8px 14px;
    }
}

/* Card de slots disponíveis */
.slots-info-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 #271c1d13, 0 1.5px 6px #f9bf1a11;
    padding: 1.5rem 1rem 1rem 1rem;
    margin: 0 auto 2.2rem auto;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.95rem;
}
.slots-count-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: #F9BF1A;
    background: linear-gradient(135deg, #FFF3D6 0%, #FFE8A3 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    box-shadow: 0 4px 15px rgba(249, 191, 26, 0.18);
    text-shadow: 0 2px 8px #f9bf1a22;
}
.slots-label p {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.7rem 0;
    text-align: center;
}
.comprar-slots-button {
    background: #F9BF1A;
    color: #271C1D;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.08rem;
    font-weight: 700;
    margin-top: 0.7rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #f9bf1a22;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.comprar-slots-button:hover {
    background: #FFD54F;
    color: #A41623;
    box-shadow: 0 4px 16px #f9bf1a33;
}

@media (max-width: 600px) {
    .personalizacao-header h3 {
        font-size: 1.1rem;
    }
    .personalizacao-intro .personalizacao-titulo {
        font-size: 0.92rem;
    }
    .slots-info-section {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
        max-width: 98vw;
    }
    .slots-count-big {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    .comprar-slots-button {
        font-size: 0.98rem;
        padding: 10px 18px;
    }
}

.slots-contador-bloco {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
    text-align: center;
}

.slots-compra-form-bloco {
    margin-top: 0.2rem;
}

.roleta-section.personalizacao-ativa {
    padding-bottom: 1200px;
    transition: padding-bottom 0.3s;
}
@media (max-width: 900px) {
    .roleta-section.personalizacao-ativa {
        padding-bottom: 800px;
    }
}
@media (max-width: 600px) {
    .roleta-section.personalizacao-ativa {
        padding-bottom: 900px;
    }
} 