:root {
    --bg-dark: #020617;
    --card-bg: rgba(15, 23, 42, 0.75);
    --border-color: rgba(56, 189, 248, 0.2);
    --accent-blue: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
}

/* Header Styling */
.site-header {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}
.logo-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
}
.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-blue);
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(15,23,42,0.6) 0%, var(--bg-dark) 100%), 
                url('/assets/images/space-bg.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
}
.hero-badge {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 15px 0;
    text-shadow: 0 0 20px var(--accent-glow);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-primary { background: #0284c7; color: #fff; }
.btn-primary:hover { background: var(--accent-blue); box-shadow: 0 0 15px var(--accent-glow); }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-main); margin-left: 10px; }
.btn-outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* Glass Cards Grid */
.section-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-title { font-family: var(--font-heading); text-align: center; margin-bottom: 40px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.card-icon { font-size: 2rem; margin-bottom: 10px; }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.post-image { width: 100%; height: 180px; object-fit: cover; }
.post-content { padding: 20px; }
.post-title a { color: var(--text-main); text-decoration: none; }
.post-title a:hover { color: var(--accent-blue); }


/* Ghost Koenig Content Formatting & Required Classes */
.post-container, .page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-title, .page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.post-content, .page-content {
    line-height: 1.8;
    color: #cbd5e1;
}

/* Required Koenig Editor Layout Classes */
.kg-width-wide {
    max-width: 1100px;
    margin: 2em auto;
}

.kg-width-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.kg-card {
    margin: 1.5em 0;
}

/* Fix Ghost Nav Links (Horizontal, No Bullets, Sci-Fi Hover) */
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav a {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.header-nav a:hover,
.header-nav li.nav-current a {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Uploaded Site Logo Sizing & White Filter */
.site-logo-img {
    max-height: 45px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Turns all dark/black pixels into crisp white */
    transition: filter 0.2s ease;
}

/* Compact Centered Footer Styling */
.site-footer {
    background: #020617;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    padding: 35px 20px 25px;
    text-align: center;
    color: #94a3b8;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-clocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.clock-item {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #64748b;
}

.clock-item strong {
    color: #38bdf8;
    font-family: var(--font-heading);
    margin-left: 4px;
}

.footer-meta {
    max-width: 700px;
    line-height: 1.6;
}

.footer-credits {
    margin: 0 0 6px 0;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.footer-disclaimer {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.footer-disclaimer a,
.footer-credits a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-disclaimer a:hover,
.footer-credits a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Capability Card Bullet Styling */
.card-lead {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.card-bullets {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: 18px;
    margin: 0;
}
.card-bullets li {
    margin-bottom: 6px;
}

/* zKillboard Section HUD Styling */
.zkill-section {
    padding: 30px 0 20px 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
}
.zkill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-zkill {
    border-color: #0ea5e9;
    color: #38bdf8;
}
.btn-zkill:hover {
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Bright Bold Stat Grid */
.zkill-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}
.stat-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
}
.stat-card.stat-highlight {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.stat-card.stat-highlight {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

/* Green Highlight Hover State */
.stat-card.stat-highlight:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(34, 197, 94, 0.35);
}
.stat-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 8px;
}
.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #f8fafc;
    text-shadow: 0 0 12px rgba(255,255,255,0.2);
}
.stat-value.neon-green {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}
.stat-value.neon-blue {
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}
.stat-sub {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
}

/* Recent Engagements Feed Box */
.recent-kills-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 25px;
}
.recent-kills-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #f8fafc;
    margin: 0 0 20px 0;
}
.recent-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}
.kill-item {
    background: rgba(2, 6, 23, 0.7);
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kill-item.loss {
    border-left-color: #ef4444;
}
.kill-info-main {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f8fafc;
}
.kill-info-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}
.kill-value {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #38bdf8;
}
.feed-loading {
    color: #64748b;
    font-size: 0.9rem;
}

/* Outer HUD Card Chassis */
.custom-streambox-card {
    position: relative;
    background: rgba(15, 23, 42, 0.85); /* Dark slate HUD chassis */
    
    /* 1. Double-stroke border feel: crisp cyan-slate border */
    border: 1px solid rgba(56, 189, 248, 0.3);
    
    /* 2. Top border highlight for illuminated edge effect */
    border-top: 1px solid rgba(56, 189, 248, 0.6);
    
    border-radius: 8px;
    padding: 20px;
    
    /* 3. Combined outer neon aura + dark inner frame depth */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),                  /* Outer shadow for lift */
        0 0 20px rgba(56, 189, 248, 0.08),             /* Ambient cyan HUD glow */
        inset 0 1px 0 rgba(255, 255, 255, 0.1);        /* Top edge light reflection */
    
    margin-top: 25px;
    margin-bottom: 40px;

    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glowing Top-Left and Top-Right Corner Brackets */
.custom-streambox-card::before,
.custom-streambox-card::after {
    content: '';
    position: absolute;
    top: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #38bdf8;
    pointer-events: none;
}

.custom-streambox-card::before {
    left: -1px;
    border-left: 2px solid #38bdf8;
    border-top-left-radius: 8px;
}

.custom-streambox-card::after {
    right: -1px;
    border-right: 2px solid #38bdf8;
    border-top-right-radius: 8px;
}

/* Hover state: slight power-up glow on interaction */
.custom-streambox-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(56, 189, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.streambox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.streambox-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #f8fafc;
    margin: 4px 0 0 0;
    letter-spacing: 1px;
}

.streambox-link {
    font-size: 0.8rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.streambox-link:hover {
    color: #7dd3fc;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Refined Inner Terminal Box */
.streambox-iframe-wrapper {
    background: #050505;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    
    /* 1. Equalized internal padding around the content */
    padding: 10px 12px 6px 10px; 
    
    /* 2. Expanded width to give the 1.4b ship breathing room on the right */
    width: 395px; 
    max-width: 100%;
    
    /* 3. Spacing from the header text above */
    margin-top: 16px;
    margin-left: 0;
    
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.streambox-iframe-wrapper iframe {
    display: block;
    width: 400px;
    height: 105px;
    border: none;
    
    /* 4. Pulls iframe 4px left to neutralize zKill's internal default left margin */
    margin-left: -4px; 
    margin-top: -2px;
}
/* Hero CTA Button Container */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Shared Base Button Styling */
.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 26px;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

/* PRIMARY CTA: Solid Glowing Cyan */
.btn-hero-primary {
    background: #0ea5e9;
    border: 1px solid #38bdf8;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.btn-hero-primary:hover {
    background: #38bdf8;
    color: #020617 !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    transform: translateY(-2px);
}

/* SECONDARY CTA: Dark HUD Ghost Button */
.btn-hero-secondary {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8 !important;
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}