/* ForumX v63 — ana sayfa hizalama, tam genişlik yan kartlar ve konu tablosu optimizasyonu */

body.fx-unified-v31.forumx-home-premium-v15 {
    overflow-x: clip !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .page-shell,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-hero,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-feed-stage,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-dashboard,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-main-column,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-side-column,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forums,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-section-header,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-category-list,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-category,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-rows,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .home-block-content,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-table-shell,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-shell {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Bütün ana sayfa blokları aynı sol ve sağ çizgide biter. */
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-hero,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-feed-stage,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-dashboard,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forums,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-section-header,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-category-list,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-category {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Eski birleşik arayüz dosyasındaki kategori kartlarını içeri iten padding kaldırıldı. */
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-category-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-rows {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Masaüstü forum satırları: ana bilgi ve son içerik aynı ızgarada kalır. */
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row,
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row.is-child {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px) !important;
    grid-template-areas: "forum-main forum-latest" !important;
    gap: 12px !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-main {
    grid-area: forum-main !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-latest {
    grid-area: forum-latest !important;
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-latest > a {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Konu akışı hiçbir çözünürlükte ana sayfayı genişletemez. */
body.fx-unified-v31.forumx-home-premium-v15 .fx-home-feed-stage,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .home-block-content,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-table-shell,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-shell {
    overflow-x: hidden !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-v40-table-head,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic:nth-child(even) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: 42px 50px minmax(0, 1fr) minmax(150px, 220px) 68px 76px !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-tab-scroll {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* V41 içindeki grid-area:auto kuralı masaüstü sütun atamalarını sıfırlıyordu. */
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-index.fx-stream-index {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-main.fx-stream-main,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-meta,
body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-metrics {
    display: contents !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-title-line.fx-stream-title-line {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-forum {
    grid-column: 4 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-replies {
    grid-column: 5 !important;
    grid-row: 1 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-views {
    grid-column: 6 !important;
    grid-row: 1 !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar .avatar {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
}

body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-title-line.fx-stream-title-line {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: 12px !important;
}

@media (max-width: 1120px) {
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-dashboard {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-side-column {
        position: static !important;
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        align-items: stretch !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-side-card {
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
    }
}

/* Tablet: forum meta sütunu kaldırılır, cevap ve görüntüleme sütunları korunur. */
@media (max-width: 980px) {
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row.is-child {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "forum-main"
            "forum-latest" !important;
        gap: 8px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-latest {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-v40-table-head,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic:nth-child(even),
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-pinned article.topic-feed-row.fx-stream-topic {
        grid-template-columns: 34px 38px minmax(0, 1fr) 44px 48px !important;
        grid-template-rows: 56px !important;
        min-height: 56px !important;
        height: 56px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-v40-head-forum,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-forum,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-author,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-time,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-separator {
        display: none !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-index.fx-stream-index {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar .avatar {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        margin: 0 auto !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-title-line.fx-stream-title-line {
        grid-column: 3 !important;
        grid-row: 1 !important;
        height: 56px !important;
        padding: 0 10px 0 12px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        border-left: 1px solid var(--v40-line-soft) !important;
        border-right: 1px solid var(--v40-line) !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-replies {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-views {
        grid-column: 5 !important;
        grid-row: 1 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-metric {
        height: 56px !important;
        min-height: 56px !important;
    }
}

@media (max-width: 980px) {
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-category-header {
        padding: 14px 16px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-rows {
        padding: 0 14px 8px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row.is-child {
        padding: 9px 0 11px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-main {
        padding: 6px 2px 7px !important;
    }
}

@media (max-width: 620px) {
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-side-column {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 13px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-side-card {
        height: auto !important;
    }
}

@media (max-width: 700px) {
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-rows {
        padding-left: 11px !important;
        padding-right: 11px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-row.is-child {
        padding: 10px 0 12px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-main {
        padding: 5px 2px 7px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-latest {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-home-forum-latest > a {
        min-height: 54px !important;
        padding: 9px 10px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-tabs {
        grid-template-columns: minmax(0, 1fr) auto !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-tab-scroll {
        display: flex !important;
        width: 100% !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-tab {
        flex: 0 0 126px !important;
        min-width: 126px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-v40-table-head,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic:nth-child(even),
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-pinned article.topic-feed-row.fx-stream-topic {
        grid-template-columns: 28px 38px minmax(0, 1fr) 36px 40px !important;
        grid-template-rows: 58px !important;
        min-height: 58px !important;
        height: 58px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-v40-table-head {
        grid-template-rows: 36px !important;
        min-height: 36px !important;
        height: 36px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-index.fx-stream-index {
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        height: 24px !important;
        margin: 0 auto !important;
        font-size: 10px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-avatar.fx-stream-avatar .avatar {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        margin: 0 auto !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-main.fx-stream-main,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-meta,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-metrics {
        display: contents !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-title-line.fx-stream-title-line {
        grid-column: 3 !important;
        grid-row: 1 !important;
        align-self: stretch !important;
        height: 58px !important;
        min-width: 0 !important;
        padding: 0 6px 0 8px !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .topic-feed-title.fx-stream-title {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        -webkit-line-clamp: unset !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 :where(.topic-prefix, .topic-type-badge, .topic-state) {
        max-width: 52px !important;
        min-height: 20px !important;
        padding: 3px 5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 9px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-metric {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 2px !important;
    }

    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-stream-metric b {
        font-size: 10px !important;
    }
}

@media (max-width: 390px) {
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 .fx-v40-table-head,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic,
    body.fx-unified-v31.forumx-home-premium-v15 .fx-topic-table-v40 article.topic-feed-row.fx-stream-topic:nth-child(even) {
        grid-template-columns: 26px 34px minmax(0, 1fr) 34px 38px !important;
    }
}
