/* ==========================================================
   MINDSCAPE
   Arcane Veil universe skin
   Proper standalone MyBB theme overrides
   ========================================================== */

:root {
    --ms-bg-1: #07111b;
    --ms-bg-2: #091626;
    --ms-panel: rgba(5, 14, 25, 0.56);
    --ms-row-1: rgba(7, 22, 37, 0.68);
    --ms-row-2: rgba(5, 17, 30, 0.72);
    --ms-border: rgba(110, 220, 255, 0.28);
    --ms-border-strong: rgba(145, 235, 255, 0.60);
    --ms-link: #62d8e8;
    --ms-link-hover: #b9f6ff;
    --ms-text: #dff6ff;
    --ms-muted: #8ea8be;
}

/* ----------------------------------------------------------
   DREAMSCAPE BACKGROUND
   ---------------------------------------------------------- */
html {
    background: #030812 !important;
}

body {
    color: var(--ms-text);
    background: transparent !important;
}

#container {
    background-image:
        linear-gradient(rgba(3, 10, 18, 0.16), rgba(3, 10, 18, 0.28)),
        url(../../../images/arcaneveil/mindscape_background.png) !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

#content {
    background: transparent !important;
    border: 1px solid rgba(125, 225, 255, 0.34) !important;
    box-shadow:
        inset 0 0 28px rgba(70, 190, 230, 0.03),
        0 0 18px rgba(70, 190, 230, 0.08),
        0 0 32px rgba(0, 0, 0, 0.32) !important;
}

#content > .wrapper,
#content .wrapper {
    background: var(--ms-panel) !important;
    border-color: rgba(110, 220, 255, 0.18) !important;
    box-shadow:
        inset 0 0 40px rgba(35, 110, 145, 0.04),
        0 0 28px rgba(0, 0, 0, 0.35) !important;
}

/* ----------------------------------------------------------
   LINKS / TEXT
   ---------------------------------------------------------- */
a:link,
a:visited {
    color: var(--ms-link);
}

a:hover,
a:active {
    color: var(--ms-link-hover);
    text-shadow: 0 0 6px rgba(130, 230, 255, 0.28);
}

.smalltext,
small,
.author,
.post .author_statistics,
.post .post_meta {
    color: var(--ms-muted) !important;
}

/* ----------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------- */
.navigation {
    background: rgba(7, 24, 40, 0.50) !important;
    border: 1px solid rgba(110, 220, 255, 0.18) !important;
    border-radius: 14px;
    padding: 12px 16px !important;
}

.navigation a,
.navigation a:link,
.navigation a:visited {
    color: #9eeaf5 !important;
}

.navigation a:hover {
    color: #ffffff !important;
}

.navigation .active {
    color: #e9fbff !important;
}

/* ----------------------------------------------------------
   TABLES / PANELS
   ---------------------------------------------------------- */
.tborder {
    background: rgba(5, 16, 28, 0.58) !important;
    border: 1px solid rgba(115, 215, 245, 0.26) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 0 18px rgba(98, 216, 232, 0.08),
        0 0 28px rgba(139, 156, 255, 0.06) !important;
}

.thead {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(3, 12, 22, 0.62) 0%,
            rgba(8, 34, 52, 0.34) 35%,
            rgba(8, 34, 52, 0.28) 65%,
            rgba(3, 12, 22, 0.62) 100%
        ),
        url(../../../images/arcaneveil/mindscape_banner.png)
        center center / cover no-repeat !important;
    color: #eefcff !important;
    border-top: 1px solid rgba(145, 235, 255, 0.60) !important;
    border-bottom: 1px solid rgba(120, 220, 255, 0.42) !important;
    box-shadow:
        inset 0 0 24px rgba(80, 210, 255, 0.10),
        0 0 14px rgba(80, 210, 255, 0.10) !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(130, 230, 255, 0.25) !important;
}

/* Disable ArcaneVeil's old purple divider overlay */
.thead::before {
    background-image: none !important;
}

.thead::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(110, 225, 255, 0.20),
        rgba(160, 240, 255, 0.55),
        rgba(110, 225, 255, 0.20),
        transparent
    ) !important;
}

.thead a,
.thead a:link,
.thead a:visited,
.thead strong {
    color: #f3fdff !important;
}

.thead strong > a::before {
    color: #76deef !important;
    text-shadow: 0 0 6px rgba(110, 225, 255, 0.40) !important;
}

.tcat {
    background: linear-gradient(180deg, rgba(12, 60, 81, 0.96), rgba(7, 36, 53, 0.96)) !important;
    color: #b9eaf2 !important;
    border-color: rgba(110, 220, 255, 0.22) !important;
}

.trow1 {
    background: var(--ms-row-1) !important;
    color: #d9eef5 !important;
}

.trow2 {
    background: var(--ms-row-2) !important;
    color: #d9eef5 !important;
}

.trow1:hover,
.trow2:hover,
#threads tr:hover .trow1,
#threads tr:hover .trow2 {
    background: rgba(12, 34, 54, 0.86) !important;
    box-shadow: inset 3px 0 0 rgba(110, 225, 255, 0.38) !important;
}

.trow1 a,
.trow2 a,
#threads .subject_new a,
#threads .subject_old a {
    color: var(--ms-link) !important;
}

.trow1 a:hover,
.trow2 a:hover,
#threads .subject_new a:hover,
#threads .subject_old a:hover {
    color: var(--ms-link-hover) !important;
}

.tfoot,
.forum_legend {
    background: rgba(4, 13, 23, 0.78) !important;
    color: #91aabd !important;
    border-color: rgba(110, 220, 255, 0.18) !important;
}

