/**
 * POST STYLES
 * Style dla postów na forum
 * Zawiera: kontenery postów, informacje o autorze, zawartość postów
 */

.tb-container .right {
    float: right;
    text-align: right;
}
.thread-table {
    position: relative;
}
.stable .row .options > label {
    background: #131314;
    padding: 7px 12px;
    display: inline-block;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    margin: 3px 0;
    box-sizing: border-box;
}
.thread-table .row,
.stable .row .options > label strong {
    font-size: 11pt;
    font-weight: normal;
}
.row .options {
    float: right;
    width: 18%;
}
.row .textarea-c {
    float: left;
    width: 80%;
    max-width: 100%;
}
.stable .row textarea {
    width: 100%;
    padding: 20px 25px;
}
.stable .row textarea {
    min-height: 152px;
}
.thread-table .row .left {
    float: left;
    font-size: 11pt;
}
.thread-table .row .right {
    float: right;
    font-size: 11pt;
}
.thread-table .row .right i {
    float: right;
    margin-left: 10px;
    margin-top: 3px;
    vertical-align: middle;
}
.thread-table .row .left i {
    float: left;
    margin-right: 10px;
    margin-top: 3px;
    vertical-align: middle;
}
.thread-table .post-container {
    display: table;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 143, 255, 0.25);
    border-radius: 6px;
    margin-bottom: 15px;
}
.thread-table .post-container:not(:first-of-type) {
    margin-top: 0;
}
.thread-table .post-container .author-info {
    display: table-cell;
    width: 19%;
    padding-bottom: 25px;
    height: 100%;
    box-sizing: border-box;
    vertical-align: top;
    text-align: center;
    position: relative;
    line-height: 23px;
}
.thread-table .post-container .author-info .username {
    font-size: 13pt;
    margin-top: 30px;
}
.thread-table .post-container .author-info .avatar {
    margin: 20px auto;
    width: 100px;
}
.thread-table .post-container .author-info .avatar img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
}
.thread-table .post-container .author-info .title {
    font-size: 10.5pt;
    color: #777070;
    margin-top: 8px;
}
.thread-table .post-container .post-info {
    display: table-cell;
    padding: 20px 25px;
    box-sizing: border-box;
    padding-bottom: 90px;
    height: 100%;
    vertical-align: top;
    border-left: 1px solid #ffffff05;
    position: relative;
    overflow: unset;
}
.thread-table .post-container .post-info .post_head {
    font-size: 10pt;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.thread-table .post-container .post-info .post_head .post_date {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 1;
    min-width: 0;
}

.thread-table .post-container .post-info .post_head .float_right {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}
.thread-table .post-container .post-info .post_head {} .thread-table .post-container .post-info .content {
    word-break: break-all;
    margin-top: 20px;
    font-size: 11pt;
}
.thread-table .post-container .post-info .signature {
    max-height: 120px;
    word-break: break-all;
    overflow: auto;
    margin-top: 20px;
    border-top: 1px solid #3b7208;
    font-size: 11pt;
    padding: 15px;
}
.thread-table .post_meta {
    font-size: 10pt;
    margin-top: 10px;
}
.thread-table .headline .thread_mode {
    float: right;
}
.thread-table .avatar {
    position: relative;
}
.thread-table .status {
    position: absolute;
    bottom: 0;
    right: 10px;
    border: 3px solid #09090a;
    border-radius: 50%;
}
.thread-table .status .user-online {
    background: #54c128;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.thread-table .status .user-offline {
    background: #c12828;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.thread-table .post-container .author-info .inline-stats {
    text-align: center;
    color: #fff;
}
.thread-table .post-container .author-info .inline-stats > div {
    display: inline-block;
    font-size: 10.5pt;
    background: #1d2029;
    border-radius: 3px;
    font-size: 14px;
    padding: 3px 7px;
    margin: 0 2px;
    font-weight: bold;
}
.thread-table .post-container .author-info .inline-stats > div strong,
.thread-table .post-container .author-info .inline-stats > div a {
    color: #fff;
}
.thread-table .post-container .author-info .inline-stats > div.reputation {
    background: #285118;
}
.thread-table .post-container .author-info .inline-stats > div.war-lvl {
    background: #761e1e;
}
.thread-table .profilefield,
.thread-table .groupimage {
    margin-bottom: 15px;
    font-size: 11pt;
}
.thread-table .post-controls {
    position: absolute;
    left: 0px;
    right: 25px;
    bottom: 25px;
}
.thread-table .edit {
    display: inline-block;
    position: relative;
}
.thread-table .edit ul {
    position: absolute;
    padding: 0 20px;
    min-width: 150px;
    line-height: 20px;
    background: #1d2029;
    list-style: none;
    top: 7px;
    z-index: 2;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 3px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}
.thread-table .edit ul li {
    display: block;
    font-size: 10.5pt;
    background: none;
}
.thread-table .edit ul li a {
    background: none;
    transition: 0.6s color ease-in-out;
    color: #c0afaf;
}
.thread-table .edit ul li a:hover {
    color: #ccc;
}
.thread-table .edit:hover ul {
    opacity: 1;
    visibility: visible;
}
.thread-table .edit ul:before {
    position: absolute;
    display: inline-block;
    top: 0;
    font-family: fontawesome;
    text-align: center;
    content: '\f0de';
    color: #1d2029;
    font-size: 24px;
    text-align: left;
    left: 2px;
    right: 0;
    margin-top: -8px;
}

/* Komunikat o zamkniętym wątku */
.thread_closed_notice {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(193, 40, 40, 0.6);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(193, 40, 40, 0.2);
}

.thread_closed_notice .thread_closed_title {
    display: block;
    color: #ff6b6b;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.thread_closed_notice .thread_closed_text {
    margin: 0;
    color: #c0afaf;
    font-size: 13px;
    line-height: 1.5;
}

/* Mobile layout - przenieś avatar, nick, tytuł i przyciski nad treść posta */
@media screen and (max-width: 768px) {
    .thread-table .post-container {
        display: flex;
        flex-direction: column;
    }
    
    .thread-table .post-container .author-info {
        display: grid;
        grid-template-columns: 60px 1fr auto;
        grid-template-rows: max-content max-content;
        gap: 0 15px;
        row-gap: 0;
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        text-align: left;
        order: 1;
        align-items: center;
        align-content: center;
    }
    
    .thread-table .post-container .author-info .avatar {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
        width: 60px;
        text-align: center;
        align-self: center;
    }
    
    .thread-table .post-container .author-info .avatar img {
        height: 60px;
        width: 60px;
    }
    
    .thread-table .post-container .author-info .username {
        grid-column: 2;
        grid-row: 1;
        display: block;
        margin: 0;
        padding: 0;
        font-size: 14pt;
        text-align: left;
        line-height: 1;
        align-self: end;
        height: fit-content;
    }
    
    .thread-table .post-container .author-info .inline-stats {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin: 0;
        gap: 5px;
        justify-content: center;
        align-self: center;
    }
    
    .thread-table .post-container .author-info .inline-stats > div {
        width: 58px;
        height: 26px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        gap: 4px;
    }
    
    .thread-table .post-container .author-info .inline-stats > div img,
    .thread-table .post-container .author-info .inline-stats > div i,
    .thread-table .post-container .author-info .inline-stats > div svg {
        margin-right: 2px;
        flex-shrink: 0;
    }
    
    .thread-table .post-container .author-info .inline-stats > div strong,
    .thread-table .post-container .author-info .inline-stats > div a {
        margin-left: 0;
    }
    
    .thread-table .post-container .author-info .title {
        grid-column: 2;
        grid-row: 2;
        display: block;
        margin: 0;
        margin-top: 2px;
        padding: 0;
        font-size: 10pt;
        text-align: left;
        line-height: 1;
        align-self: start;
        height: fit-content;
    }
    
    .thread-table .post-container .post-info {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        padding-bottom: 15px;
        border-left: none;
        position: relative;
        order: 3;
    }
    
    /* Przenieś post-controls na dół post-info (po treści) */
    .thread-table .post-container .post-info .post-controls {
        position: static;
        order: 999;
        margin: 0;
        padding: 10px 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    /* Treść posta */
    .thread-table .post-container .post-info .post_head,
    .thread-table .post-container .post-info .content {
        padding: 15px;
        padding-top: 15px;
    }
    
    .thread-table .post-container .post-info .post_head {
        padding-top: 15px;
        padding-bottom: 0;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .thread-table .post-container .post-info .post_head .post_date {
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .thread-table .post-container .post-info .post_head .float_right {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .thread-table .post-container .post-info .content {
        padding-top: 15px;
    }
}

/* Ukryj tekst "Adres IP: zapisano" - desktop i mobile */
.thread-table .post-container .post-info .post_meta {
    display: none;
}

/* Ukryj gwiazdki oceny wątku - desktop i mobile */
.inline_rating,
.thread-table .inline_rating,
.star_rating,
.star_rating_notrated {
    display: none;
}

