/*
=====================================================
 POLSKAELITA.PL | GREEN DARK | MyBB 1.8.41
 DVZ SHOUTBOX - pe_shoutbox.css
 WERSJA 3.0

 - Shoutbox zmieniony na Czat
 - Nizszy naglowek
 - Mniejsze kafelki wiadomosci
 - Mniejsze avatary
 - Kompaktowe nicki i tekst
 - Zachowana moderacja E / X
 - Zachowana data i archiwum
 - Bez zmian w panelu bocznym
=====================================================
*/

/* =========================================
   GLOWNY KONTENER
========================================= */

.pe-index-layout .cont #shoutbox.front {
    --pe-chat-bg: #111a1d;
    --pe-chat-card: #202c30;
    --pe-chat-card-alt: #1c282c;
    --pe-chat-line: #31453e;
    --pe-chat-text: #dce9e3;

    width: 100%;
    margin: 0 0 18px;
    padding: 0;

    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;

    color: var(--pe-chat-text);
}

/* =========================================
   NAGLOWEK CZATU
========================================= */

.pe-index-layout .cont #shoutbox.front > .head {
    position: relative;

    min-height: 48px;
    height: auto;

    padding: 10px 18px;
    margin: 0 0 9px;

    display: flow-root;
    box-sizing: border-box;

    background: linear-gradient(
        115deg,
        #1c292a 0%,
        #172327 75%,
        #162b22 100%
    ) !important;

    border: 1px solid #365748;
    border-radius: 10px;

    box-shadow:
        inset 0 1px rgba(255,255,255,.04),
        0 4px 14px rgba(0,0,0,.16);

    color: #f2f8f3;
}

/* ZAMIANA NAPISU SHOUTBOX NA CZAT */

.pe-index-layout .cont #shoutbox.front > .head strong {
    font-size: 0 !important;
    line-height: 22px;
}

.pe-index-layout .cont #shoutbox.front > .head strong::after {
    content: "Czat";

    color: #f2f8f3;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
}

/* ARCHIWUM */

.pe-index-layout .cont #shoutbox.front > .head .right {
    float: right;

    margin: 0;
    padding: 0;

    font-size: 12px;
    line-height: 22px;
}

.pe-index-layout .cont #shoutbox.front > .head .right a {
    display: inline-block;
    padding: 0 4px;

    color: #b5cfc0;
    text-decoration: none;

    transition: color .15s ease;
}

.pe-index-layout .cont #shoutbox.front > .head .right a:hover {
    color: #9ee9b4;
}

/* =========================================
   GLOWNA RAMKA CZATU
========================================= */

.pe-index-layout .cont #shoutbox.front > .body {
    padding: 9px;

    box-sizing: border-box;

    background: var(--pe-chat-bg);
    border: 1px solid #293e34;
    border-radius: 10px;

    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* =========================================
   POLE WPISYWANIA WIADOMOSCI
========================================= */

.pe-index-layout .cont #shoutbox.front .panel {
    margin: 0 0 9px;
    padding: 0;

    border: 0;
    background: transparent;
}

.pe-index-layout .cont #shoutbox.front .panel form {
    margin: 0;
    padding: 0;
}

.pe-index-layout .cont #shoutbox.front .panel input.text {
    display: block;

    width: 100%;
    min-height: 38px;

    margin: 0;
    padding: 8px 12px;

    box-sizing: border-box;

    background: #182328;
    border: 1px solid #33493e;
    border-radius: 8px;

    outline: none;

    box-shadow: inset 0 1px 3px rgba(0,0,0,.15);

    color: #edf7ef;
    font: inherit;
    font-size: 12px;
    line-height: 20px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.pe-index-layout .cont #shoutbox.front .panel input.text::placeholder {
    color: #80b68c;
    opacity: .9;
}

.pe-index-layout .cont #shoutbox.front .panel input.text:focus {
    border-color: #5ca577;

    box-shadow:
        0 0 0 2px rgba(92,165,119,.12);
}

/* INFORMACJE O BLOKADZIE PISANIA */

.pe-index-layout .cont #shoutbox.front .panel.blocked,
.pe-index-layout .cont #shoutbox.front .panel.minposts {
    padding: 10px 12px;

    background: #2b2623;
    color: #f0d6bf;

    border: 1px solid #755741;
    border-radius: 8px;
}

.pe-index-layout .cont #shoutbox.front .panel p {
    margin: 0;
}

/* =========================================
   OKNO WIADOMOSCI
========================================= */

.pe-index-layout .cont #shoutbox.front .window {
    overflow-y: auto;
    overflow-x: hidden;

    background: #151f23;

    border: 1px solid #2b4037;
    border-radius: 8px;

    box-sizing: border-box;

    scrollbar-color: #486a55 #141d1c;
    scrollbar-width: thin;
}

.pe-index-layout .cont #shoutbox.front .window::-webkit-scrollbar {
    width: 8px;
}

.pe-index-layout .cont #shoutbox.front .window::-webkit-scrollbar-track {
    background: #141d1c;
}

.pe-index-layout .cont #shoutbox.front .window::-webkit-scrollbar-thumb {
    background: #486a55;
    border-radius: 8px;
}

/* =========================================
   KONTENER WIADOMOSCI
========================================= */

.pe-index-layout .cont #shoutbox.front .data {
    display: block;

    width: 100%;
    margin: 0;

    box-sizing: border-box;

    border: 0;
    background: transparent;

    color: #dce9e3;
    font-size: 12px;
}

/* =========================================
   WIADOMOSCI - WERSJA KOMPAKTOWA
========================================= */

