/* =========================================
   Command Center Theme: J. Hazelip
========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: #0a0a0c;
    color: #e0e6ed;
    font-family: 'Inter', -apple-system, sans-serif;
    height: 100vh;
    overflow: hidden; /* Fixed viewport for terminal feel */
}

/* Scanline Effect Overlay */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(88, 166, 255, 0.02), rgba(0, 255, 0, 0.01), rgba(88, 166, 255, 0.02));
    z-index: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   Sidebar Status Monitor
========================================= */
.status-sidebar {
    width: 300px;
    border: 1px solid #30363d;
    background: #0d1117;
    padding: 20px;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
    flex-shrink: 0;
}

.monitor-header {
    font-size: 0.85rem;
    color: #58a6ff;
    border-bottom: 1px solid #30363d;
    margin-bottom: 20px;
    padding-bottom: 5px;
    letter-spacing: 2px;
}

.status-item {
    margin-bottom: 15px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-item .label { color: #8b949e; }
.status-item .value { color: #ffffff; }

.highlight { color: #e3b341 !important; font-weight: bold; }

@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; text-shadow: 0 0 5px rgba(227, 179, 65, 0.5); } 100% { opacity: 0.6; } }
.pulse { animation: pulse 2.5s infinite; }

.sidebar-footer { margin-top: auto; }

.link-btn {
    display: block;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #30363d;
    color: #c9d1d9;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.link-btn:hover { 
    background: #161b22; 
    border-color: #58a6ff; 
    color: #58a6ff; 
}

/* =========================================
   Main Command Window
========================================= */
.command-window {
    flex-grow: 1;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    background: #0d1117;
    position: relative;
    z-index: 10;
}

.window-bar {
    background: #161b22;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.controls { display: flex; gap: 8px; margin-right: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.window-title { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: #8b949e; }

.window-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

/* Content Logs */
.log-entry { margin-bottom: 50px; }
.timestamp { font-family: 'Fira Code', monospace; color: #58a6ff; font-size: 0.85rem; margin-right: 15px; }
.log-entry h3 { display: inline; color: #ffffff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px;}
.log-entry p { margin-top: 15px; color: #c9d1d9; line-height: 1.7; }

.job-block {
    margin-top: 25px;
    padding-left: 20px;
    border-left: 1px solid #30363d;
}

.job-block h4 { color: #ffffff; font-size: 1.15rem; font-weight: 600; }
.vendor { color: #58a6ff; font-weight: normal; }
.meta { font-size: 0.9rem; color: #8b949e; margin-top: 4px; }
.progression { font-size: 0.85rem; color: #8b949e; font-style: italic; margin-top: 4px; }

ul { margin: 15px 0 0 20px; color: #c9d1d9; font-size: 0.95rem; line-height: 1.6; list-style-type: square; }
ul li { margin-bottom: 10px; }

/* Publications Links */
.link-text { 
    color: #58a6ff; 
    text-decoration: none; 
    font-family: 'Fira Code', monospace; 
    font-size: 0.85rem; 
    margin-top: 8px; 
    display: inline-block; 
}
.link-text:hover { color: #ffffff; text-decoration: underline; }

/* =========================================
   Hybrid Certification Blocks (Icon + Text)
========================================= */
.terminal-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.cert-block-hybrid {
    display: flex;
    align-items: center;
    background: #161b22;
    border: 1px solid #30363d;
    border-left: 3px solid #58a6ff;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    overflow: hidden; 
}

.cert-block-hybrid:hover {
    background: #1f242c;
    border-color: #58a6ff;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

.cert-icon-crop {
    width: 150px;
    height: 145px; /* Crops off bottom text of iframe */
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: none;
    background: #ffffff; 
}

.cert-details {
    display: flex;
    flex-direction: column;
    padding: 15px;
    justify-content: center;
    flex-grow: 1;
}

.cert-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #e3b341;
    margin-bottom: 5px;
}

.cert-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cert-verify {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #8b949e;
    margin-top: auto;
    transition: color 0.2s;
}

.cert-block-hybrid:hover .cert-verify {
    color: #58a6ff;
}

/* =========================================
   Skill Scan Refinement (Spaced Indentation)
========================================= */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 35px; /* Large gap between categories */
    margin-top: 25px;
}

.skill-category-header {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
}

.badge-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px 14px; /* Row gap | Column gap */
    padding-left: 15px; /* Indent badges */
    border-left: 1px solid #30363d; /* Vertical guide line */
}

.skill-badge {
    background: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    border-color: #58a6ff;
    color: #ffffff;
    background: #1f242c;
}

.cert-badge { 
    color: #58a6ff; 
    border-color: rgba(88, 166, 255, 0.3); 
}

/* =========================================
   Simulation Footer
========================================= */
.input-line {
    padding: 15px 30px;
    background: #161b22;
    border-top: 1px solid #30363d;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    z-index: 10;
}

.prompt { color: #27c93f; margin-right: 10px; }
.typing { color: #e0e6ed; }
.cursor { animation: blink 1s step-end infinite; color: #58a6ff; font-weight: bold; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Scrollbar Style */
.window-content::-webkit-scrollbar { width: 8px; }
.window-content::-webkit-scrollbar-track { background: #0d1117; }
.window-content::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
.window-content::-webkit-scrollbar-thumb:hover { background: #58a6ff; }

/* =========================================
   Mobile Adjustments
========================================= */
@media (max-width: 1024px) {
    body { overflow-y: auto; height: auto; }
    .terminal-container { 
        flex-direction: column; 
        height: auto; 
        padding: 10px; 
    }
    .status-sidebar { width: 100%; height: auto; }
    .command-window { height: auto; min-height: 80vh; }
    .window-content { padding: 20px; }

    .cert-icon-crop {
        display: none;
    }

    .terminal-cert-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        gap: 25px; /* Slightly tighter on mobile */
    }
}