/* ----------------------------------------------------------
   STATUS ICONS
   ---------------------------------------------------------- */
.forum_status,
.thread_status {
    border-color: #436676 !important;
    background: #182c38 !important;
}

.forum_on,
.thread_status.newfolder,
.thread_status.newhotfolder,
.thread_status.newhotlockfolder,
.thread_status.newlockfolder,
.thread_status.dot_newfolder,
.thread_status.dot_newhotfolder,
.thread_status.dot_newhotlockfolder,
.thread_status.dot_newlockfolder {
    background: #62d8e8 !important;
    border-color: #a9f3ff !important;
    box-shadow: 0 0 8px rgba(98, 216, 232, 0.50) !important;
}

/* ----------------------------------------------------------
   FORMS / BUTTONS
   ---------------------------------------------------------- */
select,
input.textbox,
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
textarea {
    background: rgba(4, 13, 23, 0.94) !important;
    color: #dff6ff !important;
    border: 1px solid rgba(110, 220, 255, 0.26) !important;
    border-radius: 5px;
}

select:focus,
input.textbox:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: rgba(160, 240, 255, 0.65) !important;
    box-shadow: 0 0 9px rgba(90, 210, 255, 0.14) !important;
}

input.button,
input[type="submit"],
input[type="button"],
button,
a.button,
.postbit_buttons > a {
    background: linear-gradient(180deg, #103b5d 0%, #0a2037 100%) !important;
    border: 1px solid rgba(130, 232, 255, 0.55) !important;
    color: #effcff !important;
    border-radius: 5px !important;
    box-shadow:
        0 0 14px rgba(98, 216, 232, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

input.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
a.button:hover,
.postbit_buttons > a:hover {
    background: linear-gradient(180deg, #154a74 0%, #0d2743 100%) !important;
    border-color: rgba(185, 246, 255, 0.75) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(98, 216, 232, 0.18) !important;
}

/* ----------------------------------------------------------
   POSTS
   ---------------------------------------------------------- */
.post {
    background: rgba(5, 16, 29, 0.68) !important;
    border: 1px solid rgba(105, 215, 245, 0.24) !important;
    box-shadow:
        inset 0 0 24px rgba(70, 190, 230, 0.025),
        0 0 16px rgba(0, 0, 0, 0.24) !important;
    margin-bottom: 18px !important;
}

.post + .post {
    border-top: 1px solid rgba(120, 225, 255, 0.22) !important;
}

.post .post_author,
.post_author {
    background: linear-gradient(
        180deg,
        rgba(8, 27, 44, 0.82),
        rgba(4, 15, 27, 0.82)
    ) !important;
    border: 1px solid rgba(110, 220, 255, 0.22) !important;
    border-left: 3px solid #62d8e8 !important;
    border-right: 1px solid rgba(120, 225, 255, 0.28) !important;
    box-shadow: inset 8px 0 18px rgba(98, 216, 232, 0.035) !important;
}

.post .post_author div.author_avatar img,
.post .author_avatar img {
    background: #050d16 !important;
    border: 1px solid rgba(130, 230, 255, 0.42) !important;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(90, 210, 255, 0.12) !important;
}

.post .post_head,
.post_content .post_head {
    background: rgba(4, 14, 25, 0.76) !important;
    color: #8299a8 !important;
    border-bottom: 1px solid rgba(110, 220, 255, 0.18) !important;
}

.post .post_content,
.post_body {
    background: rgba(5, 18, 32, 0.58) !important;
    color: #dbeef5 !important;
}

.post_body {
    line-height: 1.65 !important;
    padding-top: 16px !important;
    padding-bottom: 18px !important;
}

.post_body a {
    color: #78dfef !important;
}

.post .post_controls,
.post_controls {
    background: rgba(4, 13, 23, 0.70) !important;
    border-top: 1px solid rgba(110, 220, 255, 0.16) !important;
}

blockquote {
    background: rgba(4, 16, 29, 0.72) !important;
    color: #cce5ed !important;
    border: 1px solid rgba(110, 220, 255, 0.20) !important;
    border-left: 3px solid rgba(105, 215, 245, 0.55) !important;
}

.codeblock {
    background: rgba(4, 13, 23, 0.92) !important;
    color: #d8edf4 !important;
    border-color: rgba(110, 220, 255, 0.22) !important;
}

/* ----------------------------------------------------------
   EDITOR / QUICK REPLY
   ---------------------------------------------------------- */
#quick_reply_form,
.sceditor-container,
div.sceditor-toolbar,
div.sceditor-dropdown {
    background-color: rgba(5, 15, 26, 0.94) !important;
    border-color: rgba(110, 220, 255, 0.22) !important;
}

.sceditor-container iframe,
.sceditor-container textarea {
    background: #07121f !important;
    color: #dff6ff !important;
}

.sceditor-group,
.sceditor-button {
    border-color: rgba(110, 220, 255, 0.18) !important;
}

.sceditor-button:hover {
    background: rgba(45, 126, 158, 0.22) !important;
    border-color: rgba(150, 240, 255, 0.55) !important;
}

/* ----------------------------------------------------------
   HEADER / FOOTER - KEEP ARCANE VEIL IDENTITY
   ---------------------------------------------------------- */
#header,
#logo,
#panel .upper,
#panel .lower,
#footer .upper,
#footer .lower {
    border-color: rgba(80, 155, 185, 0.22) !important;
}

#header a,
#panel a,
#footer a {
    color: #b8e9f2 !important;
}

#header a:hover,
#panel a:hover,
#footer a:hover {
    color: #ffffff !important;
}

/* Keep the Arcane Veil banner itself unchanged. */
#logo .arcane-banner {
    filter: none !important;
}
