/* =====================================================================
   13 — Ajustes v2 (Julho/2026)
   - Login/Registro: sem vibe vermelha, tema azul/preto, logo centralizada
   - Autocomplete branco corrigido
   - Chat: tema alinhado ao site (não colorido genérico)
   - Botão apagar mensagem NÃO sobrepõe o de reagir
   - Reações com fonte de emoji Apple (iOS look)
   - "Online agora" bonito + "última vez online"
   ===================================================================== */

/* ------------------------------------------------------------------
   AUTH — remove qualquer accent vermelho, força tema azul/preto
   ------------------------------------------------------------------ */
.auth-body {
    background: radial-gradient(ellipse at top,
        #0a1128 0%, #05060f 55%, #030308 100%) !important;
}
.auth-body .auth-bg-shape { display: none !important; }

.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: 0;
    pointer-events: none;
    filter: blur(90px);
    opacity: .55;
}
.auth-body::before {
    top: -140px; left: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
}
.auth-body::after {
    bottom: -160px; right: -140px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    opacity: .35;
}

.auth-card {
    background: linear-gradient(180deg,
        rgba(15, 23, 42, .95),
        rgba(10, 15, 30, .96)) !important;
    border: 1px solid rgba(59, 130, 246, .22) !important;
    box-shadow:
        0 30px 80px rgba(2, 6, 23, .6),
        inset 0 1px 0 rgba(255,255,255,.04) !important;
}

/* Logo centralizada e sem inclinação */
.auth-card .auth-logo,
.auth-card h1.auth-logo {
    text-align: center !important;
    display: block !important;
    margin: 0 auto 8px auto !important;
    transform: none !important;
    letter-spacing: 0 !important;
}
.auth-card .auth-logo img,
.auth-card .auth-logo-img {
    display: block;
    margin: 0 auto;
    max-width: 180px;
    height: auto;
    transform: none !important;
    filter: drop-shadow(0 4px 18px rgba(56, 189, 248, .25));
}
.auth-card .auth-sub {
    text-align: center !important;
    color: rgba(226, 232, 240, .75) !important;
}

/* Labels em azul suave, não rosa/vermelho */
.auth-card label,
.auth-card .field label {
    color: #93c5fd !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-size: 11px !important;
}

/* Inputs com borda azul, foco azul */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    background: rgba(15, 23, 42, .9) !important;
    border: 1px solid rgba(59, 130, 246, .30) !important;
    color: #e2e8f0 !important;
    caret-color: #38bdf8 !important;
    box-shadow: none !important;
}
.auth-card input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .18) !important;
    outline: none !important;
}
.auth-card input::placeholder { color: rgba(148, 163, 184, .55) !important; }

/* Autofill do navegador — mata o fundo branco */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active {
    -webkit-text-fill-color: #e2e8f0 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, .95) inset !important;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, .95) inset !important;
    caret-color: #38bdf8 !important;
    transition: background-color 99999s ease-in-out 0s;
    border: 1px solid rgba(59, 130, 246, .40) !important;
}

