/*
Theme Name: The Sovereign Stack
Theme URI: https://thelonestack.com
Author: The Lone Stack
Description: A minimalist, 4-column dashboard theme. High performance, zero bloat.
Version: 3.2.0
*/

/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #05080f;        /* Deepest Black */
    --bg-panel: #0d1117;       /* Card Background */
    --border-color: #1f293a;   /* Subtle Border */
    --text-main: #e6edf3;      /* Bright White/Grey */
    --text-muted: #8b949e;     /* Muted Grey */
    
    /* NEON ACCENTS */
    --accent-tech: #58a6ff;    /* Blue */
    --accent-trading: #ff9a3c; /* Orange */
    --accent-fitness: #3fb950; /* Green */
    --accent-freedom: #d2a8ff; /* Purple */
    
    --nav-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* --- 1. COMPACT HEADER (Sticky) --- */
.site-header {
    height: var(--nav-height);
    background-color: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phoenix-mini {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(63, 185, 255, 0.4));
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a i { font-size: 1rem; color: #555; transition: color 0.2s; }

/* Menu Hover Colors */
.nav-tech:hover a { color: var(--accent-tech) !important; }
.nav-trading:hover a { color: var(--accent-trading) !important; }
.nav-fitness:hover a { color: var(--accent-fitness) !important; }
.nav-freedom:hover a { color: var(--accent-freedom) !important; }
.current-menu-item a { color: #fff; }

.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--text-main); 
    cursor: pointer;
    z-index: 1002;
}

/* --- 2. HERO SECTION --- */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background: radial-gradient(circle at center, #161b2e 0%, var(--bg-dark) 70%);
    border-bottom: 1px solid var(--border-color);
}

.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffae68 0%, #3fb9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: 1.1rem; color: var(--text-muted); }

/* --- 3. DASHBOARD GRID --- */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.pillar-col {
    background-color: var(--bg-dark);
    padding: 25px;
    min-height: 600px;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2d333b;
}

.pillar-icon { font-size: 1.8rem; }
.pillar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    line-height: 1.2;
}
.pillar-title span { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Colors */
.col-tech .pillar-icon, .col-tech .pillar-title { color: var(--accent-tech); }
.col-tech .pillar-header { border-color: rgba(88, 166, 255, 0.3); }

.col-trading .pillar-icon, .col-trading .pillar-title { color: var(--accent-trading); }
.col-trading .pillar-header { border-color: rgba(255, 154, 60, 0.3); }

.col-fitness .pillar-icon, .col-fitness .pillar-title { color: var(--accent-fitness); }
.col-fitness .pillar-header { border-color: rgba(63, 185, 80, 0.3); }

.col-freedom .pillar-icon, .col-freedom .pillar-title { color: var(--accent-freedom); }
.col-freedom .pillar-header { border-color: rgba(210, 168, 255, 0.3); }

.post-card {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s;
}
.post-card:last-child { border-bottom: none; }
.post-card:hover { transform: translateX(5px); }

.post-date { font-size: 0.75rem; color: #555; margin-bottom: 4px; display: block; font-family: 'Montserrat', sans-serif; }
.post-link {
    font-size: 1rem; font-weight: 500; color: var(--text-main); display: block; line-height: 1.4;
}
.post-link:hover { color: #fff; }

/* --- 4. FOOTER --- */
.site-footer {
    background-color: #020408;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; text-align: center; }

.footer-social { margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; }
.social-link {
    width: 45px; height: 45px; border-radius: 50%;
    background: #0d1117; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--text-muted); transition: 0.2s;
}
.social-link:hover { color: #fff; border-color: var(--accent-blue); background: #161b2e; transform: translateY(-3px); }

.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; padding: 0; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-copy { color: #555; font-size: 0.8rem; border-top: 1px solid #161b2e; padding-top: 20px; }

/* --- 5. SINGLE PAGE TEMPLATE (Privacy, Terms, Contact) --- */
.page-wrapper {
    width: 100%;
    max-width: 900px;       /* Constrain width */
    margin: 40px auto;      /* Center horizontally */
    padding: 0 20px;
    flex: 1;
}

/* The Article Card Container */
.sovereign-page {
    background-color: var(--bg-panel); /* Card Background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 50px;     /* Internal spacing */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Typography for the Content */
.page-content-body { font-size: 1.1rem; line-height: 1.8; color: var(--text-main); }
.page-content-body h2 {
    font-family: 'Montserrat', sans-serif; font-size: 1.6rem; color: #fff;
    margin-top: 40px; margin-bottom: 20px;
    border-left: 4px solid var(--accent-tech); padding-left: 15px;
}
.page-content-body h3 { font-size: 1.3rem; color: var(--text-main); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
.page-content-body p { margin-bottom: 25px; }
.page-content-body ul { margin-bottom: 25px; padding-left: 20px; color: var(--text-muted); }
.page-content-body li { margin-bottom: 10px; }
.page-content-body a { color: var(--accent-tech); text-decoration: underline; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr; gap: 20px; background: none; border: none; }
    .pillar-col { background-color: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; min-height: auto; }
    .hero-headline { font-size: 1.8rem; }
    
    .main-nav { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(5, 8, 15, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; align-items: center;
        transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 1001; display: flex;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 40px; text-align: center; }
    .main-nav a { font-size: 1.5rem; justify-content: center; }
    .mobile-toggle { display: block; }
    .footer-nav ul { flex-direction: column; gap: 15px; }
    
    /* Page Adjustments */
    .sovereign-page { padding: 30px 20px; }
    .page-title { font-size: 1.8rem; }
}

/* --- 6. CODE BLOCKS & TERMINAL STYLING --- */

/* Inline Code (e.g. `sudo apt update`) */
/* This handles small snippets inside a normal paragraph */
code, kbd, samp {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em; /* Slightly smaller to fit flow */
    padding: 0.2em 0.4em;
    margin: 0 0.1em;
    border-radius: 4px;
    background-color: rgba(88, 166, 255, 0.1); /* Subtle Blue Tint */
    color: var(--accent-tech); /* Tech Blue Text */
    border: 1px solid rgba(88, 166, 255, 0.2);
}

/* Code Blocks (The Terminal Box) */
/* This handles the big blocks of code */
pre {
    background-color: #010409; /* Pitch Black Terminal BG */
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-tech); /* The "Tech" Accent Line */
    color: #e6edf3;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 30px;
    overflow-x: auto; /* Scrollbar for long lines */
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

/* The "Shell" Header Effect */
/* Adds a fake "terminal header" look if you want it, or keep it clean */
pre::before {
    content: "root@sovereign:~#"; /* The Terminal Prompt look */
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
    opacity: 0.5;
}

/* Reset code inside pre so it doesn't double-style */
pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

/* Scrollbar Styling for Code Blocks */
pre::-webkit-scrollbar { height: 8px; }
pre::-webkit-scrollbar-track { background: #0d1117; }
pre::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
pre::-webkit-scrollbar-thumb:hover { background: var(--accent-tech); }


/* --- 7. CONTENT CALLOUTS (WARNINGS & NOTES) --- */

.sovereign-callout {
    padding: 20px 20px 20px 60px; /* Extra left padding for the icon */
    margin: 30px 0;
    background-color: #0d1117;    /* Slightly lighter than body */
    border: 1px solid var(--border-color);
    border-left-width: 4px;       /* Thick accent line */
    border-radius: 6px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

/* The Icon Logic (Auto-injected via CSS) */
.sovereign-callout::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 22px;
    font-size: 1.2rem;
}

/* VARIATION 1: WARNING (Orange/Trading) */
.callout-warning {
    border-left-color: var(--accent-trading);
}
.callout-warning::before {
    content: "\f071"; /* fa-exclamation-triangle */
    color: var(--accent-trading);
}
/* Make bold text inside warnings pop */
.callout-warning strong { color: var(--accent-trading); }


/* VARIATION 2: INFO / TECH NOTE (Blue/Tech) */
.callout-info {
    border-left-color: var(--accent-tech);
}
.callout-info::before {
    content: "\f05a"; /* fa-circle-info */
    color: var(--accent-tech);
}
.callout-info strong { color: var(--accent-tech); }

/* --- 8. VISUAL BREAKS (QUOTES & IMAGES) --- */

/* The "System Message" Quote */
/* Use the standard Quote block in WordPress for this */
blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.05) 0%, transparent 100%);
    border-left: 2px solid var(--accent-tech);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    position: relative;
}

blockquote::before {
    content: "\201C"; /* Big Opening Quote */
    font-family: 'Georgia', serif;
    font-size: 4rem;
    color: var(--accent-tech);
    position: absolute;
    left: 10px;
    top: -10px;
    opacity: 0.3;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* The "Terminal Screenshot" Frame */
/* Wraps images to look like floating windows */
.wp-block-image {
    margin: 40px 0;
}

.wp-block-image img {
    border: 1px solid #30363d;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Deep shadow to lift it off the page */
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optional: Add a "Window Header" effect to images */
/* This mimics a Linux Window Manager border */
.wp-block-image {
    position: relative;
    padding-top: 24px; /* Space for the fake header */
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

.wp-block-image::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 12px;
    width: 10px;
    height: 10px;
    background-color: #ff5f56; /* Red dot */
    border-radius: 50%;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f; /* Yellow & Green dots */
}

.wp-block-image img {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: -5px; /* Fix tiny gap at bottom */
}

/* Figcaption (Image Caption) styling */
figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding-bottom: 15px;
    font-style: italic;
    border-top: 1px solid #1f293a;
    background: #0d1117;
    padding-top: 10px;
}
