/**
 * SocialeTicket Panel Theme - Heavy Machine & Cybernetic Exosuit
 * 
 * DESIGN SPECIFICATION:
 * 1. MULTI-METAL ALLOY HIERARCHY (BREAKS RULES & OVERRIDES ACCENTS):
 *    - Heavy Gunmetal Armor Plate (#13171f / #1c222d)
 *    - Cold Brushed Titanium & Aerospace Steel (#94a3b8 / #64748b)
 *    - Burnished Raw Bronze & Copper Conduits (#cd7f32 / #b45309)
 *    - Oxidized Patina Verdigris (#2dd4bf / #0f766e)
 *    - Mirror Chrome Bevel Highlights (#f8fafc / #e2e8f0)
 *    - Industrial Hazard Warning Yellow (#eab308 / #facc15) with diagonal safety striping
 * 
 * 2. STRUCTURAL CHARACTERISTICS:
 *    - 45-degree chamfered armor corners, countersunk hex rivets, and dual-layer metallic bevels.
 *    - Hydraulic pressure telemetry bars and industrial machinery toggle controls.
 *    - Deep carbon mesh & diamond-plate background pattern.
 *    - Local Fonts: Oxanium + Orbitron + Rajdhani + JetBrains Mono + Plus Jakarta Sans.
 */

@import url('/fonts/gaming-fonts.css');
@import url('/fonts/noir-fonts.css');

:root {
    /* Landing Page & Header Sync Tokens */
    --header-bg: #141923;
    --header-text: #ffffff;
    --header-border: #eab308;
    --mobile-nav-bg: #ffffff;
    --mobile-nav-text: #0f172a;
    --mobile-nav-border: #e2e8f0;

    --panel-theme-name: 'machine';

    /* ==========================================================================
       CHAMFERED MECHA RADIUS HIERARCHY
       ========================================================================== */
    --radius-2xl: 8px;    /* Heavy industrial chassis */
    --radius-xl: 6px;     /* Armor cards */
    --radius-lg: 5px;     /* Sub-modules */
    --radius-md: 4px;     /* Buttons & inputs */
    --radius-sm: 2px;     /* Metal serial tags */
    --radius-full: 9999px;/* Piston rings & gauges */

    /* ==========================================================================
       INDUSTRIAL TYPOGRAPHY
       ========================================================================== */
    --font-heading: 'Oxanium', 'Orbitron', sans-serif;
    --font-display: 'Oxanium', 'Orbitron', sans-serif;
    --font-tactical: 'Rajdhani', 'Oxanium', sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* ==========================================================================
       MULTI-METAL ALLOY PALETTE
       ========================================================================== */
    --metal-darkest: #0b0e14;        /* Deep Engine Pit Black */
    --metal-gunmetal: #141923;       /* Cast Iron Gunmetal Chassis */
    --metal-plate: #1d2432;          /* Heavy Rolled Armor Steel */
    --metal-plate-hover: #263042;    /* Active Plate High-Voltage */
    --metal-titanium: #94a3b8;       /* Cold Brushed Aerospace Titanium */
    --metal-steel: #cbd5e1;          /* Machined Steel Alloy */
    --metal-chrome: #f8fafc;         /* Polished Chrome Mirror Bevel */
    --metal-bronze: #cd7f32;         /* Burnished Heavy Bronze */
    --metal-copper: #b45309;         /* High-Conductivity Copper */
    --metal-patina: #2dd4bf;         /* Oxidized Circuit Verdigris */
    --metal-hazard: #eab308;         /* Industrial Hazard Warning Yellow */
    --metal-hazard-bg: #422006;      /* Hazard Contrast Bed */

    --bg-deep: #0b0e14;
    --glass-panel: #161c28;
    --glass-border: #38455e;
    --glass-border-hover: #eab308;

    /* High-Contrast Machine Typography */
    --text-primary: #f8fafc;         /* Polished Chrome White */
    --text-secondary: #cbd5e1;       /* Brushed Titanium Silver */
    --text-tertiary: #94a3b8;        /* Matte Steel Slate */
    --text-muted: #64748b;           /* Foundry Shadow Neutral */
    --text-subtle: #475569;          /* Stamp Mark Gray */
    --text-hazard: #facc15;          /* Warning Yellow Stamp */

    /* Avatar & Profile */
    --avatar-border: #eab308;
    --avatar-bg: #141923;
    --avatar-glow: rgba(234, 179, 8, 0.40);
    --user-name-color: #ffffff;
    --user-name-hover: #eab308;
    --mobile-nav-bg: #10141e;
    --mobile-nav-border: #38455e;
    --mobile-nav-active: #eab308;

    /* RULE-BREAKING OVERRIDES: Ignore accent inputs */
    --accent-cyan: #2dd4bf;
    --accent-amber: #eab308;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-sky: #38bdf8;
    --accent-violet: #cd7f32;
}

