/* =========================================================
   KRUZIFIX UI READABILITY v0.19
   Old-web readability pass. No modern-card redesign.
   ========================================================= */

/* ---------- SHARED SECTION LANGUAGE ---------- */

body.forum-view .main > h1,
.profile-settings-section > h2,
.profile-readable-section > h2 {
    padding-bottom: 7px;
    border-bottom: 1px solid #2b2b2b;
}

.profile-readable-section {
    margin-top: 34px;
    padding: 15px 17px 17px;

    border: 1px solid #242424;
    border-left: 3px solid #5c1717;

    background: #020202;
}

.profile-readable-section > h2 {
    margin-top: 0;
    color: #bdbdbd;
    letter-spacing: 1px;
}

.profile-header {
    padding: 15px 17px;

    border: 1px solid #292929;
    border-left: 3px solid #711919;

    background: #020202;
}

.profile-avatar {
    padding-right: 18px;
}

.profile-information {
    padding-left: 4px;
}

.profile-information > p {
    line-height: 1.7;
}

/* ---------- PROFILE SETTINGS ---------- */

.profile-settings-section {
    background: #000;
}

.profile-form {
    display: grid;
    gap: 14px;

    max-width: 900px;
}

.profile-form > input[type="hidden"] {
    display: none;
}

.profile-setting-panel {
    position: relative;

    box-sizing: border-box;

    margin: 0 !important;
    padding: 38px 15px 15px !important;

    border: 1px solid #292929 !important;
    border-left: 3px solid #4f4f4f !important;

    background: #030303;
}

.profile-setting-panel:nth-of-type(odd) {
    background: #020202;
}

.profile-setting-panel::before {
    content: attr(data-section-title);

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    box-sizing: border-box;

    padding: 7px 10px;

    border-bottom: 1px solid #252525;

    background: #080808;

    color: #888;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.35px;
}

.profile-setting-panel > label:first-of-type {
    color: #ccc;
    font-weight: 900;
}

.profile-setting-panel input[type="file"],
.profile-setting-panel select,
.profile-setting-panel textarea {
    margin-top: 5px;
}

.profile-setting-panel textarea {
    width: min(720px, 100%);
    box-sizing: border-box;

    padding: 8px;

    border: 1px solid #414141;

    background: #000;
    color: #c8c8c8;

    font-family: "Times New Roman", Times, serif;
}

.profile-setting-panel textarea:focus,
.profile-setting-panel select:focus,
.profile-setting-panel input[type="file"]:focus {
    border-color: #7d2525;
    outline: 1px dotted #4a1515;
}

.profile-setting-panel .field-note {
    margin-top: 8px;
    padding: 7px 8px;

    border-left: 2px solid #292929;

    background: #000;

    color: #666;
}

.profile-setting-admin {
    border-left-color: #8d6d12 !important;
}

.profile-setting-admin::before {
    color: #d4af37;

    background-image: linear-gradient(
        90deg,
        #080706,
        #151005,
        #080706
    );
}

.profile-settings-submit {
    margin-top: 2px !important;
    padding: 13px 15px !important;

    border-top: 1px solid #3b1515;

    background: #030000;
}

.profile-settings-submit input[type="submit"] {
    font-weight: 900;
}

/* Notes produced when a feature is locked should still look separated. */
.profile-form > .field-note {
    box-sizing: border-box;

    margin: 0;
    padding: 10px 12px;

    border: 1px dotted #303030;
    border-left: 3px solid #303030;

    background: #020202;
}


/* ---------- FORUM INDEX ---------- */

body.forum-view .forum-intro {
    margin-bottom: 28px;
    padding: 12px 14px;

    border: 1px solid #242424;
    border-left: 3px solid #5f1717;

    background: #020202;
}

body.forum-view .forum-section {
    margin-top: 28px;
}

body.forum-view .forum-section > h2 {
    margin-bottom: 16px;
    padding: 7px 10px;

    border-top: 1px solid #252525;
    border-bottom: 1px solid #252525;
    border-left: 3px solid #6b1818;

    background: #030303;

    color: #aaa;
    font-size: 14px;
    letter-spacing: 1.4px;
}

body.forum-view .forum-category {
    overflow: hidden;

    margin-bottom: 28px;

    border: 1px solid #262626;
    border-left: 3px solid #245c49;

    background: #010101;
}

