/**
 * assets/css/chat_fox.css
 * CSS isolado do Chat Fox Mundo
 */

#foxchat-wrapper {
    width: 100%;
    max-width: 480px;
    height: 520px;
    background: #111118;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ── Tela de login ───────────────────────────────── */
#foxchat-tela-login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.foxchat-login-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    width: 100%;
}

.foxchat-login-logo {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255,69,0,0.5));
}

.foxchat-login-titulo {
    font-size: 20px;
    font-weight: 800;
    color: #f0f0f5;
    letter-spacing: 1px;
    margin: 0;
}

.foxchat-login-sub {
    font-size: 13px;
    color: #888899;
    margin: 0;
}

.foxchat-login-info {
    font-size: 11px;
    color: #44445a;
    margin: 0;
}

#foxchat-google-btn {
    margin: 4px 0;
}

/* ── Tela do chat ────────────────────────────────── */
#foxchat-tela-chat {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* ── Mensagens ───────────────────────────────────── */
#foxchat-mensagens {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

#foxchat-mensagens::-webkit-scrollbar { width: 3px; }
#foxchat-mensagens::-webkit-scrollbar-track { background: transparent; }
#foxchat-mensagens::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.foxchat-sistema {
    text-align: center;
    font-size: 11px;
    color: #44445a;
    padding: 4px 0;
}

.foxchat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: foxchat-fadein 0.2s ease;
}

@keyframes foxchat-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.foxchat-msg--meu { flex-direction: row-reverse; }

.foxchat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.foxchat-balao {
    max-width: 72%;
    background: #1a1a24;
    border-radius: 14px 14px 14px 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.foxchat-msg--meu .foxchat-balao {
    background: #ff4500;
    border-radius: 14px 14px 4px 14px;
}

.foxchat-nome {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.foxchat-texto {
    font-size: 13px;
    color: #f0f0f5;
    line-height: 1.45;
    word-break: break-word;
    margin: 0;
}

.foxchat-hora {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    align-self: flex-end;
}

.foxchat-msg--meu .foxchat-hora { color: rgba(255,255,255,0.5); }

/* ── Input ───────────────────────────────────────── */
#foxchat-input-area {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #0b0b0f;
    flex-shrink: 0;
}

#foxchat-user-foto {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#foxchat-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: #f0f0f5;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

#foxchat-input::placeholder { color: rgba(255,255,255,0.2); }
#foxchat-input:focus        { border-color: rgba(255,69,0,0.4); }
#foxchat-input:disabled     { opacity: 0.5; }

#foxchat-btn-enviar {
    width: 36px;
    height: 36px;
    background: #ff4500;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

#foxchat-btn-enviar:hover  { background: #cc3700; transform: scale(1.08); }
#foxchat-btn-enviar:active { transform: scale(0.95); }

/* ── Responsivo ──────────────────────────────────── */
@media (max-width: 520px) {
    #foxchat-wrapper { height: 420px; border-radius: 0; border-left: none; border-right: none; }
}
