/*
==============================================================
 POLSKAELITA.PL | GREEN DARK | MYBB 1.8.41
 pe_forumdisplay.css | v1.0
 Poddzialy wewnatrz wszystkich forow / forumdisplay.php?fid=...
 Wyglad zgodny z pe_forum_cards.css na stronie glownej.
 NIE zmienia strony glownej, tematow, czatu ani panelu bocznego.
==============================================================
*/

/* 01. CALY BLOK PODDZIALOW */
.fd.categories {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 18px 0 25px;
    box-sizing: border-box;
}

.fd.categories .category {
    margin: 0 0 24px;
    background: transparent;
    min-width: 0;
}

/* 02. NAGLOWEK 'PODDZIALY W ...' */
.fd.categories .category > .headline {
    display: flow-root;
    position: relative;
    width: 100%;
    min-height: 62px;
    height: auto;
    margin: 0;
    padding: 17px 22px;
    box-sizing: border-box;
    line-height: 26px;
    color: #f2f8f3;
    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);
}

.fd.categories .category > .headline .left {
    float: left;
    max-width: calc(100% - 45px);
    line-height: 26px;
}

.fd.categories .category > .headline .title,
.fd.categories .category > .headline .title a {
    color: #f2f8f3;
    font-size: 15px;
    font-weight: 750;
    line-height: 26px;
    text-decoration: none;
}

.fd.categories .category > .headline .title a:hover {
    color: #9be0af;
}

.fd.categories .category > .headline .expcolimage {
    float: right;
}

/* 03. RAMKA PODDZIALOW */
.fd.categories .category > .forums {
    width: 100%;
    padding: 5px 0;
    box-sizing: border-box;
    background: rgba(12,20,22,.45);
    border: 1px solid #25372f;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

/* 04. POJEDYNCZY KAFELEK */
.fd.categories .category .forums > .forum {
    display: table;
    position: relative;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    width: calc(100% - 18px);
    margin: 9px;
    padding: 14px;
    box-sizing: border-box;
    background: linear-gradient(
        135deg,
        #202c30 0%,
        #192528 100%
    ) !important;
    border: 1px solid #31453e;
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(0,0,0,.11);
    transition:
        background .18s ease,
        border-color .18s ease;
}

.fd.categories .category .forums > .forum:hover {
    background: linear-gradient(
        135deg,
        #25343a 0%,
        #1b2b2b 100%
    ) !important;
    border-color: #518264;
}

.fd.categories .category .forums > .forum > div {
    display: table-cell;
    vertical-align: middle;
}

.fd.categories .category .forums > .forum:not(:last-child)::before {
    display: none;
    content: none;
}

/* 05. IKONA */
.fd.categories .category .forums > .forum > .status {
    width: 6%;
    min-width: 54px;
    padding: 0 8px 0 0;
    text-align: left;
    vertical-align: middle;
}

.fd.categories .category .forums > .forum > .status .forum_status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #41634e;
    background: linear-gradient(
        150deg,
        #20402c 0%,
        #10231e 100%
    );
    box-shadow: inset 0 1px rgba(255,255,255,.06);
    text-align: center;
}

