/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ==========================================
   QUANTUM OS GLOBAL SKIN
   ========================================== */

/* 1. IMPORT & BASE */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;700&display=swap');

:root {
    --qos-void: #000000;
    --qos-ghost: #e8e4d9;
    --qos-dim: rgba(232, 228, 217, 0.5);
    --qos-plasma: #00ffcc;
    --qos-nebula: #a020f0;
    --qos-danger: #ff0055;
    --qos-font: 'JetBrains Mono', monospace;
}

/* 2. RESET & TYPOGRAPHY */
body {
    background-color: var(--qos-void) !important;
    color: var(--qos-ghost) !important;
    font-family: var(--qos-font), monospace !important;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    
    /* GLOBAL OVERFLOW FIX (Director Request) */
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* Force headings to match theme */
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

p {
    color: rgba(232, 228, 217, 0.8);
    margin-bottom: 1.5rem;
}

a {
    color: var(--qos-plasma) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--qos-nebula) !important;
    text-shadow: 0 0 10px var(--qos-plasma);
    letter-spacing: 0.02em;
}

/* 3. SELECTION & CURSOR */
::selection {
    background: var(--qos-plasma);
    color: #000;
    text-shadow: none;
}

/* 4. CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000;
    border-left: 1px solid rgba(232, 228, 217, 0.05);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border: 1px solid #000;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--qos-plasma);
    box-shadow: 0 0 10px var(--qos-plasma);
}

/* 5. RESET DEFAULT WP ELEMENTS (Search bars, inputs) */
input, textarea, select {
    background: #050505 !important;
    border: 1px solid #333 !important;
    color: var(--qos-ghost) !important;
    font-family: var(--qos-font) !important;
    padding: 10px !important;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--qos-nebula) !important;
    box-shadow: 0 0 15px rgba(160, 32, 240, 0.2);
}

/* Specific Elementor Padding Fix (Per Original Request) */
elementor-page.elementor-26 .elementor-element.elementor-element-0 {
    margin: 0; 
}

/* ==========================================
   STANDARD ARCHIVE STYLING (Fallback)
   ========================================== */
/* NOTE: This applies to standard WP Blog Index/Search. 
   The custom 'page-archives.php' template uses its own inline styles. */

.qos-archive-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.qos-data-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 2px solid var(--qos-nebula);
    color: var(--qos-plasma);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.qos-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(232, 228, 217, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: rgba(5, 5, 10, 0.3);
}

.qos-data-row:hover {
    background: linear-gradient(90deg, rgba(10, 10, 20, 0.9), rgba(20, 20, 30, 0.9));
    border-left: 3px solid var(--qos-plasma);
    padding-left: 25px;
    box-shadow: inset 10px 0 20px -10px rgba(0, 255, 204, 0.1);
    transform: translateX(5px);
}

/* Column Widths */
.qos-col-date { width: 15%; color: var(--qos-dim); font-size: 0.8rem; }
.qos-col-class { width: 20%; color: var(--qos-nebula); font-size: 0.8rem; font-weight: 600; }
.qos-col-subject { width: 45%; color: var(--qos-ghost); font-size: 1rem; font-weight: 700; text-decoration: none; }
.qos-col-status { width: 20%; text-align: right; }

/* Status Badges */
.qos-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-declassified { border-color: var(--qos-plasma); color: var(--qos-plasma); box-shadow: 0 0 5px rgba(0, 255, 204, 0.1); }
.status-restricted { border-color: var(--qos-danger); color: var(--qos-danger); box-shadow: 0 0 5px rgba(255, 0, 85, 0.1); }

/* Mobile Stack */
@media (max-width: 768px) {
    .qos-data-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .qos-col-date, .qos-col-class, .qos-col-subject, .qos-col-status { width: 100%; text-align: left; }
    .qos-col-status { text-align: left; margin-top: 5px; }
}

/* ==========================================
   GLOBAL FOOTER OVERRIDES
   ========================================== */
