/* HyflipPlay 2.5.0 — modern forum layer inspired by the spatial rhythm of ModernX. */

.hy-inner-hero.hy-inner-hero-forum {
    min-height: 210px;
    border-bottom: 3px solid var(--hy-accent);
}
.hy-inner-hero.hy-inner-hero-forum .hy-inner-hero-grid {
    min-height: 210px;
    grid-template-columns: minmax(0, 1fr) 100px minmax(250px, .8fr);
}
.hy-inner-hero.hy-inner-hero-forum .hy-inner-title h1 {
    max-width: 760px;
    margin: .55rem 0 0;
    font-size: clamp(2.1rem, 4.7vw, 4.1rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
}
.hy-inner-hero.hy-inner-hero-forum .hy-inner-title > span {
    letter-spacing: .13em;
}
.hy-inner-hero.hy-inner-hero-forum .hy-inner-logo img {
    width: 92px;
    max-height: 150px;
}

/* Shared forum chrome */
body.hyflip-theme .hyflip-page-container > .ui.breadcrumb {
    margin: 0 0 1.1rem !important;
    padding: .65rem .9rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
body.hyflip-theme .ui.breadcrumb .section {
    color: #aab8cf !important;
    font-weight: 700;
}
body.hyflip-theme .ui.breadcrumb .active.section,
body.hyflip-theme .ui.breadcrumb .section:hover {
    color: #fff !important;
}

.hy-forum-toolbar.ui.grid {
    margin: 0 0 1.15rem !important;
    padding: 0 !important;
}
.hy-forum-toolbar > .row {
    align-items: center !important;
    padding: 0 !important;
}
.hy-forum-toolbar h2.ui.header {
    margin: 0 !important;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.1;
}
.hy-forum-toolbar .ui.action.input {
    min-height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: #0c1627;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.hy-forum-toolbar .ui.action.input input {
    border: 0 !important;
    background: transparent !important;
}
.hy-forum-toolbar .ui.action.input .button {
    width: 48px;
    border-radius: 0 !important;
}

.hy-forum-content-grid.ui.grid {
    margin: 0 -1rem !important;
    padding: 0 !important;
}
.hy-forum-content-grid > .row {
    align-items: flex-start !important;
    padding-top: 0 !important;
}
.hy-forum-content-grid > .row > .column {
    padding-top: 0 !important;
}

/* Forum categories */
.hy-forum-category-card.ui.segment {
    overflow: hidden;
    margin: 0 0 1.35rem !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(20,34,57,.96), rgba(13,24,42,.98)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.18) !important;
}
.hy-forum-category-card > .ui.divider {
    display: none;
}
.hy-forum-category-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 76px;
    padding: 1.05rem 1.25rem;
    background:
        linear-gradient(135deg, rgba(74,99,255,.92), rgba(141,86,255,.85)),
        linear-gradient(90deg, var(--hy-accent), var(--hy-accent-2));
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.hy-forum-category-head h3.ui.header {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 900;
}
.hy-forum-category-head h3.ui.header a {
    color: #fff !important;
}
.hy-forum-category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    background: rgba(7,13,25,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
    font-size: 1.1rem;
}
.hy-forum-category-card > .ui.grid {
    margin: 0 !important;
}
.hy-forum-node-row {
    min-height: 96px;
    margin: 0 !important;
    padding: 1rem 1.2rem !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .18s ease, transform .18s ease;
}
.hy-forum-node-row:last-child {
    border-bottom: 0;
}
.hy-forum-node-row:hover {
    background: rgba(255,255,255,.032);
}
.hy-forum-node-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.hy-forum-node-icon > i,
.hy-forum-node-icon .icon {
    display: grid !important;
    width: 46px;
    height: 46px;
    margin: 0 !important;
    place-items: center;
    border: 1px solid rgba(74,99,255,.26);
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(74,99,255,.25), rgba(141,86,255,.2));
    box-shadow: 0 10px 25px rgba(39,61,154,.16);
}
.hy-forum-node-main > a.header,
.hy-forum-node-row a.header {
    display: inline-block;
    margin-bottom: .35rem;
    color: #f5f7ff !important;
    font-size: 1.02rem;
    font-weight: 900;
}
.hy-forum-node-main > a.header:hover,
.hy-forum-node-row a.header:hover {
    color: #aebcff !important;
}
.hy-forum-node-main .description,
.hy-forum-last-post .description {
    color: #91a0b9 !important;
    font-size: .88rem;
    line-height: 1.5;
}
.hy-forum-last-post {
    min-height: 62px;
    padding: .8rem 1rem !important;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 13px;
    background: rgba(7,13,25,.28);
}
.hy-forum-last-post .avatar {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
}