/* ==========================================================================
   1. INDUSTRIAL TREAD-PLATE CANVAS & MECHA FOUNDATION
   ========================================================================== */
body,
body.admin-page,
html.admin-page,
[data-admin-page="true"],
.admin-main {
    background-color: #0b0e14 !important;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(205, 127, 50, 0.08) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, #101520 0%, #0b0e14 100%) !important;
    background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px, 100% 100% !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    letter-spacing: -0.012em !important;
    -webkit-font-smoothing: antialiased;
}

/* Industrial Serial Code & PSI Telemetry */
code, kbd, samp, pre, .font-mono, [class*="font-mono"] {
    font-family: var(--font-mono) !important;
    font-feature-settings: 'tnum' on, 'zero' on, 'cv05' on !important;
    letter-spacing: -0.02em !important;
}

/* Chamfered Machine Stencils (Oxanium) */
h1, h2, h3, h4, h5, h6,
.modal-title,
.panel-header,
[data-composer-label="title"],
#user-menu-dossier-name {
    font-family: var(--font-heading) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    line-height: 1.25 !important;
}

/* Post Titles & Machine Module Labels */
.feed-post h1,
.feed-post h2,
.feed-post h3,
.feed-post .card-title,
.card-title,
.st-editorial-title {
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #f8fafc !important;
}

/* Feed Copy Legibility */
.feed-post p,
p.text-slate-200,
p.text-slate-300,
[id*="comment-content-"] {
    color: var(--text-primary) !important;
    line-height: 1.62 !important;
    font-weight: 450 !important;
}

.text-slate-400,
.text-slate-500,
.post-timestamp,
.text-xs.text-slate-400 {
    color: var(--text-tertiary) !important;
}

/* Industrial Selection: Caution Yellow & Iron Gunmetal */
::selection {
    background: #eab308 !important;
    color: #0b0e14 !important;
}

/* ==========================================================================
   2. ROLLED STEEL ARMOR PLATING & DUAL-BEVEL CARDS
   ========================================================================== */
.glass-panel,
.glass-card,
.modal-content,
#admin-heuristics-suite,
.feed-post,
article.feed-post,
.st-card {
    background: linear-gradient(180deg, #18202d 0%, #121822 100%) !important;
    border: 1px solid #2d384c !important;
    border-top: 2px solid #94a3b8 !important;
    border-bottom: 2px solid #0b0e14 !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.85),
        0 6px 20px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.20s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.20s ease,
                box-shadow 0.20s ease !important;
    position: relative;
}

/* Machine Hex Rivets on Card Corners */
.glass-card::before,
.feed-post::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #0b0e14, inset 0 1px 1px #94a3b8;
    pointer-events: none;
}