.fd.categories .category .forums > .forum > .status .forum_status::before {
    vertical-align: middle;
    font-family:
        "Font Awesome 5 Free",
        "FontAwesome",
        fontawesome;
    font-style: normal;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* 06. NAZWA, OPIS I PODDZIALY */
.fd.categories .category .forums > .forum > .forum-info {
    width: 48%;
    min-width: 0;
    padding: 3px 10px 0 0;
    box-sizing: border-box;
    vertical-align: top;
    line-height: 1.5;
}

.fd.categories .category .forums > .forum > .forum-info .forum-name {
    margin: 0;
    line-height: 1.4;
}

.fd.categories .category .forums > .forum > .forum-info .forum-name a {
    color: #f3f8f6;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.fd.categories .category .forums > .forum > .forum-info .forum-name a:hover {
    color: #85dc9b;
}

.fd.categories .category .forums > .forum > .forum-info .forum-description {
    margin: 5px 0 0;
    color: #afc0b9;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.fd.categories .category .forums > .forum > .forum-info .forum-description img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.fd.categories .category .forums > .forum > .forum-info .sub-forums {
    margin-top: 9px;
    color: #c3d0cb;
    font-size: 12px;
}

.fd.categories .category .forums > .forum > .forum-info .sub-forums ul li {
    padding: 2px 4px 2px 0;
    box-sizing: border-box;
    line-height: 1.65;
}

.fd.categories .category .forums > .forum > .forum-info .sub-forums a {
    color: #c5d5cd;
    text-decoration: none;
}

.fd.categories .category .forums > .forum > .forum-info .sub-forums a:hover {
    color: #87e1a3;
}

/* 07. LICZNIKI */
.fd.categories .category .forums > .forum > .forum-stats {
    width: 17%;
    padding: 0 5px;
    box-sizing: border-box;
    text-align: center;
}

.fd.categories .category .forums > .forum > .forum-stats .posts-container {
    display: block;
    width: 100%;
}

.fd.categories .category .forums > .forum > .forum-stats .posts-container .item {
    color: #a7b7b1;
    padding: 1px 3px;
}

.fd.categories .category .forums > .forum > .forum-stats .posts-container .item.topics {
    border-right: 1px solid #3a4d44;
}

.fd.categories .category .forums > .forum > .forum-stats .posts-container .number {
    display: block;
    color: #ecfff0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.fd.categories .category .forums > .forum > .forum-stats .posts-container .title {
    display: block;
    color: #a6b8ae;
    font-size: 11px;
    line-height: 1.4;
}

/* 08. OSTATNI POST */
.fd.categories .category .forums > .forum > .lthr {
    position: relative;
    width: 29%;
    padding: 9px 5px 9px 10px;
    box-sizing: border-box;
    border-left: 0;
    text-align: left;
    vertical-align: middle;
    font-size: 11px;
}

/* KROTKI SEPARATOR */
.fd.categories .category .forums > .forum > .lthr::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 46px;
    background: #33453d;
    transform: translateY(-50%);
    pointer-events: none;
}

/* INFORMACJE O OSTATNIM POSCIE */
.fd.categories .category .forums > .forum > .lthr .info {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 92px;
    margin: 0;
    text-align: left;
    white-space: normal;
    color: #b8c5be;
    font-size: 11px;
    line-height: 1.45;
}

/* TYTUL */
.fd.categories .category .forums > .forum > .lthr .info .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100% !important;
    margin: 0 0 2px;
    padding: 0;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.fd.categories .category .forums > .forum > .lthr .info .title a {
    color: #8ddd9f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.fd.categories .category .forums > .forum > .lthr .info .title a:hover {
    color: #c5ffd5;
}

/* AUTOR POSTA */
.fd.categories .category .forums > .forum > .lthr .info .additional {
    display: block;
    max-width: 100% !important;
    min-height: 23px;
    padding: 0;
    margin: 0;
    font-size: 11px;
    line-height: 23px;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}

/* DATA */
.fd.categories .category .forums > .forum > .lthr .info .date {
    display: block;
    clear: both;
    max-width: 100%;
    margin: 3px 0 0;
    padding: 0;
    color: #a1b3aa;
    font-size: 11px;
    font-weight: 400;
    line-height: 17px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* AVATAR OSTATNIEGO POSTA */
.fd.categories .category .forums > .forum > .lthr:not(.center) .avatar {
    position: absolute;
    top: 50%;
    left: 48px;
    right: auto;
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}

/* BRAK POSTOW - NIGDY */
.fd.categories .category .forums > .forum > .lthr.center {
    color: #b1c1ba;
    padding: 9px 5px;
    text-align: center;
    font-size: 12px;
}

/*
================================================
 09. IKONY DZIALOW
 Przypisanie wedlug identyfikatorow FID.
================================================
*/

/* REGULAMINY */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=2"]) > .status .forum_status::before {
    content: "\f518";
}

