/*
    Reusable console components shared by current and future pages.
*/

.console-title {
    font-size: var(--font-size-console-title);
    font-weight: lighter;
    letter-spacing: 1.1px;
    color: #1b2d42;
    line-height: 1;
}

.console-subtitle {
    font-size: 10px;
    color: #4c5d71;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.top-meta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.top-meta-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #536579;
}

.top-meta-value {
    font-size: 12px;
    font-weight: bold;
    color: #17212c;
}

.status-online {
    color: #176d42;
}

.zone,
.detail-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-soft) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 10px 24px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.zone {
    height: 100%;
    padding: 9px;
}

.detail-panel {
    min-height: 318px;
    padding: 16px;
}

.panel {
    position: relative;
    padding: 16px;
    background: linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-soft) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 10px 24px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.zone::after,
.detail-panel::after,
.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.015) 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    animation: panelSheen 13s ease-in-out infinite;
}

.zone:nth-child(2)::after,
.detail-panel:nth-child(2)::after {
    animation-delay: 2s;
}

.zone:nth-child(3)::after,
.detail-panel:nth-child(3)::after {
    animation-delay: 4s;
}

.zone-header,
.zone-footer,
.detail-panel-header,
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.zone-header,
.panel-header {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--panel-divider);
}

.zone-footer {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--panel-divider);
}

.detail-panel-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--panel-divider);
}

.zone-title,
.panel-title {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1.1px;
    color: var(--text-accent);
}

.detail-title {
    margin: 0;
    font-size: var(--font-size-title);
    letter-spacing: 1px;
    color: var(--text-accent);
}

.zone-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.zone-meta-label,
.zone-footer-label,
.metric-label,
.panel-label,
.space-feature-label,
.planet-strip-label {
    font-size: var(--font-size-label);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(147, 166, 187, 0.68);
}

.zone-meta-value,
.zone-footer-value,
.panel-value {
    font-size: 12px;
    font-weight: bold;
    color: var(--yellow);
}

.zone-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
}

.detail-meta {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--panel-divider);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 221, 245, 0.20);
}

.metric-emphasis {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028));
}

.metric-wide {
    min-height: 58px;
}

.metric-value {
    font-size: 14.4px;
    font-weight: bold;
    color: var(--text-main);
}

.metric-large {
    font-size: 16.2px;
}

.metric-brief {
    font-size: 15px;
    line-height: 1.3;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 12px;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    background: var(--nav-button);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.7px;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.nav-button:hover {
    background: var(--nav-button-hover);
    color: var(--text-accent);
    transform: translateY(-1px);
}

.nav-button-active {
    background: var(--nav-button-active);
    color: var(--text-accent);
    box-shadow: 0 0 16px rgba(137, 183, 255, 0.08);
}

@keyframes panelSheen {
    0%, 82%, 100% {
        transform: translateX(-120%);
        opacity: 0;
    }

    86% {
        opacity: 0.6;
    }

    94% {
        transform: translateX(120%);
        opacity: 0;
    }
}
