/*
===============================================================
 POLSKAELITA.PL  |  GREEN DARK / MYBB 1.8.41
 Plik: pe_forum_cards.css
 Wersja 1.0 - grafitowe kafelki listy dzialow

 Tylko strona glowna; wymagany wrapper w index:
 <div class="top pe-index-layout"> i <div class="categories">.

 Zostawia: TopStats, DVZ Shoutbox, avatary, poddzialy,
 bannery, linki, JS z [ON]/[OFF] oraz statusy dzialow.
 Dolacz jako osobny CSS PO main.css i responsive.css.
===============================================================
*/

/* Kategoria: tlo i odstepy */
.pe-index-layout .categories .category {
    margin-top: 26px;
    background: transparent;
    min-width: 0;
}
.pe-index-layout .categories .category:first-child {
    margin-top: 0;
}

/* Naglowek kategorii, np. Forum glowne / Strefa banow */
.pe-index-layout .categories .category > .headline {
    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%);
    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);
}
.pe-index-layout .categories .category > .headline .left {
    float: left;
    max-width: calc(100% - 45px);
    line-height: 26px;
}
.pe-index-layout .categories .category > .headline .title a {
    font-size: 15px;
    font-weight: 750;
    line-height: 25px;
    color: #f2f8f3;
    text-decoration: none;
}
.pe-index-layout .categories .category > .headline .title a:hover {
    color: #95e5aa;
}
/* Zachowujemy folder jako ikonke oryginalnego Green Dark. */
.pe-index-layout .categories .category > .headline .title a::before {
    margin-right: 12px;
    filter: drop-shadow(0 0 3px rgba(74,199,112,.18));
}
/* Przycisk rozwin/zwin nie zmienia działania. */
.pe-index-layout .categories .category > .headline .expcolimage.close {
    margin-top: -6px;
}
.pe-index-layout .categories .category > .headline .expcolimage img {
    max-width: 40px;
    max-height: 40px;
}