.pe-index-layout .cont #shoutbox.front .entry {
    display: grid !important;

    grid-template-columns:
        32px minmax(0,1fr) max-content;

    grid-template-rows: auto auto;

    grid-template-areas:
        "avatar user info"
        "avatar message info";

    align-items: center;

    column-gap: 8px;
    row-gap: 2px;

    min-width: 0;
    min-height: 52px;

    margin: 0;
    padding: 7px 10px;

    box-sizing: border-box;

    border-bottom: 1px solid var(--pe-chat-line);

    transition: background-color .15s ease;
}

/* NAPRZEMIENNE TLO */

.pe-index-layout .cont #shoutbox.front .entry:nth-child(odd) {
    background: var(--pe-chat-card);
}

.pe-index-layout .cont #shoutbox.front .entry:nth-child(even) {
    background: var(--pe-chat-card-alt);
}

.pe-index-layout .cont #shoutbox.front .entry:hover {
    background: #26383b;
}

.pe-index-layout .cont #shoutbox.front .entry:last-child {
    border-bottom: 0;
}

.pe-index-layout .cont #shoutbox.front .entry.unread {
    box-shadow: inset 3px 0 0 #6acb87;
}

/* RESET STARYCH KOMOREK */

.pe-index-layout .cont #shoutbox.front .entry > div {
    display: block !important;

    min-width: 0;
    width: auto;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    border: 0;

    position: static;
    float: none;

    transform: none;
}

/* =========================================
   AVATARY
========================================= */

.pe-index-layout .cont #shoutbox.front .entry > .avatar {
    grid-area: avatar;

    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 32px;

    align-self: center;
}

.pe-index-layout .cont #shoutbox.front .entry > .avatar img {
    display: block;

    width: 26px;
    height: 26px;

    max-width: 26px;
    max-height: 26px;

    object-fit: cover;

    margin: 0;
    padding: 0;

    border: 1px solid #496653;
    border-radius: 50%;

    box-sizing: border-box;

    vertical-align: middle;

    box-shadow:
        0 0 0 2px rgba(7,17,15,.23);
}

/* =========================================
   NICK I RANGA
========================================= */

.pe-index-layout .cont #shoutbox.front .entry > .user {
    grid-area: user;

    display: flex !important;

    align-items: center;
    justify-content: flex-start;
    align-self: end;

    min-height: 16px;

    text-align: left !important;
    white-space: normal;

    font-size: 11px;
    line-height: 1.15;
}

.pe-index-layout .cont #shoutbox.front .entry > .user a {
    text-decoration: none;
}

/* Delikatnie mniejsze elementy rangi */

.pe-index-layout .cont #shoutbox.front .entry > .user .pe-rank,
.pe-index-layout .cont #shoutbox.front .entry > .user .pe-login {
    font-size: 10px;
    line-height: 1.2;
}

/* =========================================
   TRESC WIADOMOSCI
========================================= */

.pe-index-layout .cont #shoutbox.front .entry > .text {
    grid-area: message;

    display: block !important;

    align-self: start;

    color: #dce9e3;

    font-size: 11px;
    line-height: 1.28;

    text-align: left;

    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.pe-index-layout .cont #shoutbox.front .entry > .text a {
    color: #8bdaa5;
}

.pe-index-layout .cont #shoutbox.front .entry > .text a:hover {
    color: #c4f6d1;
}

/* =========================================
   PRAWA STRONA - DATA I MODERACJA
========================================= */

.pe-index-layout .cont #shoutbox.front .entry > .info {
    grid-area: info;

    display: flex !important;

    align-items: center;
    justify-content: flex-end;

    justify-self: end;
    align-self: center;

    gap: 4px;

    text-align: right;

    color: #acc3b2;

    font-size: 10px;
    white-space: nowrap;
}

.pe-index-layout .cont #shoutbox.front .entry > .info .date {
    margin-left: 2px;
    white-space: nowrap;
}

.pe-index-layout .cont #shoutbox.front .entry > .info a {
    color: inherit;
    text-decoration: none;
}

.pe-index-layout .cont #shoutbox.front .entry > .info a:hover {
    color: #b8efd0;
}

/* =========================================
   PRZYCISKI E I X
========================================= */

.pe-index-layout .cont #shoutbox.front .entry > .info .mod {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 21px;
    height: 22px;

    padding: 0;
    margin: 0;

    box-sizing: border-box;

    background: #14201c;

    border: 1px solid #37513e;
    border-radius: 4px;

    color: #a3ddb1;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}

.pe-index-layout .cont #shoutbox.front .entry > .info .mod:hover {
    background: #294635;
    color: #ffffff;
}

/* =========================================
   TELEFONY
========================================= */

@media screen and (max-width: 800px) {

    .pe-index-layout .cont #shoutbox.front > .head {
        min-height: 44px;
        padding: 9px 13px;
    }

    .pe-index-layout .cont #shoutbox.front > .body {
        padding: 7px;
    }

    .pe-index-layout .cont #shoutbox.front .entry {
        grid-template-columns:
            32px minmax(0,1fr);

        grid-template-areas:
            "avatar user"
            "avatar message"
            "info info";

        min-height: 50px;

        padding: 7px 8px;

        column-gap: 7px;
        row-gap: 2px;
    }

    .pe-index-layout .cont #shoutbox.front .entry > .avatar {
        width: 32px;
    }

    .pe-index-layout .cont #shoutbox.front .entry > .avatar img {
        width: 26px;
        height: 26px;
    }

    .pe-index-layout .cont #shoutbox.front .entry > .info {
        font-size: 10px;
        padding-top: 2px;
    }
}

/* =========================================
   DOSTEPNOSC
========================================= */

@media (prefers-reduced-motion: reduce) {

    .pe-index-layout .cont #shoutbox.front .entry,
    .pe-index-layout .cont #shoutbox.front .panel input.text,
    .pe-index-layout .cont #shoutbox.front > .head .right a {
        transition: none;
    }
}