/* Rival Gaming Dark Theme - matching rivalgaming.com */

:root {
    --xf-pageBg--rgb: 10, 10, 15;
    --xf-pageBg: rgb(var(--xf-pageBg--rgb));
    --xf-contentBg--rgb: 18, 18, 26;
    --xf-contentBg: rgb(var(--xf-contentBg--rgb));
    --xf-textColor--rgb: 224, 224, 224;
    --xf-textColor: rgb(var(--xf-textColor--rgb));
    --xf-primaryColor--rgb: 239, 68, 68;
    --xf-primaryColor: rgb(var(--xf-primaryColor--rgb));
    --xf-linkColor--rgb: 239, 68, 68;
    --xf-linkColor: rgb(var(--xf-linkColor--rgb));
}

body {
    background: #0a0a0f;
    color: #e0e0e0;
}

.p-body {
    background: #0a0a0f;
}

.p-body-inner {
    background: transparent;
}

.p-header {
    background: linear-gradient(135deg, #0d0d14 0%, #16162a 100%);
    border-bottom: 2px solid #ef4444;
}

.p-header-logo--image {
    filter: brightness(1.1);
}

.p-nav {
    background: #12121a;
    border-bottom: 1px solid #2a2a3e;
}

.p-nav-inner .p-nav-list > li > a {
    color: #c0c0d0;
}

.p-nav-inner .p-nav-list > li:hover > a,
.p-nav-inner .p-nav-list > li.is-selected > a {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.p-footer {
    background: #0a0a0f;
    border-top: 1px solid #2a2a3e;
    color: #8888aa;
}

/* Content areas */
.block {
    background: #12121a;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
}

.block-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    color: #ef4444;
    border-bottom: 1px solid #2a2a3e;
}

.block-body {
    background: #12121a;
}

/* Node list (forums) */
.node-title a {
    color: #e0e0e0;
}

.node-title a:hover {
    color: #ef4444;
}

.node-description {
    color: #8888aa;
}

.node-stats {
    color: #6666aa;
}

.node-icon i {
    color: #ef4444;
}

.node--category > .node-body {
    background: transparent;
}

.node--forum, .node--page, .node--link {
    border-bottom: 1px solid #1a1a2e;
}

/* Buttons */
.button--primary {
    background: linear-gradient(135deg, #ef4444 0%, #7c3aed 100%);
    border: none;
    color: #fff;
    border-radius: 6px;
}

.button--primary:hover {
    background: linear-gradient(135deg, #f87171 0%, #8b5cf6 100%);
    color: #fff;
}

.button {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    color: #e0e0e0;
    border-radius: 6px;
}

.button:hover {
    background: #2a2a3e;
    border-color: #ef4444;
    color: #ef4444;
}

/* Thread list */
.structItem-title a {
    color: #e0e0e0;
}

.structItem-title a:hover {
    color: #ef4444;
}

.structItem {
    border-bottom: 1px solid #1a1a2e;
}

.structItem-cell {
    color: #8888aa;
}

/* Sidebar */
.p-body-sidebar {
    background: transparent;
}

.block--messages .message {
    background: #12121a;
    border: 1px solid #2a2a3e;
}

/* Forms and inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select,
.input {
    background: #0d0d14;
    border: 1px solid #2a2a3e;
    color: #e0e0e0;
    border-radius: 4px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
.input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Breadcrumbs */
.p-breadcrumbs a {
    color: #8888aa;
}

.p-breadcrumbs a:hover {
    color: #ef4444;
}

/* Page title */
.p-title-value {
    color: #ffffff;
}

/* Sub-nav / tabs */
.tabs-tab.is-active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

/* Alerts and notices */
.notice {
    background: #16162a;
    border: 1px solid #2a2a3e;
    color: #e0e0e0;
}

/* Quick search */
.p-header-icon a {
    color: #c0c0d0;
}

.p-header-icon a:hover {
    color: #ef4444;
}

/* Member cards and overlays */
.overlay-container {
    background: #12121a;
    border: 1px solid #2a2a3e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Category headers */
.block-minorHeader {
    background: #0d0d14;
    color: #ef4444;
    border-bottom: 1px solid #1a1a2e;
}

/* Sticky header */
.p-navSticky.is-sticky {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
}

/* Welcome block */
.block--welcomeBlock {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d14 100%);
    border: 1px solid #ef4444;
}
