/* =========================================================
   FOOTBALL PULSE — CHAT PULSE / PULSEBOT
   Arquivo fixo: static/css/fp_chat.css
   BLOCO E1 — Núcleo de interação
   ========================================================= */

.fp-chat-page {
    position: relative;
}

.fp-chat-hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 16px;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.115);
    border-radius: 24px;
    padding: 24px;
    background:
        radial-gradient(circle at 78% 20%, rgba(0, 213, 255, 0.10), transparent 28%),
        radial-gradient(circle at 20% 0%, rgba(0, 255, 143, 0.085), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.063), rgba(255, 255, 255, 0.016)),
        rgba(2, 6, 13, 0.92);
    box-shadow: var(--fp-shadow);
    overflow: hidden;
}

.fp-chat-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.fp-chat-hero-copy h1 {
    max-width: 900px;
    margin: 17px 0 13px;
    color: #ffffff;
    font-size: clamp(32px, 3.35vw, 58px);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: -0.058em;
}

.fp-chat-hero-copy p {
    max-width: 820px;
    margin: 0;
    color: #aeb8c5;
    font-size: clamp(14px, 0.92vw, 16px);
    line-height: 1.66;
}

.fp-chat-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.fp-chat-stats div {
    min-height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 16px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.032);
}

.fp-chat-stats strong {
    display: block;
    color: #ffffff;
    font-size: clamp(17px, 1.28vw, 24px);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.fp-chat-stats span {
    display: block;
    margin-top: 5px;
    color: var(--fp-muted);
    font-size: 11.5px;
    line-height: 1.35;
}

.fp-chat-hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Console grande */

.fp-chat-console {
    width: min(100%, 620px);
    min-height: 430px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 255, 143, 0.085), transparent 30%),
        radial-gradient(circle at 90% 18%, rgba(0, 213, 255, 0.075), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        rgba(0, 0, 0, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 30px 80px rgba(0, 0, 0, 0.40);
}

.fp-chat-console-head,
.fp-chat-widget-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.095);
    background: rgba(255, 255, 255, 0.035);
}

.fp-chat-console-head div,
.fp-chat-widget-head div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fp-chat-console-head div span,
.fp-chat-widget-head div span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fp-green);
    box-shadow: 0 0 16px rgba(0, 255, 143, 0.85);
}

.fp-chat-console-head strong,
.fp-chat-widget-head strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.fp-chat-console-head small {
    color: var(--fp-green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.fp-chat-stream {
    flex: 1;
    min-height: 270px;
    max-height: 440px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 143, 0.35) rgba(255, 255, 255, 0.05);
}

.fp-chat-stream.small {
    min-height: 210px;
    max-height: 260px;
    padding: 12px;
}

.fp-chat-message {
    max-width: 86%;
    display: grid;
    gap: 9px;
}

.fp-chat-message p {
    margin: 0;
    padding: 12px 13px;
    border-radius: 15px;
    font-size: 12.8px;
    line-height: 1.55;
}

.fp-chat-message.bot {
    align-self: flex-start;
}

.fp-chat-message.bot p {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.045);
    color: #dce6ef;
}

.fp-chat-message.user {
    align-self: flex-end;
}

.fp-chat-message.user p {
    background: linear-gradient(135deg, rgba(0, 255, 143, 0.95), rgba(4, 216, 117, 0.95));
    color: #00140c;
    font-weight: 850;
}

.fp-chat-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fp-chat-message-actions a,
.fp-chat-message-actions button {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(0, 255, 143, 0.22);
    border-radius: 999px;
    background: rgba(0, 255, 143, 0.08);
    color: var(--fp-green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
}

.fp-chat-message-actions a:hover,
.fp-chat-message-actions button:hover {
    background: rgba(0, 255, 143, 0.14);
}

.fp-chat-form {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.095);
    background: rgba(0, 0, 0, 0.24);
}

.fp-chat-form input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    outline: none;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    font-size: 12.8px;
}

.fp-chat-form input::placeholder {
    color: rgba(174, 184, 197, 0.72);
}

