/*!
Theme Name: MatrixSecHub Terminal (Master)
Theme URI: https://matrixsechub.com
Author: MatrixSecHub Ops
Description: Complete audit-ready terminal theme. Restores layout structure while enforcing Phosphor Green aesthetics.
Version: 2.0-MASTER
*/

/* ==========================================================================
   1. CORE LAYOUT ENGINE (DO NOT TOUCH - KEEPS IT CENTERED)
   ========================================================================== */
:root {
	--body-background: #050505;
	--primary-color: #00FF41;
	--header-text-color: #00FF41;
	--color-text: #e0e0e0;
	--color-background: #0d0d0d;
	--font-head: 'Courier New', monospace;
	--font-body: 'Courier New', monospace;
	--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-size-base: 1rem;
    --font-size-sm: 0.9rem;
    --font-size-xs: 0.8rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
}

/* RESET & NORMALIZE */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--body-background); color: var(--color-text); font-family: var(--font-body); }
img { height: auto; max-width: 100%; filter: grayscale(100%) contrast(1.2); transition: var(--transition); }
img:hover { filter: grayscale(0%); }

/* CENTERING CONTAINER */
.theme-wrapper, .theme-wrapper-large, .container {
	max-width: 1380px; /* Limits width so it doesn't stretch */
	margin-left: auto !important;
    margin-right: auto !important;
	padding-left: 15px;
	padding-right: 15px;
    width: 100%;
}

/* GRID SYSTEM RESTORATION */
.theme-wrap { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.theme-wrap #primary { width: 100%; flex: 1; }
.theme-wrap #secondary { width: 100%; }
@media (min-width: 992px) {
	.theme-wrap #primary { width: calc(70% - 15px); }
	.theme-wrap #secondary { width: calc(30% - 15px); position: sticky; top: 40px; }
}

/* ==========================================================================
   2. MATRIXSECHUB VISUAL OVERRIDES (GREEN & BLACK)
   ========================================================================== */

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .site-title a {
    color: var(--primary-color) !important;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    font-family: var(--font-head);
    text-decoration: none;
}

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { background-color: var(--primary-color); color: #000 !important; text-decoration: none; }

/* INPUTS & BUTTONS (SQUARED OFF) */
input, textarea, select, button, .search-field {
    background-color: #000 !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 0 !important;
    padding: 10px;
    font-family: var(--font-body);
}

button:hover, input[type="submit"]:hover, .btn-read-more:hover {
    background-color: var(--primary-color) !important;
    color: #000 !important;
    cursor: pointer;
}

/* COMPONENT BOXES (THE TERMINAL LOOK) */
.terminal-wrapper, .site-header-wrapper, .adore-widget, .post-item, .related-posts, .comments-area, article {
    border: 2px solid var(--primary-color) !important;
    background: #000 !important;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
}

/* Remove weird gradients, force solid green borders */
.terminal-wrapper::before, .terminal-wrapper::after,
.adore-widget::before, .adore-widget::after,
.site-header-wrapper::before, .site-header-wrapper::after {
    display: none !important;
}

/* HEADER FIXES */
.site-branding { text-align: center; padding: 20px 0; }
.site-description { color: #888; margin-top: 5px; }

/* NAVIGATION */
.main-navigation ul { display: flex; justify-content: center; gap: 15px; list-style: none; padding: 0; flex-wrap: wrap;}
.main-navigation ul a {
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    color: var(--primary-color) !important;
    background: #000;
    text-transform: uppercase;
    font-weight: bold;
}
.main-navigation ul a:hover {
    background: var(--primary-color) !important;
    color: #000 !important;
}

/* FOOTER */
.site-footer { text-align: center; border-top: 2px solid var(--primary-color); padding-top: 20px; margin-top: 50px; }

/* ==========================================================================
   3. CINEMATIC EFFECTS (SCANLINES, GLITCH, SCROLLBAR)
   ========================================================================== */

/* CRT SCANLINES */
body::before {
    content: " "; display: block; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999; background-size: 100% 2px, 3px 100%; pointer-events: none; opacity: 0.4;
}

/* TACTICAL SCROLLBAR */
::-webkit-scrollbar { width: 12px; background: #000; }
::-webkit-scrollbar-track { background: #000; border-left: 1px solid #333; }
::-webkit-scrollbar-thumb { background-color: var(--primary-color); border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background-color: #fff; }

/* NEON SELECTION */
::selection { background: var(--primary-color); color: #000; }
::-moz-selection { background: var(--primary-color); color: #000; }

/* GLITCH EFFECT ON LOGO */
@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}
.site-title a:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #fff !important;
    text-shadow: 2px 2px #ff0000, -2px -2px #0000ff;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    .theme-wrapper { padding: 0 10px; }
    .main-navigation ul { flex-direction: column; align-items: center; }
}
/* -----------------------------------------------------------
   MODULE 5: CRT FLICKER & INTERFERENCE
   Adds a subtle brightness pulse to mimic old hardware power fluctuations.
----------------------------------------------------------- */
@keyframes flicker {
  0% { opacity: 0.985; }
  5% { opacity: 0.954; }
  10% { opacity: 0.989; }
  15% { opacity: 0.932; }
  25% { opacity: 0.991; }
  30% { opacity: 0.945; }
  100% { opacity: 1; }
}

body {
  animation: flicker 0.15s infinite;
}

/* -----------------------------------------------------------
   MODULE 6: THE "CIPHER" TEXT GLOW
   Makes headers look like they are burning into the phosphor screen.
----------------------------------------------------------- */
h1, h2, h3, .site-title a {
  text-shadow: 0 0 2px rgba(0, 255, 65, 0.8), 0 0 10px rgba(0, 255, 65, 0.4) !important;
  transition: text-shadow 0.3s ease;
}

h1:hover {
  text-shadow: 0 0 5px rgba(0, 255, 65, 1), 0 0 20px rgba(0, 255, 65, 0.6) !important;
}

/* -----------------------------------------------------------
   MODULE 7: VIRTUAL VIGNETTE (CORNER SHADOWS)
   Frames the terminal and focuses the eye on the mission data.
----------------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: 10000;
}

/* -----------------------------------------------------------
   MODULE 8: THE "DATA STREAM" LINK EFFECT
   Links look like active code being executed.
----------------------------------------------------------- */
a {
    position: relative;
    padding: 0 2px;
}

a:hover {
    box-shadow: 0 0 10px var(--primary-color);
    text-decoration: none !important;
}

a::before {
    content: "> "; /* Terminal prompt symbol on all links */
    opacity: 0;
    margin-left: -10px;
    transition: all 0.2s ease;
}

a:hover::before {
    opacity: 1;
    margin-left: 0;
}
/* -----------------------------------------------------------
   MODULE 10: TACTICAL DIAGNOSTIC LISTS
   Turns boring bullet points into "System Checks"
----------------------------------------------------------- */
.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2); /* Faint grid line */
    padding-bottom: 5px;
}

.entry-content ul li::before {
    content: "[ OK ]"; /* The Military Checkbox */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8em;
    text-shadow: 0 0 5px var(--primary-color);
}

/* Hover effect on list items */
.entry-content ul li:hover {
    background: rgba(0, 255, 65, 0.05);
    padding-left: 35px; /* Slight movement */
    transition: all 0.2s ease;
}