/* Sidebar widgets */
.hy-forum-sidebar {
    position: sticky !important;
    top: 1.2rem;
}
.hy-forum-widget.ui.card,
.hy-forum-sidebar .ui.card {
    width: 100% !important;
    margin: 0 0 1rem !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(18,31,52,.98), rgba(11,20,35,.98)) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.16) !important;
}
.hy-forum-widget > .content,
.hy-forum-sidebar .ui.card > .content {
    padding: 1rem 1.05rem !important;
}
.hy-widget-heading {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1rem !important;
    font-size: .88rem !important;
    font-weight: 900 !important;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.hy-widget-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-2));
    box-shadow: 0 8px 18px rgba(74,99,255,.2);
}
.hy-forum-widget .description {
    color: #cbd5e6 !important;
    line-height: 1.55;
}
.hy-forum-widget .extra.content {
    color: #8e9cb4 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    background: rgba(255,255,255,.018) !important;
}
.hy-forum-widget .ui.list .item,
.hy-forum-widget .ui.list .item .header,
.hy-forum-widget .ui.list .item .description,
.hy-forum-widget .text,
.hy-forum-widget b {
    color: #dce5f5 !important;
}
.hy-forum-widget .ui.image.label {
    margin: .25rem .2rem .25rem 0;
    color: #e8eef9 !important;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.045) !important;
}

/* Forum listing tables */
.hy-forum-table.ui.table {
    overflow: hidden;
    margin: 0 0 1.2rem !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(18,31,52,.97), rgba(12,22,38,.98)) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.14) !important;
}
.hy-forum-table.ui.table thead th {
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(74,99,255,.88), rgba(141,86,255,.78)) !important;
}
.hy-forum-table.ui.table thead h4 {
    margin: 0 !important;
    font-size: .86rem;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.hy-forum-table.ui.table tbody tr {
    background: transparent !important;
    transition: background .16s ease;
}
.hy-forum-table.ui.table tbody tr:hover {
    background: rgba(255,255,255,.035) !important;
}
.hy-forum-table.ui.table tbody td {
    padding: 1rem 1.15rem !important;
    border-top: 1px solid rgba(255,255,255,.055) !important;
    color: #b7c3d6 !important;
}
.hy-forum-table .ui.header {
    margin: 0 !important;
}
.hy-forum-table .ui.header > i.icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin-right: .8rem !important;
    place-items: center;
    border-radius: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(74,99,255,.26), rgba(141,86,255,.2));
}
.hy-forum-table .ui.header a {
    color: #f4f7ff !important;
    font-weight: 900;
}
.hy-forum-table .ui.header a:hover {
    color: #aebcff !important;
}
.hy-forum-table .sub.header {
    margin-top: .28rem !important;
    color: #8998b0 !important;
}

/* Topic page */
.hy-topic-heading.ui.header {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0 0 1rem !important;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(17,29,50,.98), rgba(11,20,36,.98));
    box-shadow: 0 16px 36px rgba(0,0,0,.13);
}
.hy-topic-heading .topic.title {
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.hy-topic-heading .sub.header {
    color: #8998b0 !important;
}
.hy-topic-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
    margin: 0 0 1rem !important;
}
.hy-topic-actions form,
.hy-topic-actions .button {
    margin: 0 !important;
}
.hy-topic-card.ui.segments {
    overflow: hidden;
    margin: 0 0 1.2rem !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(18,31,52,.98), rgba(12,22,38,.98)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.16) !important;
}
.hy-topic-card > .segment {
    border: 0 !important;
    background: transparent !important;
}
.hy-topic-card #post-sidebar {
    padding: 1.4rem 1.15rem !important;
    border-right: 1px solid rgba(255,255,255,.065) !important;
    background: linear-gradient(180deg, rgba(74,99,255,.075), rgba(255,255,255,.012));
}
.hy-topic-card #post-sidebar:before,
.hy-topic-card #post-sidebar:after {
    display: none !important;
}
.hy-topic-card #post-sidebar .ui.small.image {
    width: 92px;
    height: 92px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
    object-fit: cover;
}
.hy-topic-card #post-sidebar h3.ui.header {
    margin: .8rem 0 .45rem !important;
}
.hy-topic-card #post-sidebar .groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem;
}
.hy-topic-card #post-sidebar .ui.list {
    margin-top: .9rem;
}
.hy-topic-card #post-sidebar .ui.list .item {
    padding: .4rem 0 !important;
}
.hy-topic-card #post-sidebar .ui.list .header {
    color: #dce5f5 !important;
    font-size: .8rem !important;
}
.hy-topic-card #post-sidebar .ui.list .description {
    color: #8594ac !important;
    font-size: .78rem;
}
.hy-topic-card #post-content {
    min-height: 230px;
    padding: 1.5rem 1.6rem !important;
}
.hy-topic-card .forum_post {
    color: #d8e1f0 !important;
    font-size: .98rem;
    line-height: 1.75;
}
.hy-topic-card .forum_post p {
    margin: 0 0 1rem;
}
.hy-topic-card .forum_post blockquote,
.hy-topic-card .forum_post .blockquote {
    margin: 1.1rem 0;
    padding: .85rem 1rem;
    border-left: 3px solid var(--hy-accent);
    border-radius: 0 11px 11px 0;
    background: rgba(74,99,255,.075);
}
.hy-topic-card #post-meta {
    margin: 0 !important;
    padding: .75rem 1rem !important;
    color: #8998b0 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    background: rgba(5,11,21,.3) !important;
}
.hy-topic-card #post-meta .ui.button {
    border-radius: 9px !important;
    color: #dce6f7 !important;
    background: rgba(255,255,255,.045) !important;
}
.hy-topic-card #post-meta .ui.button:hover {
    background: rgba(255,255,255,.09) !important;
}
.hy-topic-card #reactions {
    border: 1px solid rgba(255,255,255,.06) !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.025) !important;
}