/* Pod naglowkiem - tlo dla zbioru kafelkow */
.pe-index-layout .categories .category > .forums {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0;
    background: rgba(12,20,22,.45);
    border: 1px solid #25372f;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

/* Osobny kafelek dzialu. Pozostawiamy układ TABLE motywu. */
.pe-index-layout .categories .category .forums > .forum {
    position: relative;
    display: table;
    width: calc(100% - 18px);
    margin: 9px;
    padding: 15px 16px;
    box-sizing: border-box;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, #202c30 0%, #192528 100%);
    border: 1px solid #31453e;
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(0,0,0,.11);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pe-index-layout .categories .category .forums > .forum:hover {
    border-color: #518264;
    background: linear-gradient(135deg, #25343a 0%, #1b2b2b 100%);
    box-shadow: 0 3px 13px rgba(0,0,0,.19);
}
/* Usuwamy oryginalne separatorowe tlo miedzy wierszami. */
.pe-index-layout .categories .category .forums > .forum:not(:last-child)::before {
    display: none;
    content: none;
}

/* Komorki oryginalnego szablonu forumbit_depth2_forum. */
.pe-index-layout .categories .category .forums > .forum > div {
    display: table-cell;
    vertical-align: middle;
}
.pe-index-layout .categories .category .forums > .forum > .status {
    width: 8%;
    min-width: 49px;
    padding-right: 10px;
    text-align: left;
}
/* Nie usuwamy oryginalnego symbolu 'nowe posty/brak postow'. */
.pe-index-layout .categories .category .forums > .forum > .status .forum_status {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 42px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #41634e;
    background: linear-gradient(150deg, #20402c 0%, #10231e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    text-align: center;
}
.pe-index-layout .categories .category .forums > .forum > .status .forum_status::before {
    vertical-align: middle;
}

/* Nazwa, opis, poddzialy i bannery. */
.pe-index-layout .categories .category .forums > .forum > .forum-info {
    width: 42%;
    min-width: 0;
    padding: 0 10px 0 0;
    line-height: 1.5;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .forum-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .forum-name a {
    font-size: 14px;
    color: #f3f8f6;
    font-weight: 750;
    text-decoration: none;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .forum-name a:hover {
    color: #85dc9b;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .forum-description {
    margin: 5px 0 0;
    color: #afc0b9;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 400;
    overflow-wrap: anywhere;
}
/* NIE naruszamy proporcji i rozmiarow grafik z folderu modes. */
.pe-index-layout .categories .category .forums > .forum > .forum-info .forum-description img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .sub-forums {
    margin-top: 9px;
    font-size: 12px;
    color: #c3d0cb;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .sub-forums ul li {
    padding: 2px 4px 2px 0;
    box-sizing: border-box;
    line-height: 1.65;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .sub-forums a:not(.pe-rekrutacja-on):not(.pe-rekrutacja-off) {
    color: #c5d5cd;
    text-decoration: none;
}
.pe-index-layout .categories .category .forums > .forum > .forum-info .sub-forums a:not(.pe-rekrutacja-on):not(.pe-rekrutacja-off):hover {
    color: #87e1a3;
}
/* Nie ruszamy pseudo-elementow i klas blokad z pe_rekrutacja.css. */

/* Liczniki tematow i postow - porzadniejszy kontrast. */
.pe-index-layout .categories .category .forums > .forum > .forum-stats {
    width: 26%;
    padding: 0 13px;
    text-align: center;
    box-sizing: border-box;
}
.pe-index-layout .categories .category .forums > .forum > .forum-stats .posts-container {
    display: block;
    width: 100%;
}
.pe-index-layout .categories .category .forums > .forum > .forum-stats .posts-container .item {
    color: #a7b7b1;
    padding: 1px 3px;
}
.pe-index-layout .categories .category .forums > .forum > .forum-stats .posts-container .item.topics {
    border-right: 1px solid #3a4d44;
}
.pe-index-layout .categories .category .forums > .forum > .forum-stats .posts-container .number {
    display: block;
    color: #ecfff0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}
.pe-index-layout .categories .category .forums > .forum > .forum-stats .posts-container .title {
    display: block;
    color: #a6b8ae;
    font-size: 11px;
    line-height: 1.4;
}

/* Ostatni post: spokojne tlo, avatar i data. */
.pe-index-layout .categories .category .forums > .forum > .lthr {
    width: 24%;
    padding: 9px 5px 9px 10px;
    box-sizing: border-box;
    border-left: 1px solid #33453d;
}
.pe-index-layout .categories .category .forums > .forum > .lthr .info {
    min-width: 0;
    padding-left: 46px;
    color: #b8c5be;
    font-size: 11px;
    line-height: 1.45;
}
.pe-index-layout .categories .category .forums > .forum > .lthr .info .title,
.pe-index-layout .categories .category .forums > .forum > .lthr .info .additional {
    max-width: 100%;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pe-index-layout .categories .category .forums > .forum > .lthr .info .title a {
    color: #8ddd9f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.pe-index-layout .categories .category .forums > .forum > .lthr .info .title a:hover {
    color: #c5ffd5;
}
.pe-index-layout .categories .category .forums > .forum > .lthr .info .date {
    color: #a1b3aa;
    font-size: 11px;
}
/* Oryginalny plik greendark_avatars.css nadal kontroluje avatar 36x36. */
.pe-index-layout .categories .category .forums > .forum > .lthr .avatar {
    top: 50%;
    transform: translateY(-50%);
}
.pe-index-layout .categories .category .forums > .forum > .lthr.center {
    color: #b1c1ba;
    border-left: 1px solid #33453d;
    padding: 9px 5px;
    font-size: 12px;
}

/* Dla dlugich tytulow i srednich ekranow. */
@media screen and (max-width: 1250px) {
    .pe-index-layout .categories .category .forums > .forum {
        padding: 12px 11px;
    }
    .pe-index-layout .categories .category .forums > .forum > .forum-info {
        width: 43%;
    }
    .pe-index-layout .categories .category .forums > .forum > .forum-stats {
        width: 24%;
        padding: 0 7px;
    }
    .pe-index-layout .categories .category .forums > .forum > .lthr {
        width: 25%;
    }
}

/* Telefon / waski ekran: nawigacja zostaje wygodna. */
@media screen and (max-width: 800px) {
    .pe-index-layout .categories .category > .headline {
        min-height: 55px;
        padding: 14px 13px;
    }
    .pe-index-layout .categories .category > .headline .title a {
        font-size: 14px;
    }
    .pe-index-layout .categories .category .forums > .forum {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 9px 5px;
        padding: 12px;
    }
    .pe-index-layout .categories .category .forums > .forum > div {
        display: block;
    }
    .pe-index-layout .categories .category .forums > .forum > .status {
        width: 48px;
        min-width: 48px;
        flex: 0 0 48px;
        padding: 0;
    }
    .pe-index-layout .categories .category .forums > .forum > .forum-info {
        width: calc(100% - 53px);
        flex: 1 1 calc(100% - 53px);
        padding: 0;
    }
    .pe-index-layout .categories .category .forums > .forum > .forum-stats {
        width: 44%;
        flex: 0 0 44%;
        padding: 8px 5px 0;
    }
    .pe-index-layout .categories .category .forums > .forum > .lthr {
        width: 55%;
        flex: 1 1 50%;
        padding: 8px 0 4px 8px;
    }
    .pe-index-layout .categories .category .forums > .forum > .lthr.center {
        text-align: left;
        padding-left: 15px;
    }
    .pe-index-layout .categories .category .forums > .forum > .lthr .avatar {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .pe-index-layout .categories .category .forums > .forum > .lthr .info {
        padding-left: 45px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pe-index-layout .categories .category .forums > .forum {
        transition: none;
    }
}
