/* Insanity Gaming Forum - Dark Blue/Cyan Theme Override */

/* ============ BODY & BASE ============ */
body {
    background-color: #0a0e17 !important;
    background-image: none !important;
}

/* ============ GLOBAL PALETTE OVERRIDES ============ */

/* Header / Top bar */
.header,
.b-header,
header.b-header {
    background-color: #0f172a !important;
    background-image: none !important;
}

.header-toolbar,
.b-header .h-right,
.b-toolbar {
    background-color: #0f172a !important;
}

/* Sub-tab bar / Navigation */
.b-header .b-subtabbar,
.subtabbar,
.b-tabbar,
.h-subtabbar {
    background-color: #111827 !important;
    background-image: none !important;
}

/* Main content area */
.b-content-entry,
.conversation-content-entry,
.b-module,
.widget,
.widget-content,
.b-post,
.b-post__body,
.js-post,
.canvas-widget {
    background-color: #111827 !important;
}

/* Secondary backgrounds */
.b-post__content,
.postbit-content,
.b-cell,
.b-table__row,
.conversation-list-item {
    background-color: #1e293b !important;
}

/* Alternating row backgrounds */
.b-table__row:nth-child(even),
.b-post:nth-child(even) {
    background-color: #162033 !important;
}

/* ============ ACCENT COLORS - Brown → Cyan/Blue ============ */

/* Links */
a,
a:link,
.b-link,
.b-post a,
.js-link {
    color: #38bdf8 !important;
}

a:hover,
a:focus,
.b-link:hover {
    color: #7dd3fc !important;
}

a:visited {
    color: #818cf8 !important;
}

/* ============ BUTTONS ============ */

/* Primary buttons */
.b-button--primary,
.b-button.b-button--primary,
button.b-button--primary,
.b-button--arrow,
.button-primary,
.js-button-primary {
    background-color: #0369a1 !important;
    background-image: none !important;
    border-color: #0284c7 !important;
    color: #f0f9ff !important;
}

.b-button--primary:hover,
.b-button--arrow:hover {
    background-color: #0284c7 !important;
    border-color: #38bdf8 !important;
}

/* Secondary buttons */
.b-button--secondary,
.b-button.b-button--secondary {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.b-button--secondary:hover {
    background-color: #334155 !important;
    border-color: #38bdf8 !important;
}

/* ============ TOOLBAR / NAV TABS ============ */

.b-subtabbar a,
.subtabbar a,
.h-subtabbar a,
.b-tabbar a {
    color: #94a3b8 !important;
}

.b-subtabbar a:hover,
.subtabbar a:hover,
.h-subtabbar a:hover,
.b-tabbar a:hover,
.b-subtabbar a.active,
.b-subtabbar a.is-active {
    color: #38bdf8 !important;
}

/* Active tab indicator */
.b-subtabbar .h-active-tab,
.b-subtabbar a.is-active,
.b-tabbar .active {
    border-bottom-color: #06b6d4 !important;
}

/* ============ TEXT COLORS ============ */

/* Primary text */
body,
.b-post__body,
.b-content-entry,
p,
span,
div {
    color: #cbd5e1;
}

/* Secondary/muted text */
.b-post__date,
.b-post__count,
.text-muted,
.b-userinfo__additional,
.meta-data {
    color: #64748b !important;
}

/* Headings / thread titles */
h1, h2, h3, h4,
.b-post__title,
.conversation-title,
.topic-title a,
.channel-title {
    color: #e2e8f0 !important;
}

/* Username colors - keep original for rank colors but brighten */
.b-userinfo__name a {
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* ============ FORM FIELDS ============ */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select,
.b-form-input input,
.b-form-input textarea,
.b-form-input select,
.cke_inner,
.cke_contents {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2) !important;
}

/* ============ BORDERS ============ */

.b-post,
.b-module,
.widget,
.b-table__row,
.b-content-entry,
hr {
    border-color: #1e293b !important;
}

/* ============ FOOTER ============ */

.b-footer,
footer,
.footer {
    background-color: #0a0e17 !important;
    color: #64748b !important;
}

.b-footer a,
footer a {
    color: #38bdf8 !important;
}

/* ============ NOTICES / ANNOUNCEMENTS ============ */

.b-notice,
.notice,
.announcement {
    background-color: #172554 !important;
    border-color: #1e40af !important;
    color: #bfdbfe !important;
}

/* ============ BADGES / TAGS ============ */

.b-badge,
.label,
.tag {
    background-color: #164e63 !important;
    color: #67e8f9 !important;
}

/* ============ PAGINATION ============ */

.b-pagination a,
.pagination a {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

.b-pagination a:hover,
.pagination a:hover {
    background-color: #334155 !important;
    color: #38bdf8 !important;
    border-color: #06b6d4 !important;
}

.b-pagination .active,
.b-pagination .is-active,
.pagination .active {
    background-color: #0369a1 !important;
    color: #f0f9ff !important;
    border-color: #0284c7 !important;
}

/* ============ QUOTE BLOCKS ============ */

.bbcode_quote,
blockquote,
.b-bbcode-quote {
    background-color: #0f172a !important;
    border-left: 3px solid #06b6d4 !important;
    color: #94a3b8 !important;
}

/* ============ CODE BLOCKS ============ */

.bbcode_code,
code,
pre,
.b-bbcode-code {
    background-color: #0a0e17 !important;
    border-color: #1e293b !important;
    color: #67e8f9 !important;
}

/* ============ SCROLLBAR ============ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e17;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ============ SELECTION ============ */

::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #f0f9ff;
}

/* ============ SEARCH ============ */

.b-header .b-search input,
.header-search input {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.b-header .b-search input:focus,
.header-search input:focus {
    border-color: #06b6d4 !important;
}

/* ============ DROPDOWNS / POPUPS ============ */

.b-dropdown,
.b-popup,
.popover,
.tooltip-inner {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* ============ LOADING / SPINNER ============ */

.b-loading,
.spinner {
    border-color: #06b6d4 !important;
}

/* ============ CONTENT TOOLBAR ============ */

.b-content-entry__toolbar,
.b-toolbar,
.post-toolbar {
    background-color: #111827 !important;
    border-color: #1e293b !important;
}

/* ============ MODULE HEADERS ============ */

.b-module__header,
.widget-header,
.block-header {
    background-color: #0f172a !important;
    border-bottom-color: #06b6d4 !important;
    color: #e2e8f0 !important;
}

/* ============ CHANNEL / FORUM LIST ============ */

.b-channel,
.b-channel__content,
.channel-list-item {
    background-color: #111827 !important;
    border-color: #1e293b !important;
}

.b-channel:hover,
.channel-list-item:hover {
    background-color: #162033 !important;
}

/* Thread status icons - give them a glow */
.b-icon--topic,
.thread-icon {
    color: #06b6d4 !important;
}

/* ============ EDITOR ============ */

.cke_top,
.cke_toolbar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.cke_button:hover {
    background-color: #334155 !important;
}

/* ============ ONLINE STATUS ============ */

.b-online-indicator--online,
.online-status--online {
    color: #22c55e !important;
}

.b-online-indicator--offline,
.online-status--offline {
    color: #64748b !important;
}

/* ============ SMOOTH TRANSITIONS ============ */

a,
.b-button,
button,
input,
textarea,
.b-post,
.b-channel {
    transition: all 0.15s ease !important;
}

/* ============ HIDE FOOTER LINKS ============ */

/* Hide Contact Us, Help, Privacy from footer */
a[href*="contact-us"],
a[href*="contactus"],
a[href*="/help"],
a[href*="faq"] {
    display: none !important;
}