/* Editor and forum forms */
body.hyflip-theme [id^="forum-"] .ui.segment,
body.hyflip-theme #forum-search-result,
body.hyflip-theme .ui.form .field > .tox,
body.hyflip-theme .ui.comments {
    border-radius: 14px;
}
body.hyflip-theme .tox.tox-tinymce {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 13px !important;
}
body.hyflip-theme .ui.pagination.menu {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 11px !important;
    background: rgba(12,22,38,.96) !important;
}
body.hyflip-theme .ui.pagination.menu .item.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-2)) !important;
}

@media (max-width: 991px) {
    .hy-forum-sidebar {
        position: static !important;
    }
    .hy-forum-category-head {
        min-height: 68px;
    }
}

@media (max-width: 767px) {
    .hy-inner-hero.hy-inner-hero-forum,
    .hy-inner-hero.hy-inner-hero-forum .hy-inner-hero-grid {
        min-height: 175px;
    }
    .hy-inner-hero.hy-inner-hero-forum .hy-inner-hero-grid {
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 1rem;
    }
    .hy-inner-hero.hy-inner-hero-forum .hy-inner-title h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .hy-inner-hero.hy-inner-hero-forum .hy-inner-logo img {
        width: 64px;
        max-height: 110px;
    }
    .hy-forum-toolbar.ui.grid > .row > .column {
        width: 100% !important;
        padding: .45rem 0 !important;
    }
    .hy-forum-content-grid.ui.grid {
        margin: 0 !important;
    }
    .hy-forum-content-grid > .row > .column,
    .hy-forum-sidebar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .hy-forum-category-card.ui.segment {
        border-radius: 14px !important;
    }
    .hy-forum-category-head {
        padding: .9rem 1rem;
    }
    .hy-forum-node-row {
        min-height: auto;
        padding: 1rem !important;
    }
    .hy-forum-node-main {
        width: 100% !important;
    }
    .hy-forum-table.ui.table {
        display: block !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    .hy-forum-table.ui.table tbody td {
        min-width: 170px;
    }
    .hy-topic-heading.ui.header {
        padding: 1rem;
    }
    .hy-topic-actions {
        float: none !important;
        justify-content: flex-start;
    }
    .hy-topic-card #post-sidebar {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.065) !important;
    }
    .hy-topic-card #post-content {
        min-height: auto;
        padding: 1.2rem !important;
    }
    .hy-topic-card #post-meta {
        text-align: left !important;
    }
}

/* Reply composer and auxiliary forum screens */
body.hyflip-theme #topic-reply,
body.hyflip-theme #new-topic,
body.hyflip-theme #post-edit,
body.hyflip-theme #forum-search,
body.hyflip-theme #forum-search-result.ui.segments,
body.hyflip-theme #alerts .ui.segment {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(18,31,52,.98), rgba(12,22,38,.98)) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.15) !important;
}
body.hyflip-theme #topic-reply {
    margin-top: 1.2rem !important;
}
body.hyflip-theme #topic-reply #reply-sidebar {
    padding: 1.25rem !important;
    border-right: 1px solid rgba(255,255,255,.065) !important;
    background: rgba(74,99,255,.055);
}
body.hyflip-theme #topic-reply #reply-sidebar:before,
body.hyflip-theme #topic-reply #reply-sidebar:after {
    display: none !important;
}
body.hyflip-theme #topic-reply #reply-sidebar .ui.small.image {
    width: 78px;
    height: 78px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.1);
    object-fit: cover;
}
body.hyflip-theme #topic-reply .ui.form,
body.hyflip-theme #new-topic .ui.form,
body.hyflip-theme #post-edit .ui.form,
body.hyflip-theme #forum-search .ui.form {
    padding: .2rem;
}
body.hyflip-theme #new-topic h2.ui.header,
body.hyflip-theme #post-edit h2.ui.header,
body.hyflip-theme #forum-search h2.ui.header,
body.hyflip-theme #alerts + h2.ui.header {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}
body.hyflip-theme #forum-search-result > .segment {
    border-color: rgba(255,255,255,.06) !important;
    background: transparent !important;
}
body.hyflip-theme #forum-search-result h3.ui.header a {
    color: #f4f7ff !important;
}
body.hyflip-theme #forum-search-result .bottom.attached.segment {
    color: #8f9db3 !important;
    background: rgba(5,11,21,.28) !important;
}

@media (max-width: 767px) {
    body.hyflip-theme #topic-reply #reply-sidebar {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.065) !important;
    }
}