/* Botão primário azul */
.auth-card .btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .35) !important;
}
.auth-card .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Link de rodapé */
.auth-footer a { color: #38bdf8 !important; }

/* Remove qualquer botão "Google" que sobrou */
.auth-card .btn-google,
.auth-card [data-google],
.auth-card .auth-divider,
.auth-card .auth-or,
.auth-card .btn-secondary.full {
    display: none !important;
}

/* ------------------------------------------------------------------
   CHAT — alinha ao tema do site (não usar cores estranhas)
   ------------------------------------------------------------------ */
.chat-body {
    background:
        radial-gradient(ellipse at top, rgba(30, 27, 75, .55) 0%, transparent 60%),
        #05070d !important;
}

/* Header do chat mais discreto e alinhado ao topbar do site */
.chat-header {
    background: linear-gradient(180deg, rgba(10, 12, 22, .92), rgba(10, 12, 22, .72)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
    backdrop-filter: blur(14px);
}

/* Barra de input igual ao resto do site */
.chat-input-bar {
    background: linear-gradient(180deg, rgba(10, 12, 22, .85), rgba(10, 12, 22, .95)) !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
}

/* Botão apagar: fora da bolha, à ESQUERDA da mensagem "mine",
   longe da área onde a reação aparece (top-right).  */
.chat-bubble.mine { position: relative; }
.chat-bubble.mine .chat-msg-delete-btn {
    top: 50% !important;
    right: auto !important;
    left: -34px !important;
    transform: translateY(-50%);
    width: 26px !important; height: 26px !important;
    background: rgba(15, 23, 42, .85) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #f87171 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    opacity: 0;
}
.chat-bubble.mine:hover .chat-msg-delete-btn { opacity: 1; }
@media (max-width: 900px) {
    /* No mobile mostra sempre (leve), pra evitar depender de hover */
    .chat-bubble.mine .chat-msg-delete-btn {
        display: flex !important;
        opacity: .55;
        left: -30px !important;
        width: 22px !important; height: 22px !important;
        font-size: 11px;
    }
}

/* Trigger de reagir — fica no CANTO OPOSTO ao delete, sem conflito */
.wz-react-trigger {
    top: -12px !important;
    right: -8px !important;
    background: rgba(15, 23, 42, .9) !important;
    border: 1px solid rgba(139, 92, 246, .35) !important;
    color: #e9d5ff !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.4);
}

/* Picker de reações — fonte de emoji Apple/iOS */
.wz-react-picker,
.wz-react-picker button,
.wz-reaction-chip {
    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        "Twemoji Mozilla",
        system-ui, sans-serif !important;
}
.wz-react-picker {
    background: linear-gradient(180deg, #1a1030, #0d0820) !important;
    border: 1px solid rgba(139, 92, 246, .30) !important;
    box-shadow:
        0 18px 40px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.05) !important;
    padding: 8px 10px !important;
    gap: 6px !important;
}
.wz-react-picker button {
    font-size: 22px !important;
    padding: 4px 6px !important;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.wz-react-picker button:hover {
    transform: scale(1.35) translateY(-2px);
    background: rgba(139, 92, 246, .18) !important;
}

/* Chips de reação com efeito 3D suave */
.wz-reaction-chip {
    padding: 3px 10px !important;
    background: linear-gradient(180deg,
        rgba(30, 30, 60, .95),
        rgba(20, 20, 40, .95)) !important;
    border: 1px solid rgba(139, 92, 246, .28) !important;
    box-shadow:
        0 3px 8px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.05);
    font-size: 13px !important;
    transition: transform .15s ease;
}
.wz-reaction-chip:hover { transform: translateY(-1px); }
.wz-reaction-chip.mine {
    background: linear-gradient(180deg, #7c3aed, #5b21b6) !important;
    border-color: #a78bfa !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .5);
}

/* ------------------------------------------------------------------
   HEADER DO CHAT — "online agora" e "última vez"
   ------------------------------------------------------------------ */
.chat-header-status {
    color: rgba(226, 232, 240, .65) !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}
.chat-online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18),
                0 0 10px rgba(34, 197, 94, .55);
    animation: onlinePulse 2.4s ease-in-out infinite;
}
@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 0 10px rgba(34, 197, 94, .55); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, .05), 0 0 14px rgba(34, 197, 94, .8); }
}
.chat-online-label {
    background: linear-gradient(90deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: .2px;
}
.chat-lastseen-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(148, 163, 184, .8);
    font-size: 11.5px;
}
.chat-lastseen-label::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .18);
}

/* ------------------------------------------------------------------
   COMENTÁRIOS — dropdown de menção @
   ------------------------------------------------------------------ */
.mention-suggest {
    position: absolute;
    z-index: 9999;
    background: #0f172a;
    border: 1px solid rgba(139, 92, 246, .35);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
    min-width: 220px;
    max-height: 240px;
    overflow: auto;
    padding: 6px;
}
.mention-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 13px;
}
.mention-suggest-item:hover,
.mention-suggest-item.active {
    background: rgba(139, 92, 246, .18);
}
.mention-suggest-item img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.mention-suggest-item small {
    color: rgba(148, 163, 184, .8);
    margin-left: auto;
    font-size: 11px;
}
.comment-mention {
    color: #a78bfa;
    font-weight: 700;
}

/* ------------------------------------------------------------------
   CAPA ANIMADA (GIF) — só premium
   ------------------------------------------------------------------ */
.profile-cover img[src$=".gif"] {
    image-rendering: auto;
}
.profile-cover-animated::after {
    content: "GIF";
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,.4);
    z-index: 5;
}
