/*
 * ============================================================
 * KALIDAYA HOMELAB
 * ============================================================
 */

.hl-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.hl-hero {
    margin-bottom: 2rem;
}

.hl-kicker {
    margin-bottom: 0.7rem;
    color: var(--kal-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hl-hero h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1;
}

.hl-lead {
    max-width: 760px;
    margin: 0;
    color: var(--kal-muted) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.hl-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--kal-border);
    border-radius: 12px;
    background: var(--kal-bg-soft);
    color: var(--kal-text);
    font-size: 0.82rem;
}

.hl-status strong {
    color: var(--kal-green) !important;
    letter-spacing: 0.06em;
}

.hl-status-text {
    margin-left: auto;
    color: var(--kal-muted);
}

.hl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kal-green);
    box-shadow: 0 0 12px rgba(57, 217, 138, 0.8);
}

.hl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.hl-card {
    position: relative;
    min-height: 215px;
    padding: 1.4rem;
    border: 1px solid var(--kal-border);
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
        var(--kal-panel);
}

.hl-number {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--kal-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hl-card h2 {
    margin: 0 0 0.7rem;
    font-size: 1.3rem;
}

.hl-card p {
    margin: 0;
    color: var(--kal-muted) !important;
    line-height: 1.55;
}

.hl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.2rem;
}

.hl-tags span {
    padding: 0.28rem 0.5rem;
    border: 1px solid var(--kal-border);
    border-radius: 999px;
    background: var(--kal-bg-soft);
    color: var(--kal-muted);
    font-size: 0.7rem;
}

.hl-map {
    margin-top: 2.25rem;
    padding: 1.5rem;
    border: 1px solid var(--kal-border);
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(53, 208, 255, 0.05),
            transparent 45%
        ),
        var(--kal-bg-soft);
}

.hl-map h2 {
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
}

.hl-topology {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hl-node {
    min-width: 150px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--kal-border);
    border-radius: 10px;
    background: #0c1219;
    color: var(--kal-text);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hl-node-main {
    border-color: rgba(53, 208, 255, 0.55);
    color: var(--kal-cyan);
}

.hl-line {
    width: 1px;
    height: 24px;
    background: var(--kal-border);
}

.hl-node-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 1rem;
}

.hl-node-row-small {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.hl-footer-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0 0.2rem;
    color: var(--kal-muted);
    font-size: 0.78rem;
}

@media (max-width: 760px) {

    .hl-page {
        padding: 2rem 1rem 3rem;
    }

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

    .hl-status {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hl-status-text {
        width: 100%;
        margin-left: 1.5rem;
    }

    .hl-node-row,
    .hl-node-row-small {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hl-node {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================================
   INFRASTRUCTURE MAP V2
   ============================================================ */

.hl-topology-v2 {
    padding: 1rem 0 .5rem;
}

.hl-topology-v2 .hl-node {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.hl-topology-v2 .hl-node small {
    color: var(--kal-muted);
    font-size: .55rem;
    letter-spacing: .15em;
}

.hl-connector {
    width: 1px;
    height: 22px;
    background: var(--kal-border);
}

.hl-switch-main {
    min-width: 190px;
    border-color: rgba(53, 208, 255, .35);
}

.hl-infra-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hl-infra-group {
    padding: 1rem;
    border: 1px solid var(--kal-border);
    border-radius: 12px;
    background: rgba(8, 14, 20, .45);
}

.hl-group-title {
    margin-bottom: .75rem;
    color: var(--kal-cyan);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.hl-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.hl-mini-grid span,
.hl-access-row span {
    padding: .4rem .55rem;
    border: 1px solid var(--kal-border);
    border-radius: 7px;
    background: #0c1219;
    color: var(--kal-muted);
    font-size: .68rem;
}

.hl-five span:first-child {
    color: var(--kal-text);
}

.hl-branch-label {
    position: relative;
    margin: 1.2rem 0 .6rem;
    color: var(--kal-muted);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.hl-branch-label::before {
    content: "";
    display: block;
    width: 1px;
    height: 18px;
    margin: 0 auto .5rem;
    background: var(--kal-border);
}

.hl-access-switch {
    min-width: 180px;
}

.hl-access-row {
    display: flex;
    gap: .5rem;
    margin-top: .7rem;
}

@media (max-width: 760px) {

    .hl-infra-grid {
        grid-template-columns: 1fr;
    }

    .hl-access-row {
        width: 100%;
        flex-direction: column;
    }

    .hl-access-row span {
        text-align: center;
    }
}


/* ============================================================
   LIVE SYSTEM STATUS
   ============================================================ */

.hl-system-tag {
    position: relative;
    padding-left: 1.15rem !important;
}

.hl-system-tag::before {
    content: "";
    position: absolute;
    left: .45rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--kal-muted);
}

.hl-system-tag.online {
    color: var(--kal-green);
    border-color: rgba(57, 217, 138, .35);
}

.hl-system-tag.online::before {
    background: var(--kal-green);
    box-shadow: 0 0 8px rgba(57, 217, 138, .8);
}

.hl-system-tag.offline {
    color: var(--kal-red);
    border-color: rgba(255, 93, 104, .35);
}

.hl-system-tag.offline::before {
    background: var(--kal-red);
    box-shadow: 0 0 8px rgba(255, 93, 104, .65);
}

.hl-dot.offline {
    background: var(--kal-red);
    box-shadow: 0 0 10px rgba(255, 93, 104, .7);
}


/* ============================================================
   LIVE INFRASTRUCTURE MAP
   ============================================================ */

.hl-map-status {
    position: relative;
    padding-left: 1.15rem !important;
}

.hl-map-status::before {
    content: "";
    position: absolute;
    left: .45rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.hl-map-status.online {
    color: var(--kal-green) !important;
    border-color: rgba(57, 217, 138, .35) !important;
}

.hl-map-status.online::before {
    background: var(--kal-green);
    box-shadow: 0 0 8px rgba(57, 217, 138, .8);
}

.hl-map-status.offline {
    color: var(--kal-red) !important;
    border-color: rgba(255, 93, 104, .35) !important;
}

.hl-map-status.offline::before {
    background: var(--kal-red);
    box-shadow: 0 0 8px rgba(255, 93, 104, .7);
}