/* Armor Card Hover: High-Voltage Titanium Arc */
.feed-post:hover,
.glass-card:hover,
.st-card:hover {
    transform: translateY(-2.5px) !important;
    border-color: #eab308 !important;
    border-top-color: #facc15 !important;
    box-shadow: 
        0 0 0 1px #eab308,
        0 12px 32px rgba(0, 0, 0, 0.85),
        0 0 18px rgba(234, 179, 8, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   3. HEAVY MACHINE CHASSIS & CAUTION-STRIPED NAVIGATION
   ========================================================================== */
header,
aside {
    background: linear-gradient(180deg, #161c28 0%, #0e121a 100%) !important;
    border-color: #2b364a !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

header {
    border-bottom: 2px solid #eab308 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(234, 179, 8, 0.25) !important;
}

aside {
    border-right: 2px solid #2b364a !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.7) !important;
}

/* Machine Aside Nav Items */
aside nav a {
    border-radius: var(--radius-md) !important;
    color: var(--text-secondary) !important;
    transition: all 0.18s ease !important;
    border: 1px solid transparent !important;
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

aside nav a:hover {
    background: rgba(234, 179, 8, 0.10) !important;
    color: #facc15 !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
    transform: translateX(3px) !important;
}

aside nav a.active,
aside nav a[class*="active"] {
    background: linear-gradient(90deg, #b45309 0%, #78350f 100%) !important;
    color: #ffffff !important;
    border: 1px solid #facc15 !important;
    border-left: 3px solid #facc15 !important;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

aside nav a.active i,
aside nav a.active span {
    color: #ffffff !important;
}

/* ==========================================================================
   4. HYDRAULIC ACTION BUTTONS & METAL SWITCHES
   ========================================================================== */

/* Primary Action Buttons: Heavy Bronze Ingot & Chrome Chamfer */
button[class*="from-amber-500"],
button[class*="bg-amber-500"],
button[class*="bg-amber-600"],
button[class*="bg-cyan-500"],
.btn-primary,
#btn-submit-post,
#post-btn-full,
button.bg-primary,
button[type="submit"]:not([class*="bg-white"]):not([class*="bg-transparent"]) {
    background: linear-gradient(180deg, #d97706 0%, #b45309 50%, #92400e 100%) !important;
    color: #ffffff !important;
    border: 1px solid #fde68a !important;
    border-bottom: 2px solid #78350f !important;
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(217, 119, 6, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

button[class*="from-amber-500"] *,
.btn-primary *,
#btn-submit-post * {
    color: #ffffff !important;
}

button[class*="from-amber-500"]:hover,
.btn-primary:hover,
#btn-submit-post:hover {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1.5px) !important;
}

button[class*="from-amber-500"]:active,
.btn-primary:active {
    transform: scale(0.97) translateY(1px) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

/* Secondary Actions: Cold Gunmetal Plate */
button[class*="bg-white/5"],
button[class*="bg-white/10"],
button[class*="bg-slate-900"],
button[class*="bg-slate-800"],
.btn-secondary {
    background: #18202d !important;
    border: 1px solid #38455e !important;
    color: var(--text-primary) !important;
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: var(--radius-md) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

button[class*="bg-white/5"]:hover,
.btn-secondary:hover {
    background: #242f42 !important;
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Activity Filter Chips */
.activity-chip:not(.active) {
    background-color: #141a24 !important;
    color: var(--text-secondary) !important;
    border: 1px solid #2b364a !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.activity-chip:not(.active):hover {
    background-color: #1f2736 !important;
    border-color: #eab308 !important;
    color: #facc15 !important;
}

.activity-chip.active {
    background: linear-gradient(180deg, #b45309 0%, #78350f 100%) !important;
    color: #ffffff !important;
    border: 1px solid #facc15 !important;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.35) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 800 !important;
}

.activity-chip.active * {
    color: #ffffff !important;
}

/* ==========================================================================
   5. GAUGES, INPUTS & CONTROL PANELS
   ========================================================================== */
input, textarea, select,
.form-input, .auth-input, .scl-input, .premium-input,
#searchInput,
#top-wallets-search,
#admin-drawer-search,
#bottomGoToPageInput,
#goToPageInput,
#composer-textarea {
    background-color: #0d1118 !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    border: 1px solid #2d384c !important;
    border-radius: var(--radius-md) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

input:focus, textarea:focus, select:focus {
    background-color: #101520 !important;
    border-color: #eab308 !important;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

/* Telemetry Progress Bars (Hazard Gold & Patina Copper) */
.st-poll-progress-fill,
[data-poll-container] div[class*="from-amber-500"] {
    background: linear-gradient(90deg, #b45309 0%, #eab308 60%, #facc15 100%) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5) !important;
}

/* Truth vs Untruth Consensus */
[data-fact-voting-container] button[onclick*="TRUTH"] {
    background: rgba(45, 212, 191, 0.15) !important;
    border: 1px solid #2dd4bf !important;
    color: #2dd4bf !important;
    border-radius: var(--radius-lg) !important;
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
}

[data-fact-voting-container] button[onclick*="UNTRUTH"] {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid #f43f5e !important;
    color: #f43f5e !important;
    border-radius: var(--radius-lg) !important;
    font-family: var(--font-tactical) !important;
    font-weight: 700 !important;
}

/* Custom Scrollbar: Heavy Iron Track & Bronze Piston Thumb */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0e14 !important;
}
::-webkit-scrollbar-thumb {
    background: #475569 !important;
    border: 1px solid #64748b !important;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: #eab308 !important;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.6) !important;
}
