/*
 * ============================================
 * WORLD DOMINATION SOFTWARE - UNIFIED CSS
 * ============================================
 * 
 * ORWELLIAN COLOR SCHEME:
 * - Header Background: #000000 (Pure Black - header/logo area)
 * - Main Content Background: #E8E4D8 (Off-white/tan for readability)
 * - Content Boxes: #D4CFC0 (Lighter tan)
 * - Text on Light: #1a1a1a (Dark gray for readability on tan)
 * - Headings: #4a4a4a (Dark gray)
 * - Accent/Links: #8B4513 (Rust/brown - Orwellian accent)
 * - Secondary Links: #6B3410 (Darker brown)
 * - Buttons Primary: #8B4513 (Rust brown)
 * - Buttons Secondary: #3a3a3a (Dark Gray)
 * - Logo Color: #B8621B (Rusty orange-brown)
 * 
 * NO TEXT SHADOWS - EVER!
 * ORWELLIAN AESTHETIC: BROWNS, GRAYS, TANS
 * CONSISTENT ACROSS ALL PAGES
 */

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

* {
    text-shadow: none !important;
    box-sizing: border-box;
}

*:before,
*:after {
    text-shadow: none !important;
}

body {
    background: #E8E4D8 !important;
    color: #1a1a1a !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* ============================================
   TYPOGRAPHY - NO SHADOWS!
   ============================================ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #4a4a4a !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
}

h1, .h1 { font-size: 2.5em !important; }
h2, .h2 { font-size: 2.2em !important; }
h3, .h3 { font-size: 1.8em !important; }
h4, .h4 { font-size: 1.4em !important; }
h5, .h5 { font-size: 1.2em !important; }
h6, .h6 { font-size: 1em !important; }

p {
    color: #1a1a1a !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
    text-shadow: none !important;
}

strong, b {
    color: #8B4513 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

a {
    color: #8B4513 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: color 0.3s ease !important;
}

a:hover,
a:focus {
    color: #6B3410 !important;
    text-decoration: underline !important;
}

ul, ol {
    color: #1a1a1a !important;
    padding-left: 30px !important;
}

li {
    color: #1a1a1a !important;
    padding: 5px 0 !important;
    text-shadow: none !important;
}

/* ============================================
   CARD / PANEL COMPONENTS (Orwellian palette)
   Shared across staff, wiki, and tools pages
   ============================================ */

.wds-card,
.staff-card,
.tool-card,
.wiki-card,
.wiki-content,
.download-all-box,
.dir-notice,
.ops-card,
.rust-panel {
    background: #D4CFC0 !important;
    border: 1px solid #B8A996 !important;
    border-radius: 14px !important;
    color: #1a1a1a !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

:is(.wds-card,
.staff-card,
.tool-card,
.wiki-card,
.wiki-content,
.download-all-box,
.dir-notice,
.ops-card,
.rust-panel) {
    color: #1a1a1a !important;
}

:is(.wds-card,
.staff-card,
.tool-card,
.wiki-card,
.wiki-content,
.download-all-box,
.dir-notice,
.ops-card,
.rust-panel) :is(p, li, span, td, th, h1, h2, h3, h4, h5, h6, label, small, strong, em, ul, ol) {
    color: #1a1a1a !important;
}

.wds-card code,
.staff-card code,
.tool-card code,
.wiki-card code,
.wiki-content code,
.dir-notice code,
.ops-card code,
.rust-panel code {
    background: #111827 !important;
    color: #E5E7EB !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
}

.wds-card table td,
.wds-card table th,
.staff-card table td,
.staff-card table th,
.tool-card table td,
.tool-card table th,
.rust-panel table td,
.rust-panel table th {
    color: #1a1a1a !important;
    border-color: #C6B8A0 !important;
}

.link-tile {
    background: #E8E4D8 !important;
    border-color: #B8A996 !important;
}

.link-tile:hover {
    background: #ddd5c4 !important;
}

.staff-card a,
.tool-card a,
.wiki-card a,
.wiki-content a,
.download-all-box a,
.dir-notice a,
.ops-card a,
.rust-panel a {
    color: #8B4513 !important;
}

.staff-card a:hover,
.tool-card a:hover,
.wiki-card a:hover,
.wiki-content a:hover,
.download-all-box a:hover,
.dir-notice a:hover,
.ops-card a:hover,
.rust-panel a:hover {
    color: #A0522D !important;
}

/* ============================================
   HEADER / HERO TEXT
   ============================================ */

.header-right-column .header-quote,
.intro .header-quote {
    color: #8B4513 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

.header-title {
    color: #8B4513 !important;
    text-transform: uppercase !important;
}

/* ============================================
   NAVIGATION LAYOUT
   ============================================ */

@media (min-width: 992px) {
	.navbar.navbar-default,
	#site-nav-bar {
		background: transparent !important;
		border: none !important;
	}

	#site-nav-bar {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 35px !important;
		width: 100% !important;
	}

	#site-nav-bar .navbar-nav {
		float: none !important;
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 22px !important;
		margin: 0 !important;
	}

	#site-nav-bar .navbar-nav > li {
		float: none !important;
	}

	#site-nav-bar .navbar-nav.navbar-right {
		margin-left: auto !important;
	}

	#site-nav-bar .navbar-nav > li > a {
		color: #D2B48C !important;
		font-weight: 600 !important;
		letter-spacing: 0.2em !important;
		text-transform: uppercase !important;
		font-size: 13px !important;
		padding: 20px 0 !important;
	}

	#site-nav-bar .navbar-nav > li.active > a,
	#site-nav-bar .navbar-nav > li > a:hover {
		color: #FFFFFF !important;
		background: transparent !important;
	}
}