.fp-chat-form input:focus {
    border-color: rgba(0, 255, 143, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 255, 143, 0.07);
}

.fp-chat-form button {
    height: 42px;
    min-width: 92px;
    border: 0;
    border-radius: 999px;
    background: var(--fp-green);
    color: #00140c;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.fp-chat-form button:disabled,
.fp-chat-form input:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Sugestões */

.fp-chat-suggestions {
    margin-top: 16px;
    border: 1px solid var(--fp-border);
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016)),
        rgba(2, 6, 13, 0.86);
    box-shadow: var(--fp-shadow);
}

.fp-chat-suggestion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.fp-chat-suggestion-grid button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.fp-chat-suggestion-grid button:hover {
    color: var(--fp-green);
    border-color: rgba(0, 255, 143, 0.22);
    background: rgba(0, 255, 143, 0.055);
}

/* Widget flutuante */

.fp-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2200;
}

.fp-chat-widget-button {
    min-width: 150px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(0, 255, 143, 0.28);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(0, 255, 143, 0.95), rgba(4, 216, 117, 0.95));
    color: #00140c;
    box-shadow:
        0 16px 42px rgba(0, 255, 143, 0.16),
        0 20px 70px rgba(0, 0, 0, 0.36);
    cursor: pointer;
}

.fp-chat-widget-button span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00140c;
    box-shadow: 0 0 0 5px rgba(0, 20, 12, 0.10);
}

.fp-chat-widget-button strong {
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.fp-chat-widget-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    width: min(390px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 110px));
    display: none;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 255, 143, 0.09), transparent 30%),
        radial-gradient(circle at 90% 18%, rgba(0, 213, 255, 0.075), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        rgba(3, 7, 14, 0.96);
    backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 30px 90px rgba(0, 0, 0, 0.58);
}

.fp-chat-widget.open .fp-chat-widget-panel {
    display: flex;
}

.fp-chat-widget-head button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.fp-chat-widget-intro {
    padding: 13px 14px 0;
}

.fp-chat-widget-intro small {
    display: block;
    color: var(--fp-green);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fp-chat-widget-intro p {
    margin: 7px 0 0;
    color: var(--fp-muted);
    font-size: 12px;
    line-height: 1.48;
}

.fp-chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 14px 0;
}

.fp-chat-quick-actions button {
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(0, 255, 143, 0.20);
    border-radius: 999px;
    background: rgba(0, 255, 143, 0.075);
    color: var(--fp-green);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
}

.fp-chat-form.widget {
    min-height: 58px;
}

.fp-chat-form.widget button {
    min-width: 42px;
    width: 42px;
    font-size: 18px;
}

.fp-chat-full-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
    color: var(--fp-muted);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.fp-chat-full-link:hover {
    color: var(--fp-green);
}

/* ADM */

.fp-chat-adm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fp-adm-list {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.fp-adm-list div {
    min-height: 66px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.032);
}

.fp-adm-list strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
}

.fp-adm-list span {
    display: block;
    margin-top: 4px;
    color: var(--fp-muted);
    font-size: 11.5px;
}

.fp-adm-list small {
    display: block;
    margin-top: 5px;
    color: var(--fp-green);
    font-size: 10px;
}

/* Responsivo */

@media (max-width: 1180px) {
    .fp-chat-hero {
        grid-template-columns: 1fr;
    }

    .fp-chat-hero-panel {
        justify-content: flex-start;
    }

    .fp-chat-console {
        max-width: 760px;
    }
}

@media (max-width: 860px) {
    .fp-chat-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .fp-chat-hero-copy h1 {
        font-size: 34px;
        line-height: 1.02;
    }

    .fp-chat-stats,
    .fp-chat-adm-grid {
        grid-template-columns: 1fr;
    }

    .fp-chat-widget {
        right: 14px;
        bottom: 14px;
    }

    .fp-chat-widget-button {
        min-width: 136px;
        height: 46px;
    }

    .fp-chat-widget-panel {
        right: -2px;
        bottom: 58px;
    }
}