/* agent-colony.css — Colony Status Dashboard */

.colony-eyebrow {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding: 1.5rem 2rem 0;
}

.colony-title {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 1.4rem;
    color: #f5c842;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem;
    padding: 0 2rem;
}

.colony-loading {
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 1rem;
    text-align: center;
}

.colony-empty {
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    font-size: 0.78rem;
    padding: 0.5rem 0;
}

/* ── Vitals bar ───────────────────────────────── */

.colony-vitals {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(245, 200, 66, 0.12);
    border-bottom: 1px solid rgba(245, 200, 66, 0.12);
    align-items: center;
}

.colony-vital-stat {
    text-align: center;
}

.colony-vital-val {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 1.6rem;
    color: #f5c842;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.colony-vital-lbl {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* Health bar */
.colony-health-bar {
    flex: 1;
    min-width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.colony-health-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.colony-health-fill--high { background: #4ade80; }
.colony-health-fill--mid { background: #f5c842; }
.colony-health-fill--low { background: #e05555; }

/* ── Department grid ──────────────────────────── */

.colony-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    padding: 1.2rem 2rem;
}

.colony-dept-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #888;
    padding: 0.8rem;
    border-radius: 4px;
}

.colony-dept-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.colony-dept-label {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
}

.colony-dept-count {
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.colony-dept-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.colony-dept-meta {
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.colony-dept-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.colony-dept-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ── Sections (top agents, feed, metrics, recruits) ── */

.colony-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.2rem 2rem 2rem;
}

.colony-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1rem;
}

.colony-section-title {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.7rem;
    color: #f5c842;
    letter-spacing: 0.1em;
    margin: 0 0 0.8rem;
}

/* Top agents */
.colony-top-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.colony-top-rank {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.6rem;
    color: rgba(245, 200, 66, 0.6);
    min-width: 1.8rem;
}

.colony-top-name {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    flex: 1;
}

.colony-top-xp {
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.colony-top-lvl {
    font-family: monospace;
    font-size: 0.55rem;
    color: rgba(245, 200, 66, 0.5);
}

/* Feed */
.colony-feed-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.colony-feed-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.15rem;
}

.colony-feed-sender {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

.colony-feed-time {
    font-family: monospace;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.colony-feed-body {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    word-break: break-word;
}

.colony-feed-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.6rem;
    color: #f5c842;
    letter-spacing: 0.06em;
    text-decoration: none;
}
.colony-feed-link:hover { text-decoration: underline; }

/* Metrics */
.colony-metric-row {
    margin-bottom: 0.8rem;
}

.colony-metric-hdr {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.colony-metric-label {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

.colony-metric-val {
    font-family: monospace;
    font-size: 0.7rem;
    color: #f5c842;
    font-weight: 700;
}

.colony-metric-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.colony-metric-fill {
    height: 100%;
    background: #f5c842;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Recruits */
.colony-recruit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.colony-recruit-name {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
}

.colony-recruit-date {
    font-family: monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Mobile ───────────────────────────────────── */

@media (max-width: 767px) {
    .colony-vitals {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }
    .colony-vital-val { font-size: 1.2rem; }
    .colony-dept-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .colony-sections {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .colony-title {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    .colony-eyebrow { padding: 1rem 1rem 0; }
}
