/* Vice forum overview ------------------------------------------------------ */

.vice-forum-page {
    --vf-gap: 1.1rem;
    --vf-sidebar: 19rem;
    position: relative;
    padding-bottom: 3rem;
}

.vice-forum-page::before {
    position: fixed;
    right: -14rem;
    bottom: -16rem;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: rgba(139, 77, 255, .08);
    filter: blur(75px);
    content: "";
    pointer-events: none;
}

.vice-forum-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--vf-sidebar) - 1rem);
    align-items: end;
    gap: var(--vf-gap);
    min-height: 11.25rem;
    margin-bottom: 1.15rem;
    padding: 1.65rem 1rem 1.65rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 2rem;
    background:
        linear-gradient(105deg, rgba(14, 9, 26, .97) 0%, rgba(20, 12, 37, .86) 50%, rgba(14, 9, 27, .72) 100%),
        url('../assets/images/arcadeon-keyart-night-v3.png') center 57% / cover no-repeat;
    box-shadow: 0 28px 75px rgba(3, 2, 10, .3);
    isolation: isolate;
}

.vice-forum-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 76% 15%, rgba(255, 186, 113, .2), transparent 25%),
        linear-gradient(90deg, rgba(255, 178, 198, .08), transparent 38%);
    content: "";
}

.vice-forum-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffb2c6, #ff71b5 42%, #9b63ff 70%, transparent 94%);
    content: "";
    opacity: .82;
}

.vice-forum-hero-copy { position: relative; z-index: 2; }

.vice-forum-breadcrumb.ui.breadcrumb {
    display: inline-flex;
    margin: 0 0 .75rem !important;
    padding: .42rem .72rem;
    border: 1px solid rgba(255, 178, 198, .18);
    border-radius: 999px;
    background: rgba(255, 178, 198, .08);
}

.vice-forum-breadcrumb.ui.breadcrumb .section {
    color: rgba(255, 255, 255, .72) !important;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vice-forum-hero h2.ui.header {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 1000;
    letter-spacing: -.065em;
    line-height: .86;
    text-shadow: 0 12px 35px rgba(3, 2, 10, .48);
}

.vice-forum-hero-roman {
    position: absolute;
    right: 1.4rem;
    bottom: -1.3rem;
    z-index: 0;
    color: rgba(255, 255, 255, .055);
    font-size: 11rem;
    font-weight: 1000;
    letter-spacing: -.12em;
    line-height: .8;
    user-select: none;
}

.vice-forum-search {
    position: relative;
    z-index: 2;
    width: 100%;
    align-self: center;
}

.vice-forum-search .ui.action.input {
    padding: .32rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(8, 5, 17, .64);
    box-shadow: 0 18px 36px rgba(3, 2, 10, .2), inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(13px);
}

.vice-forum-search .ui.action.input > input {
    min-width: 0;
    min-height: 2.7rem;
    padding: .75rem 1rem !important;
    border: 0 !important;
    border-radius: 999px 0 0 999px !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .95rem;
}

.vice-forum-search .ui.action.input > input::placeholder { color: rgba(255, 255, 255, .42); }

.vice-forum-search .ui.action.input > .button {
    width: 2.7rem;
    min-width: 2.7rem;
    height: 2.7rem;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: #170d1f !important;
    background: linear-gradient(135deg, #ffb2c6, #ffc06f) !important;
    box-shadow: 0 10px 24px rgba(255, 178, 198, .2) !important;
    transition: box-shadow .2s ease, transform .2s ease;
}

.vice-forum-search .ui.action.input > .button:hover {
    box-shadow: 0 14px 28px rgba(255, 178, 198, .32) !important;
    transform: scale(1.05);
}

.vice-forum-search .ui.action.input > .button i { margin: 0 !important; }

.vice-forum-layout.ui.grid {
    width: 100% !important;
    margin: 0 !important;
}

.vice-forum-layout > .row {
    display: grid !important;
    width: 100% !important;
    gap: var(--vf-gap);
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vice-forum-layout > .vice-forum-layout-right {
    grid-template-columns: minmax(0, 1fr) var(--vf-sidebar);
}

.vice-forum-layout > .vice-forum-layout-left {
    grid-template-columns: 17rem minmax(0, 1fr);
}

.vice-forum-layout > .vice-forum-layout-three {
    grid-template-columns: 15rem minmax(0, 1fr) 18rem;
}

.vice-forum-layout > .vice-forum-layout-full { grid-template-columns: minmax(0, 1fr); }

.vice-forum-layout.ui.grid > .row > .vice-forum-main,
.vice-forum-layout.ui.grid > .row > .vice-forum-sidebar {
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    padding: 0 !important;
}

.vice-forum-layout.ui.grid > .row > .vice-forum-sidebar {
    justify-self: stretch;
}

.vice-forum-category.ui.segment {
    margin: 0 0 1rem !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 1.75rem !important;
    background:
        radial-gradient(circle at 0 0, rgba(255, 178, 198, .07), transparent 20rem),
        linear-gradient(145deg, rgba(27, 20, 43, .98), rgba(13, 10, 23, .995)) !important;
    box-shadow: 0 24px 65px rgba(3, 2, 10, .25) !important;
}

.vice-forum-category-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 4.35rem;
    padding: .95rem 1.2rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    background: linear-gradient(90deg, rgba(255, 178, 198, .085), rgba(151, 93, 255, .04), transparent);
}

.vice-forum-category-header::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffb2c6, #ff72b3 48%, #9d65ff 78%, transparent);
    content: "";
}

.vice-forum-category-icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 178, 198, .18);
    border-radius: .9rem;
    color: #ffb2c6;
    background: rgba(255, 178, 198, .085);
}

