/* ============================================================
   AGENT SQUAD / DIVISION HUB
   ============================================================ */

.squad-hub {
    width: 100%;
    max-width: 960px;
}

.squad-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;
}

.squad-title {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Colony-wide stats row */
.squad-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a3a;
}

.squad-colony-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.squad-colony-stat-val {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 1.3rem;
    color: #f5c842;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.squad-colony-stat-lbl {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: #888;
    text-transform: uppercase;
}

/* All divisions heading */
.squad-all-title {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Division cards grid */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Division card */
.squad-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #2a2a3a;
    background: rgba(10, 10, 16, 0.7);
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1rem;
}

.squad-card:hover {
    border-color: rgba(245, 200, 66, 0.3);
    background: rgba(245, 200, 66, 0.02);
}

.squad-card--mine {
    border-width: 1px;
    background: rgba(10, 10, 16, 0.85);
    margin-bottom: 2rem;
}

.squad-card-hdr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.squad-card-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.squad-card-label {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.squad-card-badge {
    margin-left: auto;
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.48rem;
    letter-spacing: 0.14em;
    color: #f5c842;
    text-transform: uppercase;
    border: 1px solid rgba(245, 200, 66, 0.3);
    padding: 0.15rem 0.5rem;
}

.squad-card-brief {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: #888;
    line-height: 1.6;
}

/* Card stats */
.squad-card-stats {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(42, 42, 58, 0.5);
}

.squad-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.squad-stat-val {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 1rem;
    color: #f5c842;
    font-weight: 700;
}

.squad-stat-lbl {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
}

/* Member list */
.squad-card-members {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.squad-members-title {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(42, 42, 58, 0.5);
}

.squad-member-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
}

.squad-member-rank {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.55rem;
    color: #555;
    min-width: 20px;
    text-align: right;
}

.squad-member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(245, 200, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.55rem;
    color: #f5c842;
    overflow: hidden;
    flex-shrink: 0;
}

.squad-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.squad-member-name {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: #ccc;
    flex: 1;
}

.squad-member-stat {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.52rem;
    color: #666;
    letter-spacing: 0.06em;
}

.squad-member-empty {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.58rem;
    color: #555;
    padding: 0.5rem 0;
}

/* Card link to public page */
.squad-card-link {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(42, 42, 58, 0.5);
    transition: color 0.15s;
}

.squad-card-link:hover {
    color: #f5c842;
}

/* Loading */
.squad-loading {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: #555;
    text-align: center;
    padding: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .squad-stats-row {
        gap: 1.25rem;
        flex-wrap: wrap;
    }
    .squad-grid {
        grid-template-columns: 1fr;
    }
    .squad-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .squad-colony-stat-val {
        font-size: 1rem;
    }
}

/* ── S19 — Status dots ────────────────────────── */

.squad-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.squad-status-dot--online {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    animation: squad-pulse 2s infinite;
}

.squad-status-dot--away {
    background: #f5c842;
    box-shadow: 0 0 4px rgba(245, 200, 66, 0.4);
}

.squad-status-dot--offline {
    background: #666;
}

@keyframes squad-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── S19 — Channel link ──────────────────────── */

.squad-channel-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.65rem;
    color: #f5c842;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid rgba(245, 200, 66, 0.3);
    padding: 0.4rem 1rem;
    transition: background 0.2s;
}
.squad-channel-link:hover { background: rgba(245, 200, 66, 0.1); }

/* ── S19 — Pinned announcements ──────────────── */

.squad-pinned-section {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(245, 200, 66, 0.1);
}

.squad-pinned-title {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.65rem;
    color: #f5c842;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.squad-pinned-card {
    background: rgba(245, 200, 66, 0.04);
    border-left: 2px solid #f5c842;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
    border-radius: 3px;
}

.squad-pinned-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.squad-pinned-sender {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.6rem;
    color: rgba(245, 200, 66, 0.8);
    letter-spacing: 0.06em;
}

.squad-pinned-time {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
}

.squad-pinned-body {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}
