/* styles.css lúdico e animado para jogo de Bingo */

@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3rem;
    color: #d63031;
    text-shadow: 2px 2px #ffeaa7;
    margin-bottom: 20px;
}

.section {
    margin-bottom: 40px;
    padding: 20px;
    background: #ffffffcc;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.jogador-input {
    background-color: #ffeaa7;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.jogador-input h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: #2d3436;
}

.jogador-input input,
.jogador-input select {
    display: block;
    margin: 10px auto;
    padding: 10px;
    border: 2px solid #6c5ce7;
    border-radius: 10px;
    font-size: 1rem;
    width: 80%;
    box-sizing: border-box;
    background: #fff;
    font-family: 'Fredoka', sans-serif;
}

.jogador-input input::placeholder {
    color: #636e72;
    font-style: italic;
}

.info {
    font-size: 1rem;
    color: #2d3436;
    font-weight: bold;
    margin: 10px 0;
    background-color: #fdcb6e;
    display: inline-block;
    padding: 10px;
    border-radius: 8px;
}

button {
    background-color: #00cec9;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 1.1rem;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka', sans-serif;
}

button:hover {
    transform: scale(1.1);
    background-color: #0984e3;
}

.cartela {
    display: inline-block;
    border: 4px solid #6c5ce7;
    border-radius: 10px;
    margin: 15px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cartela:hover {
    transform: scale(1.05);
}

.cartela-titulo {
    background-color: #ffeaa7;
    padding: 10px;
    font-weight: bold;
    border-bottom: 2px solid #fdcb6e;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
}

.cartela-grid {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    grid-gap: 5px;
    padding: 10px;
    justify-content: center;
}

.numero {
    width: 50px;
    height: 50px;
    background-color: #dfe6e9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.numero.marcado {
    background-color: #55efc4;
    color: #2d3436;
    transform: scale(1.1);
    box-shadow: 0 0 10px #00b894;
}

.numero-sorteado {
    font-size: 4rem;
    margin-top: 30px;
    color: #d63031;
    font-family: 'Luckiest Guy', cursive;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); }
}

.mensagem-visivel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fdcb6e;
    padding: 15px 25px;
    font-size: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.mensagem-oculta {
    display: none;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ranking-table th, .ranking-table td {
    border: 2px solid #6c5ce7;
    padding: 10px;
    font-size: 1.2rem;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .cartela-grid {
        grid-template-columns: repeat(5, 35px);
    }

    .numero {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .numero-sorteado {
        font-size: 2.5rem;
    }

    button {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .jogador-input input,
    .jogador-input select {
        width: 95%;
    }

    .section {
        padding: 10px;
    }
}
