body, .pusher { background-color: #121212 !important; }
/* Navbar Flexbox Styling */
.onyx-navbar {
    background-color: #0F52BA; /* Sapphire */
    border-bottom: 2px solid #FFD700; /* Gold Accent */
    padding: 0;
}

.onyx-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Keeps your site centered on large screens */
    margin: 0 auto;
    padding: 0 1rem;
}

.onyx-nav-links, .onyx-user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Masthead Flexbox Styling */
.onyx-masthead {
    background-color: #121212; 
    background-size: cover;
    background-position: center center;
    padding: 80px 20px !important; /* Increased from 60px to reveal more art */
    max-width: 100%;
    height: auto;
    border-bottom: 4px solid #DC143C;
}

.onyx-masthead-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .onyx-masthead-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Core Page Layout */
.onyx-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.onyx-flash-container {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.onyx-layout {
    display: grid;
    gap: 25px;
    align-items: start;
}

/* Dynamic Grid Columns */
.layout-three-col { grid-template-columns: 280px 1fr 280px; }
.layout-left-col { grid-template-columns: 280px 1fr; }
.layout-right-col { grid-template-columns: 1fr 280px; }
.layout-single-col { grid-template-columns: 1fr; }

/* News Feed Cards */
.onyx-card {
    background-color: #1A1A1A; /* Onyx Segment */
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    color: #F2F0E6; /* Alabaster */
}

.onyx-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2A2A2A;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.onyx-card-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.onyx-card-meta {
    color: #888;
    font-size: 0.9rem;
}

.onyx-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #2A2A2A;
}

.onyx-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Server Status Glass Card */
.onyx-server-status {
    /* Angled grey gradient with slight transparency to keep the glass effect */
    background: linear-gradient(135deg, rgba(111, 111, 111, 0.858) 0%, #d6d6d6f2 100%);
    backdrop-filter: blur(5px); 
    border: 1px solid #999999; /* Lightened to match the grey gradient */
    border-right: 4px solid #0F52BA; /* Keeps your Sapphire accent */
    padding: 20px;
    border-radius: 8px;
    min-width: 320px;
    box-shadow: 0 8px 16px rgba(44, 44, 44, 0.5);
}
/* Mobile Responsiveness */
@media (max-width: 992px) {
    .onyx-layout {
        grid-template-columns: 1fr !important;
    }
}
/* Footer Flexbox Layout */
.onyx-footer {
    background-color: #121212; /* Onyx */
    border-top: 4px solid #0F52BA; /* Sapphire */
    color: #F2F0E6; /* Alabaster */
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

.onyx-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.onyx-footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid #2A2A2A;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.onyx-footer-brand h2 {
    color: #FFD700; /* Gold */
    margin-top: 0;
}

.onyx-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onyx-footer-links li {
    margin-bottom: 10px;
}

.onyx-footer-socials .social-icons {
    display: flex;
    gap: 10px;
}

.onyx-footer-socials .ui.button {
    background-color: #1A1A1A !important;
    color: #F2F0E6 !important;
    transition: background-color 0.2s;
}

.onyx-footer-socials .ui.button:hover {
    background-color: #0F52BA !important; /* Sapphire Hover */
}

.onyx-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .onyx-footer-top {
        flex-direction: column;
    }
    .onyx-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
/* DESKTOP VIEW: Hide the hamburger icon */
@media (min-width: 769px) {
    .onyx-navbar .toc.item {
        display: none !important;
    }
}

/* MOBILE/TABLET VIEW: Hide the text links, keep the hamburger */
@media (max-width: 768px) {
    .onyx-nav-links > a.item:not(.toc), 
    .onyx-nav-links > .ui.dropdown.item {
        display: none !important;
    }
    
    .onyx-navbar .toc.item {
        display: flex !important;
        align-items: center;
    }
}
/* Stylize the Main Site Title */
.onyx-masthead-title h1 {
    font-size: 4.5rem !important; 
    font-weight: 900 !important; 
    text-transform: uppercase;
    letter-spacing: 4px; 
    color: #F2F0E6 !important; 
    margin: 0;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.9), 
                 0 0 15px rgba(255, 255, 255, 0.3) !important; 
    transition: text-shadow 0.4s ease-in-out !important; /* Smooth fade effect */
}
.onyx-masthead:hover .onyx-masthead-title h1 {
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.9), 
                 0 0 40px rgba(255, 255, 255, 1) !important; 
}

/* Shrink the title slightly on mobile so it doesn't break the screen */
@media (max-width: 768px) {
    .onyx-masthead-title h1 {
        font-size: 2.5rem !important;
    }
}
/* Navbar Link Colors */
.onyx-nav-links a.item,
.onyx-nav-links .ui.dropdown.item {
    color: #F2F0E6 !important; /* Alabaster Off-White */
    font-weight: 600;
    transition: color 0.2s ease;
}

.onyx-nav-links a.item:hover,
.onyx-nav-links .ui.dropdown.item:hover {
    color: #FFD700 !important; /* Gold Hover */
}
/* Sidebar Widgets Dark Mode Fix */
.onyx-sidebar .ui.card, 
.onyx-sidebar .ui.segment {
    background-color: #1A1A1A !important;
    border: 1px solid #2A2A2A !important;
    color: #F2F0E6 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Widget Text Overrides */
.onyx-sidebar .ui.card > .content > .header,
.onyx-sidebar .ui.segment > .header,
.onyx-sidebar .ui.card .meta,
.onyx-sidebar .ui.card .description,
.onyx-sidebar .ui.card > .extra {
    color: #F2F0E6 !important;
}
@media (max-width: 768px) {
    .onyx-masthead {
        padding: 80px 20px !important; 
    }
    .onyx-masthead-title h1 {
        font-size: 2.5rem !important;
    }
}