/* OGLOSZENIA */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=3"]) > .status .forum_status::before {
    content: "\f0a1";
}

/* ORGANIZACJA */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=4"]) > .status .forum_status::before {
    content: "\f0c0";
}

/* REKRUTACJA */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=5"]) > .status .forum_status::before {
    content: "\f234";
}

/* MASZ SWOJ SERWER */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=22"]) > .status .forum_status::before {
    content: "\f233";
}

/* STREFA BANOW */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=10"]) > .status .forum_status::before {
    content: "\f0e3";
}

/* BASEBUILDER */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=15"]) > .status .forum_status::before {
    content: "\f6e3";
}

/* REDAKCJA */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=26"]) > .status .forum_status::before {
    content: "\f303";
}

/* GRAFIKA */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=27"]) > .status .forum_status::before {
    content: "\f53f";
}

/* STREFA GIER */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=24"]) > .status .forum_status::before {
    content: "\f11b";
}

/* ZYCIE CODZIENNE */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=42"]) > .status .forum_status::before {
    content: "\f0f4";
}

/* ZABAWY POLSKAELITA */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=51"]) > .status .forum_status::before {
    content: "\f522";
}

/* ARCHIWUM */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=20"]) > .status .forum_status::before {
    content: "\f187";
}

/* KOSZ */
.fd.categories .forums > .forum:has(> .forum-info > .forum-name > a[href$="fid=21"]) > .status .forum_status::before {
    content: "\f2ed";
}

/* 10. DOSTEPNOSC */
.fd.categories .category .forums > .forum a:focus-visible {
    outline: 2px solid #8cdda2;
    outline-offset: 3px;
    border-radius: 2px;
}

/* 11. MNIEJSZE EKRANY */
@media screen and (max-width: 1250px) {
    .fd.categories .category .forums > .forum {
        padding: 12px 11px;
    }

    .fd.categories .category .forums > .forum > .status {
        width: 7%;
    }

    .fd.categories .category .forums > .forum > .forum-info {
        width: 45%;
    }

    .fd.categories .category .forums > .forum > .forum-stats {
        width: 17%;
    }

    .fd.categories .category .forums > .forum > .lthr {
        width: 31%;
    }
}

/* TELEFONY */
@media screen and (max-width: 800px) {
    .fd.categories .category > .headline {
        min-height: 55px;
        padding: 14px 13px;
    }

    .fd.categories .category > .headline .title {
        font-size: 14px;
    }

    .fd.categories .category .forums > .forum {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 9px 5px;
        padding: 12px;
        table-layout: auto;
    }

    .fd.categories .category .forums > .forum > div {
        display: block;
    }

    .fd.categories .category .forums > .forum > .status {
        width: 48px;
        min-width: 48px;
        flex: 0 0 48px;
        padding: 0;
    }

    .fd.categories .category .forums > .forum > .forum-info {
        width: calc(100% - 53px);
        flex: 1 1 calc(100% - 53px);
        padding: 0;
    }

    .fd.categories .category .forums > .forum > .forum-stats {
        width: 44%;
        flex: 0 0 44%;
        padding: 8px 5px 0;
    }

    .fd.categories .category .forums > .forum > .lthr {
        width: 55%;
        flex: 1 1 50%;
        padding: 8px 0 4px 8px;
    }

    .fd.categories .category .forums > .forum > .lthr::before {
        display: none;
    }

    .fd.categories .category .forums > .forum > .lthr:not(.center) .avatar {
        left: 8px;
    }

    .fd.categories .category .forums > .forum > .lthr .info {
        padding-left: 49px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd.categories .category .forums > .forum {
        transition: none;
    }
}