/* If using Elementor for footer or other templates, these enforce the look */
.footer-terminal-wrapper {
    max-width: 1200px;
    margin: 150px auto 0;
    padding-top: 80px;
    border-top: 1px solid rgba(232, 228, 217, 0.08);
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.footer-terminal {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.7), rgba(5, 5, 10, 0.8));
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(232, 228, 217, 0.12);
    padding: 50px 45px;
    box-shadow: 0 0 60px rgba(160, 32, 240, 0.15), inset 0 0 80px rgba(160, 32, 240, 0.02);
    position: relative;
}

/* Decorative Corners */
.footer-terminal::before,
.footer-terminal::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(160, 32, 240, 0.4);
}
.footer-terminal::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.footer-terminal::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.footer-header {
    border-bottom: 1px solid rgba(232, 228, 217, 0.08);
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(232, 228, 217, 0.4);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.transmission-status { color: var(--qos-plasma); text-shadow: 0 0 10px var(--qos-plasma); }
.system-time { font-size: 0.6rem; opacity: 0.5; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-column { display: flex; flex-direction: column; gap: 20px; }
.entity-identity { display: flex; flex-direction: column; gap: 15px; }
.entity-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: #e8e4d9; letter-spacing: 0.05em; }
.entity-designation { font-size: 0.65rem; color: rgba(232, 228, 217, 0.4); letter-spacing: 0.15em; text-transform: uppercase; }
.seo-text-block { margin-top: 15px; font-size: 0.65rem; line-height: 1.6; color: rgba(232, 228, 217, 0.5); letter-spacing: 0.02em; }
.column-label { font-size: 0.6rem; letter-spacing: 0.2em; color: #ff6b35; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; text-shadow: 0 0 8px rgba(255, 107, 53, 0.3); }
.network-nodes { display: flex; flex-direction: column; gap: 12px; }

.node-link {
    color: rgba(232, 228, 217, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.node-link::before {
    content: "→";
    color: #a020f0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.node-link:hover {
    color: var(--qos-plasma);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    letter-spacing: 0.15em;
}

.node-link:hover::before { opacity: 1; }

.secure-channel { display: flex; flex-direction: column; gap: 12px; }
.channel-address {
    color: #a020f0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    word-break: break-all;
}

.channel-address:hover {
    color: var(--qos-plasma);
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

.system-notice {
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 2px solid rgba(160, 32, 240, 0.3);
    margin-bottom: 35px;
    font-size: 0.68rem;
    line-height: 1.8;
    color: rgba(232, 228, 217, 0.35);
    letter-spacing: 0.03em;
}

.notice-prefix { color: #a020f0; font-weight: 600; text-shadow: 0 0 8px rgba(160, 32, 240, 0.4); }

.legal-bar {
    border-top: 1px solid rgba(232, 228, 217, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: rgba(232, 228, 217, 0.3);
    letter-spacing: 0.1em;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links { display: flex; gap: 25px; }
.legal-link { color: rgba(232, 228, 217, 0.3); text-decoration: none; text-transform: uppercase; transition: all 0.3s ease; }
.legal-link:hover { color: #a020f0; text-shadow: 0 0 8px rgba(160, 32, 240, 0.5); }

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .legal-bar { flex-direction: column-reverse; gap: 20px; text-align: center; }
    .legal-links { flex-direction: column; gap: 15px; }
}

/* ==========================================
   PATCH: LISTS & TITLES
   ========================================== */

/* 1. FIX BULLET POINTS INDENTATION */
.page-content ul, .article-content ul, 
.page-content ol, .article-content ol {
    padding-left: 40px !important;
    margin-bottom: 25px;
    list-style-position: outside;
}

.page-content li, .article-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Make bullets look sci-fi (Square) */
.page-content ul li, .article-content ul li {
    list-style-type: square;
    color: var(--ghost);
}

/* Highlight numbers in ordered lists */
.page-content ol li::marker, .article-content ol li::marker {
    color: var(--qos-plasma);
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

/* 2. FIX DOUBLE TITLE ON PAGES */
/* This hides the hardcoded template title so only 
   the one you write in the Editor/Elementor shows up. */
.page-title {
    display: none !important;
}