body.forum-view .forum-category-head {
    margin: 0;
    padding: 10px 12px;

    border-bottom: 1px solid #292929;

    background: #050505;
}

body.forum-view .forum-category-title {
    font-size: 16px;
}

body.forum-view .forum-category-description {
    max-width: 900px;
    color: #777;
    line-height: 1.45;
}

body.forum-view .forum-empty {
    margin: 0;
    padding: 15px 12px;
}

body.forum-view .forum-thread-table th {
    padding: 7px 9px;

    border-bottom: 1px solid #303030;

    background: #030303;

    color: #777;
    font-weight: 900;
}

body.forum-view .forum-thread-table td {
    padding: 11px 9px;
    border-bottom: 1px dotted #242424;
}

body.forum-view .forum-thread-table th + th,
body.forum-view .forum-thread-table td + td {
    border-left: 1px dotted #1e1e1e;
}

body.forum-view .forum-thread-table tbody tr:nth-child(even) {
    background: #020202;
}

body.forum-view .forum-thread-table tbody tr:hover {
    background: #070707;
}

body.forum-view .forum-thread-title {
    font-size: 14px;
}

body.forum-view .forum-thread-meta {
    color: #666;
}

/* Announcements remain the dominant category. */
body.forum-view .forum-category-news {
    margin-top: 4px;
    margin-bottom: 36px;

    border: 1px solid #604e1b;
    border-left: 4px solid #c99b20;

    box-shadow:
        0 0 10px rgba(212, 175, 55, .07);
}

body.forum-view .forum-category-news .forum-category-head {
    padding: 14px 14px 12px;

    border-bottom: 1px solid #5f4c19;

    background: #050402;
}

body.forum-view .forum-category-news .forum-category-title {
    font-size: 21px !important;
    letter-spacing: 1.8px !important;
}

body.forum-view .forum-category-news .forum-category-description {
    margin-top: 8px !important;
    font-size: 13px;
}

body.forum-view .forum-create {
    margin-top: 30px;
    padding: 14px 16px 18px;

    border: 1px solid #292929;
    border-left: 3px solid #5f1717;

    background: #020202;
}


/* ---------- SHOUTBOX ---------- */

body.forum-view .shoutbox {
    padding: 11px;

    border: 1px solid #252525;
    border-top: 2px solid #254d40;

    background: #020202;
}

body.forum-view .shoutbox-title {
    margin-bottom: 4px;
    padding-bottom: 7px;

    border-bottom: 1px dotted #303030;
}

body.forum-view .shoutbox-messages {
    border-color: #383838;
}

body.forum-view .shout-entry {
    padding-bottom: 7px;
    border-bottom: 1px dotted #191919;
}


/* ---------- THREAD PAGE ---------- */

.forum-breadcrumbs {
    padding: 7px 9px;

    border-left: 3px solid #5a1717;

    background: #020202;
}

.forum-post {
    overflow: hidden;

    margin-bottom: 24px;
    padding: 0;

    border: 1px solid #272727;
    border-left: 3px solid #343434;

    background: #010101;
}

.forum-post-author {
    box-sizing: border-box;

    padding: 14px 11px;

    border-right: 1px dotted #303030;

    background: #030303;
}

.forum-post-body-wrap {
    box-sizing: border-box;
    padding: 13px 15px 17px;
}

.forum-post-head {
    margin-bottom: 14px;
    padding-bottom: 8px;

    border-bottom: 1px dotted #2c2c2c;
}

.forum-post-body {
    line-height: 1.62;
}

.thread-tools {
    padding: 12px;

    border: 1px solid #252525;
    border-left: 3px solid #5e1717;

    background: #020202;
}

.forum-reply-form {
    padding: 14px 16px 18px;

    border: 1px solid #292929;
    border-left: 3px solid #245c49;

    background: #020202;
}

.forum-reply-form > h2,
.forum-reply-form > h3 {
    margin-top: 0;
}


/* ---------- SMALL SCREENS ---------- */

@media (max-width: 850px) {
    .profile-readable-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .profile-setting-panel {
        padding-left: 11px !important;
        padding-right: 11px !important;
    }

    .forum-post-author {
        border-right: 0;
        border-bottom: 1px dotted #303030;
    }
}
