/* TurKTeamV2 forum rows use the original TurkTeam theme's layout and appearance. */
.tt_forumtable .tt_frow > td {
    background: #1f1f1f !important;
    color: #dcdcdc;
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    vertical-align: middle;
}
.tt_forumtable .tt_frow > .trow2 { background: #1c1c1c !important; }

.tt_forumtable {
    border-collapse: separate;
    border-spacing: 0;
}

.tt_forumtable .tt_frow > td {
    border-top: 1px solid #262626 !important;
    padding: 14px 12px !important;
    transition: background 0.15s ease;
}

.tt_forumtable .tt_frow:first-child > td {
    border-top: 0 !important;
}

.tt_forumtable .tt_frow > td:first-child {
    box-shadow: inset 3px 0 0 transparent;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.tt_forumtable .tt_frow:hover > td {
    background: #232323 !important;
}

.tt_forumtable .tt_frow:hover > td:first-child {
    box-shadow: inset 3px 0 0 #c62828;
}

.tt_forumtable td.forumicon {
    padding-right: 4px !important;
    width: 56px;
}

.tt_forumtable .tt_ficon {
    --tt-fc: #c62828;
    align-items: center;
    background: linear-gradient(145deg, var(--tt-fc) 0%, color-mix(in srgb, var(--tt-fc) 55%, #000) 100%);
    border: 1px solid color-mix(in srgb, var(--tt-fc) 40%, #000);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px color-mix(in srgb, var(--tt-fc) 35%, transparent);
    color: #fff;
    display: flex;
    font-size: 21px;
    height: 48px;
    justify-content: center;
    margin: 0;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    width: 48px;
}

.tt_forumtable .tt_ficon i {
    display: block;
    line-height: 1;
}

.tt_forumtable .tt_ficon.forum_off,
.tt_forumtable .tt_ficon.forum_offlock,
.tt_forumtable .tt_ficon.forum_offclose,
.tt_forumtable .tt_ficon.forum_offlink {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: saturate(0.45) brightness(0.62);
}

.tt_forumtable .tt_ficon.forum_on:after {
    background: #ff3b3b;
    border: 2px solid #1f1f1f;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 60, 60, 0.9);
    content: "";
    height: 9px;
    position: absolute;
    right: -4px;
    top: -4px;
    width: 9px;
}

.tt_forumtable .tt_ficon.forum_offlock:after,
.tt_forumtable .tt_ficon.forum_offclose:after,
.tt_forumtable .tt_ficon.forum_offlink:after {
    align-items: center;
    background: #111;
    border: 2px solid #1f1f1f;
    border-radius: 50%;
    bottom: -5px;
    color: #ddd;
    content: "\f023";
    display: flex;
    font-family: FontAwesome;
    font-size: 9px;
    height: 17px;
    justify-content: center;
    position: absolute;
    right: -5px;
    text-shadow: none;
    width: 17px;
}

.tt_forumtable .tt_ficon.forum_offlink:after {
    content: "\f08e";
}

.tt_forumtable .tt_frow:hover .tt_ficon {
    filter: none;
    transform: translateY(-1px);
}

.tt_forumtable td.foruminfo {
    min-width: 0;
}

.tt_forumtable a.tt_forumname:link,
.tt_forumtable a.tt_forumname:visited {
    color: #f4f4f4;
    font-size: 15px;
    font-weight: 700;
}

.tt_forumtable a.tt_forumname:hover {
    color: #ff5a5a;
}

.tt_forumtable .tt_viewers {
    color: #7d7d7d;
    font-size: 11px;
    margin-left: 6px;
}

.tt_forumtable .foruminfo .forumdesc_d2 {
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 3px;
}

.tt_forumtable .forumdesc_d2:empty {
    display: none;
}

.tt_forumtable .tt_mods {
    color: #7d7d7d;
    font-size: 11px;
    margin-top: 5px;
}

.tt_forumtable .tt_mods i {
    color: #b52222;
    margin-right: 3px;
}

.tt_forumtable .subforumList {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 0;
}

.tt_forumtable .subforumList br {
    display: none;
}

.tt_forumtable .tt_sublabel {
    color: #7d7d7d;
    font-size: 11px;
    font-weight: 700;
    margin-right: 2px;
    text-transform: uppercase;
}

.tt_forumtable .tt_subforum {
    align-items: center;
    background: #171717;
    border: 1px solid #2c2c2c;
    border-radius: 3px;
    display: inline-flex;
    font-size: 11.5px;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    transition: border-color 0.15s ease;
}

.tt_forumtable .tt_subforum:hover {
    border-color: #6e1414;
}

.tt_forumtable .tt_subforum a {
    color: #d2d2d2;
}

.tt_forumtable .tt_subforum a:hover {
    color: #fff;
}

.tt_forumtable td.tt_fstats {
    white-space: nowrap;
    width: 140px;
}

.tt_forumtable .tt_fstats div {
    display: inline-block;
    min-width: 58px;
    text-align: center;
}

.tt_forumtable .tt_fstats b {
    color: #f0f0f0;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.tt_forumtable .tt_fstats span {
    color: #777;
    display: block;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tt_forumtable td.lastcol {
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    text-align: left;
    width: 300px;
}

.tt_forumtable .tt_lp_bg {
    bottom: 0;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0) 100%);
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 72%;
}

.tt_forumtable .tt_lp_bg img {
    display: block;
    filter: saturate(0.85) contrast(1.08) brightness(0.8);
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease, filter 0.3s ease;
    width: 100%;
}

.tt_forumtable .tt_lp_bg:after {
    background:
        linear-gradient(to left, rgba(150, 12, 12, 0.28), rgba(150, 12, 12, 0) 75%),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px);
    content: "";
    inset: 0;
    position: absolute;
}

.tt_forumtable .tt_frow:hover .tt_lp_bg img {
    filter: saturate(1) contrast(1.08) brightness(0.95);
    transform: scale(1.07);
}

.tt_forumtable .tt_lastpost {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 14px 16px;
    position: relative;
    z-index: 1;
}

.tt_forumtable .tt_lp_text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.45;
    max-width: 70%;
    min-width: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.7);
}

.tt_forumtable .tt_lp_by i {
    color: #b52222;
    font-size: 10px;
    margin-right: 2px;
}

.tt_forumtable a.tt_lp_subject:link,
.tt_forumtable a.tt_lp_subject:visited {
    color: #f2f2f2;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt_forumtable a.tt_lp_subject:hover {
    color: #ff5a5a;
}

.tt_forumtable .tt_lp_by a {
    font-weight: 700;
}

.tt_forumtable .tt_lp_date {
    color: #858585;
    font-size: 11px;
}

.tt_forumtable .tt_lp_date i {
    color: #b52222;
    margin-right: 2px;
}

.tt_forumtable .tt_lp_empty {
    color: #6d6d6d;
    padding: 14px 16px;
    font-size: 12px;
    gap: 6px;
}

/* Keep the V2 category heading aligned with the original row layout. */
.tt_forumtable .tcat:first-child { padding-left: 84px; }
.tt_forumtable .foruminfo { overflow-wrap: anywhere; }
.tt_forumtable .forumdesc_d2 img { max-width: 100%; height: auto; }
.tt_forumtable .tt_subforum { max-width: 100%; }
.tt_forumtable .tt_subforum a { overflow-wrap: anywhere; }
.tt_forumtable a:focus-visible { outline: 2px solid #c33838; outline-offset: 3px; }

/* Match TurkTeam's existing narrow-screen behavior. */
@media (max-width: 980px) {
    .tt_forumtable td.tt_fstats,
    .tt_forumtable .tt_fstats_heading { display: none; }
}
@media (max-width: 700px) {
    .tt_forumtable td.lastcol,
    .tt_forumtable .tt_lastpost_heading { display: none; }
    .tt_forumtable td.forumicon { width: 44px; }
    .tt_forumtable .tt_ficon { border-radius: 8px; font-size: 17px; height: 40px; width: 40px; }
    .tt_forumtable .tcat:first-child { padding-left: 72px; }
}
