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

/* ===================================================
   Bingo Ao Vivo — Estilos do Plugin WordPress
   Escopados ao container #bingo-ao-vivo-app para
   não interferir no tema do WordPress.
   =================================================== */

#bingo-ao-vivo-app {
    font-family: 'Inter', sans-serif;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    background-color: #0f172a;
    color: white;
    overflow: hidden;
    /* Ocupa a viewport inteira descontando a admin bar do WordPress */
    width: 100%;
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

/* Oculta o app Vue antes de ser montado (evita flash de template) */
#bingo-ao-vivo-app[v-cloak],
#bingo-display-app[v-cloak] {
    display: none !important;
}

/* Bola 3D */
.bingo-ball {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cbd5e1 40%, #475569 100%);
    box-shadow:
        inset -5px -5px 15px rgba(0, 0, 0, 0.3),
        inset 5px 5px 15px rgba(255, 255, 255, 0.8),
        0 15px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove scrollbar nas listas de histórico */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Transições da bola sorteada */
.bounce-enter-active {
    animation: bingo-bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bounce-leave-active {
    animation: bingo-bounce-out 0.3s ease-in;
}

@keyframes bingo-bounce-in {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0);       opacity: 1; }
}
@keyframes bingo-bounce-out {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

/* Transições de Fade (Vue) */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* ===================================================
   Lobby do Jogo (#bingo-lobby)
   =================================================== */
#bingo-lobby {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: white;
    width: 100%;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.5rem;
}

.bingo-lobby-inner {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bingo-lobby-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.bingo-lobby-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #eab308;
    font-style: italic;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0;
}

.bingo-lobby-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.bingo-lobby-greeting {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

.bingo-lobby-greeting strong {
    color: white;
}

.bingo-lobby-room-badge {
    background-color: #1e293b;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

.bingo-lobby-room-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.bingo-lobby-room-code {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #eab308;
    letter-spacing: 0.1em;
}

.bingo-lobby-share {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bingo-lobby-share-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bingo-lobby-share-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bingo-lobby-share-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    color: #cbd5e1;
    font-family: monospace;
    outline: none;
    min-width: 0;
}

.bingo-lobby-copy-btn {
    background: #334155;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: background 0.15s;
}

.bingo-lobby-copy-btn:hover {
    background: #475569;
}

.bingo-lobby-room-input {
    width: 100%;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #eab308;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.bingo-lobby-room-input::placeholder {
    color: #334155;
}

.bingo-lobby-room-input:focus {
    border-color: #eab308;
}

.bingo-lobby-btn-primary {
    width: 100%;
    background: #eab308;
    color: #0f172a;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0 #b45309;
    transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
    letter-spacing: 0.05em;
}

.bingo-lobby-btn-primary:hover {
    background: #facc15;
}

.bingo-lobby-btn-primary:active {
    transform: translateY(2px);
    box-shadow: none;
}

.bingo-lobby-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 0 #b45309;
}

.bingo-lobby-btn-danger {
    width: 100%;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.05em;
}

.bingo-lobby-btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.bingo-lobby-error {
    color: #f87171;
    font-size: 0.875rem;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.bingo-lobby-logout {
    display: block;
    text-align: center;
    color: #475569;
    font-size: 0.75rem;
    text-decoration: none;
    margin-top: 0.25rem;
    transition: color 0.15s;
}

.bingo-lobby-logout:hover {
    color: #94a3b8;
}

/* ===================================================
   Formulários de Autenticação (.bingo-auth-wrap)
   =================================================== */
.bingo-auth-wrap {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: white;
    width: 100%;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.bingo-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bingo-auth-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #eab308;
    font-style: italic;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0;
}

.bingo-auth-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.bingo-auth-form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bingo-auth-input {
    width: 100%;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 1rem;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.bingo-auth-input::placeholder {
    color: #475569;
}

.bingo-auth-input:focus {
    border-color: #eab308;
}

.bingo-auth-btn-primary {
    width: 100%;
    background: #eab308;
    color: #0f172a;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0 #b45309;
    transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
    margin-top: 0.25rem;
}

.bingo-auth-btn-primary:hover {
    background: #facc15;
}

.bingo-auth-btn-primary:active {
    transform: translateY(2px);
    box-shadow: none;
}

.bingo-alert {
    width: 100%;
    max-width: 340px;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.bingo-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.bingo-auth-footer-link {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.bingo-auth-footer-link a {
    color: #eab308;
    font-weight: 700;
    text-decoration: none;
}

.bingo-auth-footer-link a:hover {
    color: #facc15;
}

/* ===================================================
   Painel de Display (#bingo-display-app)
   =================================================== */
#bingo-display-app {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: white;
    width: 100%;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