.vice-forum-category-icon i { margin: 0 !important; }

.vice-forum-category-header h3.ui.header { margin: 0 !important; }

.vice-forum-category-header h3 a {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -.025em;
}

.vice-forum-category-accent {
    position: absolute;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(137, 75, 255, .08);
    filter: blur(22px);
}

.vice-forum-list { display: grid; }

.vice-forum-row {
    position: relative;
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr) minmax(15.5rem, .8fr);
    align-items: center;
    gap: 1.05rem;
    min-width: 0;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.vice-forum-row:last-child { border-bottom: 0; }

.vice-forum-row::before {
    position: absolute;
    top: .8rem;
    bottom: .8rem;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #ffb2c6, #9d65ff);
    content: "";
    opacity: 0;
    transform: scaleY(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.vice-forum-row:hover {
    background: linear-gradient(90deg, rgba(255, 178, 198, .065), rgba(255, 255, 255, .018));
    box-shadow: inset 0 0 35px rgba(255, 178, 198, .025);
    transform: translateX(3px);
}

.vice-forum-row:hover::before { opacity: 1; transform: scaleY(1); }

.vice-forum-icon {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 178, 198, .17);
    border-radius: 1.1rem;
    color: #ffb2c6;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 192, 111, .22), transparent 55%),
        rgba(255, 178, 198, .07);
    font-size: 1.2rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vice-forum-icon i { margin: 0 !important; }

.vice-forum-row:hover .vice-forum-icon {
    border-color: rgba(255, 178, 198, .38);
    box-shadow: 0 12px 28px rgba(3, 2, 10, .25), 0 0 24px rgba(255, 178, 198, .09);
    transform: rotate(-3deg) scale(1.045);
}

.vice-forum-info { min-width: 0; }

.vice-forum-name {
    display: inline-block;
    max-width: 100%;
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.vice-forum-name:hover { color: #ffb2c6 !important; }

.vice-forum-description {
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
    line-height: 1.45;
}

.vice-forum-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .58rem;
}

.vice-forum-stats > span,
.vice-forum-subforums {
    display: inline-flex !important;
    align-items: center;
    min-height: 1.75rem;
    gap: .28rem;
    padding: .28rem .58rem;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 999px;
    color: rgba(255, 255, 255, .63);
    background: rgba(255, 255, 255, .035);
    font-size: .73rem;
    line-height: 1;
}

.vice-forum-stats b { color: #ffb2c6; }
.vice-forum-subforums > .dropdown.icon { margin: 0 0 0 .1rem !important; }

.vice-forum-last-post {
    display: flex;
    align-items: center;
    gap: .78rem;
    min-width: 0;
    padding: .74rem .82rem;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 1rem;
    background: rgba(4, 3, 11, .28);
}

.vice-forum-last-avatar.ui.image {
    width: 2.75rem !important;
    height: 2.75rem !important;
    flex: 0 0 auto;
    margin: 0 !important;
    border: 2px solid rgba(255, 178, 198, .34);
    object-fit: cover;
}

.vice-forum-last-copy { min-width: 0; }

.vice-forum-last-title {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, .88) !important;
    font-size: .89rem;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vice-forum-last-title:hover { color: #ffb2c6 !important; }

.vice-forum-last-meta {
    display: flex;
    align-items: center;
    gap: .32rem;
    min-width: 0;
    margin-top: .28rem;
    color: rgba(255, 255, 255, .52);
    font-size: .73rem;
}

.vice-forum-last-meta a {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vice-forum-empty {
    width: 100%;
    color: rgba(255, 255, 255, .45);
    font-size: .8rem;
    text-align: center;
}

.vice-forum-row-redirect { grid-template-columns: 3.75rem minmax(0, 1fr); }

.vice-forum-notice.ui.message {
    border-radius: 1.25rem !important;
    box-shadow: none !important;
}

/* Sidebar widgets --------------------------------------------------------- */

.vice-forum-sidebar-right {
    position: sticky !important;
    top: 6.5rem;
    align-self: flex-start;
}

.vice-forum-sidebar .ui.card {
    position: relative;
    width: 100% !important;
    margin: 0 0 .85rem !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .095) !important;
    border-radius: 1.35rem !important;
    background:
        radial-gradient(circle at 100% 0, rgba(151, 93, 255, .07), transparent 12rem),
        linear-gradient(145deg, rgba(27, 20, 43, .96), rgba(14, 10, 24, .99)) !important;
    box-shadow: 0 18px 45px rgba(3, 2, 10, .2) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vice-forum-sidebar .ui.card::before {
    position: absolute;
    top: 0;
    right: 22%;
    left: 22%;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #ffb2c6, #9d65ff, transparent);
    content: "";
    opacity: .65;
}

.vice-forum-sidebar .ui.card:hover {
    border-color: rgba(255, 178, 198, .18) !important;
    box-shadow: 0 22px 52px rgba(3, 2, 10, .28) !important;
    transform: translateY(-2px);
}

.vice-forum-sidebar .ui.card > .content {
    padding: 1.05rem 1.1rem .95rem !important;
    border-color: rgba(255, 255, 255, .07) !important;
}

.vice-forum-sidebar .ui.card > .extra.content {
    padding: .78rem 1.1rem !important;
    border-color: rgba(255, 255, 255, .065) !important;
    color: rgba(255, 255, 255, .55) !important;
    background: rgba(2, 1, 8, .18);
    font-size: .79rem;
}

.vice-forum-sidebar .ui.card h4.ui.header {
    position: relative;
    margin: 0 0 .85rem !important;
    padding-left: .8rem;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.015em;
}

.vice-forum-sidebar .ui.card h4.ui.header::before {
    position: absolute;
    top: .08rem;
    bottom: .08rem;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb2c6, #9d65ff);
    content: "";
}

.vice-forum-sidebar .ui.card .description {
    color: rgba(255, 255, 255, .65) !important;
    font-size: .84rem;
    line-height: 1.45;
}

.vice-forum-sidebar .ui.card .ui.list { margin: 0 !important; }

.vice-forum-sidebar .ui.card .ui.list > .item {
    min-height: 2.35rem;
    padding: .48rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .58);
}

.vice-forum-sidebar .ui.card .ui.list > .item:last-child { border-bottom: 0; }

.vice-forum-sidebar .ui.card .ui.list > .item .description.right.floated {
    color: #fff !important;
}

.vice-forum-sidebar .ui.card .ui.mini.circular.image {
    width: 2.35rem !important;
    height: 2.35rem !important;
    margin-right: .65rem !important;
    border: 2px solid rgba(255, 178, 198, .32);
    object-fit: cover;
}

.vice-forum-sidebar .ui.image.label {
    margin: .2rem .15rem .2rem 0 !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, .8) !important;
    background: rgba(255, 255, 255, .05) !important;
    box-shadow: none !important;
}

#widget-online-staff .description .item { align-items: center; }
#widget-online-staff .description .item > .content { min-width: 0; }

#widget-statistics .description > .ui.list > .item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

#widget-statistics .description > .ui.list > .item .text {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    color: rgba(255, 255, 255, .64) !important;
    font-weight: 650;
    line-height: 1.25;
}

#widget-statistics .description > .ui.list > .item .description {
    float: none !important;
    min-width: 2rem;
    max-width: 52%;
    margin: 0 !important;
    padding: .22rem .48rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, .045);
    font-weight: 850;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1250px) {
    .vice-forum-row { grid-template-columns: 3.75rem minmax(0, 1fr); }
    .vice-forum-last-post { grid-column: 2; }
}

@media (max-width: 1000px) {
    .vice-forum-page { --vf-sidebar: 18rem; }
    .vice-forum-hero { grid-template-columns: 1fr minmax(15rem, 18rem); padding-right: 1.25rem; }
    .vice-forum-layout > .row { grid-template-columns: minmax(0, 1fr); }
    .vice-forum-sidebar-right { position: static !important; }
}

@media (max-width: 767px) {
    .vice-forum-hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: 0;
        padding: 1.5rem;
        border-radius: 1.55rem;
    }

    .vice-forum-hero h2.ui.header { font-size: clamp(2.8rem, 16vw, 4.2rem); }
    .vice-forum-search { width: 100%; }
    .vice-forum-hero-roman { right: .6rem; font-size: 8rem; }
    .vice-forum-category.ui.segment { border-radius: 1.4rem !important; }
    .vice-forum-row { grid-template-columns: 3.5rem minmax(0, 1fr); padding: 1rem; }
    .vice-forum-last-post { grid-column: 2; }
}

@media (max-width: 520px) {
    .vice-forum-hero { padding: 1.2rem; }
    .vice-forum-hero h2.ui.header { font-size: 2.75rem; }
    .vice-forum-category-header { padding: .9rem 1rem; }
    .vice-forum-category-header h3 a { font-size: 1.1rem; }
    .vice-forum-row, .vice-forum-row-redirect { grid-template-columns: 1fr; gap: .75rem; }
    .vice-forum-icon { width: 2.8rem; height: 2.8rem; }
    .vice-forum-last-post { grid-column: 1; }
    .vice-forum-description { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vice-forum-row,
    .vice-forum-icon,
    .vice-forum-sidebar .ui.card,
    .vice-forum-search .ui.action.input > .button { transition: none; }
}
