/* ==========================================================================
   SIGTEKX HUB PAGE — CONTROL PANEL AESTHETIC
   ========================================================================== */

.sigtekx-page {
    padding: 4rem 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- Hero --- */
.sigtekx-hero {
    margin-bottom: 5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 3rem;
}

.sigtekx-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.sigtekx-hero .version-tag {
    font-family: 'Kode Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    display: block;
}

.sigtekx-hero .abstract {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    max-width: 800px;
}

/* --- System Overview Diagram --- */
.diagram-container {
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 30px;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: zoom-in;
    transition: border-color 0.3s ease;
    position: relative;
}

.diagram-container:hover {
    border-color: var(--accent-primary);
}

.diagram-container::before {
    content: "CLICK TO EXPLORE";
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Kode Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
    opacity: 0.5;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.diagram-caption {
    font-family: 'Kode Mono', monospace;
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 10px;
    width: 100%;
}

/* --- Tech Stack & Metrics Ribbon --- */
.tech-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 5rem;
    border: 1px solid #222;
    background: #0a0a0a;
}

.ribbon-stack {
    padding: 2rem;
    border-right: 1px solid #222;
}

.ribbon-metrics {
    padding: 2rem;
}

.ribbon-label {
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-tag {
    font-family: 'Kode Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    background: #1a1a1a;
    padding: 6px 14px;
    border: 1px solid #333;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.stack-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-family: 'Kode Mono', monospace;
    font-size: 1.3rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.metric-label {
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Section Headers (reused) --- */
.hub-section {
    margin-bottom: 5rem;
}

.hub-section-title {
    font-size: 1.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hub-section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, #333, transparent);
}

/* --- Deep Dive Navigation Grid --- */
.dive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #222;
    border: 1px solid #222;
}

.dive-card {
    background: #0a0a0a;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Corner accent — top-left scanline */
.dive-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.4;
    transition: width 0.4s ease, opacity 0.3s ease;
}

.dive-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 40px;
    background: var(--accent-primary);
    opacity: 0.4;
    transition: height 0.4s ease, opacity 0.3s ease;
}

.dive-card:hover {
    background: rgba(255, 69, 0, 0.03);
}

.dive-card:hover::before {
    width: 100%;
    opacity: 0.7;
}

.dive-card:hover::after {
    height: 100%;
    opacity: 0.7;
}

.dive-card:hover .dive-title {
    color: var(--accent-primary);
}

.dive-card:hover .dive-arrow {
    transform: translateX(6px);
    color: var(--accent-primary);
}

.dive-index {
    font-family: 'Kode Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.dive-title {
    font-family: 'Kode Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.dive-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.dive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.dive-tag {
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    border: 1px solid #333;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.02);
}

.dive-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 1rem;
}

.dive-status {
    font-family: 'Kode Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dive-arrow {
    font-family: 'Kode Mono', monospace;
    font-size: 0.85rem;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- Actions --- */
.hub-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 4rem;
}

/* --- Explorer Modal (preserved) --- */
#diagram-explorer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.explorer-header {
    padding: 20px 40px;
    background: #000;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.explorer-title {
    font-family: 'Kode Mono', monospace;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.explorer-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.explorer-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explorer-content:active {
    cursor: grabbing;
}

#explorer-img {
    position: absolute;
    transform-origin: center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    max-width: none;
}

.close-btn {
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-primary);
}

.explorer-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #666;
    padding: 8px 15px;
    border: 1px solid #222;
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .sigtekx-hero h1 {
        font-size: 2.5rem;
    }

    .tech-ribbon {
        grid-template-columns: 1fr;
    }

    .ribbon-stack {
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .dive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