/* ============================================
   BUTTONS - ALL DARK BACKGROUNDS
   ============================================ */

.btn,
button,
input[type="submit"],
input[type="button"],
a[class*="btn"],
.btn-default,
.btn-primary,
.btn-robot,
.btn-wds {
    background: #8B4513 !important;
    color: #E8E4D8 !important;
    border: 1px solid #6B3410 !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a[class*="btn"]:hover {
    background: #6B3410 !important;
    color: #E8E4D8 !important;
    border-color: #4a2510 !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Secondary buttons (outlined style) */
.btn-secondary,
a[style*="background: transparent"][style*="border"] {
    background: transparent !important;
    color: #8B4513 !important;
    border: 2px solid #8B4513 !important;
}

.btn-secondary:hover,
a[style*="background: transparent"][style*="border"]:hover {
    background: #8B4513 !important;
    color: #E8E4D8 !important;
}

/* Warning/Alert buttons */
.btn-warning,
.btn-danger {
    background: #B8621B !important;
    color: #E8E4D8 !important;
    border-color: #8B4513 !important;
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

.navbar,
.navbar-default,
header,
.site-header-bg,
nav,
#header,
.main-header {
    background: #000000 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Center navigation on desktop */
.navbar-nav {
    float: none !important;
    text-align: center !important;
}

.navbar-nav > li {
    display: inline-block !important;
    float: none !important;
}

.navbar-collapse {
    text-align: center !important;
}

.navbar-nav > li > a,
.nav > li > a {
    color: #E8E4D8 !important;
    text-shadow: none !important;
    padding: 15px 20px !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.nav > li > a:hover {
    background: rgba(139, 69, 19, 0.3) !important;
    color: #B8621B !important;
}

.navbar-nav > li.active > a {
    background: #8B4513 !important;
    color: #E8E4D8 !important;
}

/* Hide mobile toggle button on desktop */
@media (min-width: 768px) {
    .navbar-toggle {
        display: none !important;
    }
}

/* Show mobile toggle button only on mobile */
@media (max-width: 767.98px) {
    .navbar-nav > li {
        display: block !important;
        float: none !important;
    }
    
    .navbar-toggle {
        display: block !important;
        background: #8B4513 !important;
        border-color: #6B3410 !important;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #E8E4D8 !important;
    }
}

/* ============================================
   CONTENT SECTIONS & BOXES
   ============================================ */

section {
    background: #E8E4D8 !important;
    padding: 60px 0 !important;
}

/* Keep header and footer sections black */
section#header,
section.main-header,
section#footer-widget,
section.footer-widget {
    background: #000000 !important;
}

/* Content boxes with slight contrast */
.content-box,
div[style*="background: #1a1a1a"],
div[style*="background: #1a1a2e"],
.boxed,
.panel,
.card {
    background: rgba(212, 207, 192, 0.8) !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    border-radius: 8px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
}

/* Feature cards */
.feature-card,
.service-box,
.project-card {
    background: rgba(212, 207, 192, 0.6) !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    border-radius: 10px !important;
    padding: 25px !important;
    transition: all 0.3s ease !important;
}

.feature-card:hover,
.service-box:hover,
.project-card:hover {
    background: rgba(139, 69, 19, 0.1) !important;
    border-color: #8B4513 !important;
    transform: translateY(-5px) !important;
}

/* Staff / Ops cards unify to the same Orwellian tan block style */
.staff-card,
.ops-card {
    background: #D4CFC0 !important;
    border: 1px solid #B8A996 !important;
    border-radius: 14px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
    color: #1a1a1a !important;
}

.staff-card h3,
.ops-card h3 {
    margin-top: 0 !important;
    color: #8B4513 !important;
}

.staff-card :is(p, li, span, td, th, label, small, strong, em, ul, ol),
.ops-card :is(p, li, span, td, th, label, small, strong, em, ul, ol) {
    color: #1a1a1a !important;
}

.staff-card table,
.ops-card table {
    color: #1a1a1a !important;
}

.staff-card table td,
.staff-card table th,
.ops-card table td,
.ops-card table th {
    border-color: #C6B8A0 !important;
}

/* ============================================
   INFO BOXES & ALERTS
   ============================================ */

.info-box,
.alert-info {
    background: rgba(139, 69, 19, 0.1) !important;
    border-left: 4px solid #8B4513 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 5px !important;
}

.warning-box,
.alert-warning {
    background: rgba(184, 98, 27, 0.1) !important;
    border-left: 4px solid #B8621B !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 5px !important;
}

.success-box,
.alert-success {
    background: rgba(139, 69, 19, 0.1) !important;
    border-left: 4px solid #8B4513 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 5px !important;
}

/* ============================================
   TABLES
   ============================================ */

table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: rgba(212, 207, 192, 0.5) !important;
}

th {
    background: rgba(139, 69, 19, 0.3) !important;
    color: #8B4513 !important;
    padding: 12px !important;
    text-align: left !important;
    font-weight: bold !important;
    text-shadow: none !important;
}

td {
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
    text-shadow: none !important;
}

tr:hover {
    background: rgba(139, 69, 19, 0.1) !important;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background: #FFFFFF !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #8B4513 !important;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3) !important;
}

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

code,
pre,
.code-block {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #8B4513 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    text-shadow: none !important;
}

pre {
    padding: 15px !important;
    overflow-x: auto !important;
}

/* ============================================
   STAT GRIDS & CARDS
   ============================================ */

.stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin: 20px 0 !important;
}

.stat-card {
    background: rgba(139, 69, 19, 0.1) !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    text-align: center !important;
}

.stat-value {
    font-size: 2em !important;
    color: #8B4513 !important;
    font-weight: bold !important;
    text-shadow: none !important;
}

.stat-label {
    font-size: 0.9em !important;
    color: #666 !important;
    text-shadow: none !important;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero,
.wds-hero,
.hero-hook,
.project-hero {
    background: linear-gradient(135deg, #D4CFC0 0%, #C8C3B4 100%) !important;
    color: #1a1a1a !important;
    padding: 80px 20px !important;
    text-align: center !important;
}

.hero h1,
.hero h2 {
    color: #4a4a4a !important;
    text-shadow: none !important;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb,
.breadcrumbs {
    background: #D4CFC0 !important;
    color: #1a1a1a !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
}

.breadcrumb a,
.breadcrumbs a {
    color: #8B4513 !important;
    text-shadow: none !important;
}

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

footer,
.footer,
.footer-widget,
section.footer-widget {
    background: #000000 !important;
    color: #E8E4D8 !important;
    padding: 40px 0 !important;
    border-top: 2px solid #8B4513 !important;
}

footer,
footer *,
.footer,
.footer * {
    color: #E8E4D8 !important;
}

footer a,
.footer a {
    color: #B8621B !important;
}

footer a:hover,
.footer a:hover {
    color: #D2B48C !important;
}

footer h1, footer h2, footer h3, footer h4,
.footer h1, .footer h2, .footer h3, .footer h4 {
    color: #E8E4D8 !important;
}

/* ============================================
   FEATURE GRIDS & TECH BADGES
   ============================================ */

.feature-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.feature-icon {
    font-size: 48px !important;
    color: #8B4513 !important;
    margin-bottom: 20px !important;
    text-shadow: none !important;
}

.tech-stack {
    background: #D4CFC0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

.tech-badge {
    display: inline-block !important;
    background: #E8E4D8 !important;
    color: #8B4513 !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    margin: 5px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

.tech-badge:hover {
    background: rgba(139, 69, 19, 0.2) !important;
    color: #6B3410 !important;
    transform: translateY(-2px) !important;
    border-color: #8B4513 !important;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-section {
    background: rgba(212, 207, 192, 0.5) !important;
    border: 2px solid rgba(139, 69, 19, 0.3) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    text-align: center !important;
    margin: 60px 0 !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.highlight {
    color: #B8621B !important;
    font-weight: bold !important;
}

.muted {
    color: #666 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px !important;
    }
    
    h1, .h1 { font-size: 2em !important; }
    h2, .h2 { font-size: 1.8em !important; }
    h3, .h3 { font-size: 1.5em !important; }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px !important;
    }
    
    .stat-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   HEADER/INTRO SECTION SPECIFICS
   ============================================ */

.intro,
.intro-fixed-height {
    background: #000000 !important;
}

.overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

.section-bg {
    background: #E8E4D8 !important;
}

/* History section specific styling */
#history,
.history {
    background: #E8E4D8 !important;
}

#history .container-fluid,
.history .container-fluid {
    background: #E8E4D8 !important;
}

#history .title-box p,
#history .title-box h2,
.history .title-box p,
.history .title-box h2 {
    color: #4a4a4a !important;
}

/* Ensure dropdown menus are readable */
.dropdown-menu {
    background: #E8E4D8 !important;
    border: 1px solid #8B4513 !important;
}

.dropdown-menu > li > a {
    color: #1a1a1a !important;
}

.dropdown-menu > li > a:hover {
    background: rgba(139, 69, 19, 0.2) !important;
    color: #8B4513 !important;
}

/* ============================================
   OVERRIDE ALL INLINE STYLES THAT CONFLICT
   ============================================ */

/* Remove any white backgrounds on buttons */
button[style*="background: #fff"],
button[style*="background:#fff"],
button[style*="background: #FFF"],
button[style*="background:#FFF"],
button[style*="background: white"],
button[style*="background:white"],
a[style*="background: #fff"],
a[style*="background:#fff"],
a[style*="background: white"] {
    background: #8B4513 !important;
    color: #E8E4D8 !important;
}

/* Keep rust colors as they match the Orwellian theme */
*[style*="color: #8B7355"],
*[style*="color:#8B7355"],
*[style*="color: #D2B48C"],
*[style*="color:#D2B48C"] {
    color: #8B7355 !important;
}

/* Keep rust/brown backgrounds as they match the theme */
*[style*="background: #8B4513"],
*[style*="background:#8B4513"] {
    background: #8B4513 !important;
}

/* ============================================
   END OF UNIFIED CSS
   ============================================ */
