/* ==========================================================================
   SANGRE POR SANGRE V2 // ERWEITERUNG: CREW STATUS ÜBERSICHT
   Modern Digispace Cyberpunk Gang Dashboard Theme
   ========================================================================== */

.status-main-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

/* ================= 1. HERO HEADER & METRICS ================= */
.status-hero-banner {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(10, 12, 17, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.1);
}

.status-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--blood-red);
    box-shadow: 0 0 12px var(--blood-red);
}

.hero-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-title-group h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ================= 2. METRICS COUNTER ROW ================= */
.status-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: rgba(14, 17, 24, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.metric-card.card-aktiv {
    border-left: 3px solid #4ade80;
}
.metric-card.card-beschaeftigt {
    border-left: 3px solid #f43f5e;
}
.metric-card.card-afk {
    border-left: 3px solid #fbbf24;
}
.metric-card.card-total {
    border-left: 3px solid var(--blood-red);
}

.metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-count {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ================= 3. TOOLBAR (SEARCH & FILTERS) ================= */
.status-toolbar-card {
    background: rgba(14, 17, 24, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-pills-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.status-filter-pill.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--blood-red);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.status-filter-pill .pill-counter {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 9999px;
}

.search-input-wrapper {
    position: relative;
    min-width: 280px;
    flex: 1;
    max-width: 420px;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(8, 10, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 9px 14px 9px 36px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.search-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* ================= 4. CREW MEMBERS GRID ================= */
.crew-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.member-card {
    background: linear-gradient(145deg, rgba(16, 20, 28, 0.9), rgba(11, 14, 20, 0.95));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.15);
}

.member-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.member-avatar-box {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #090a0f;
}

.member-status-beacon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #0e1117;
}

.member-status-beacon.beacon-aktiv {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}
.member-status-beacon.beacon-beschaeftigt {
    background: #f43f5e;
    box-shadow: 0 0 10px #f43f5e;
}
.member-status-beacon.beacon-afk {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
}

.member-headline {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-rank-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

/* Rank-spezifische Akzentfarben */
.member-rank-tag.rank-og {
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}
.member-rank-tag.rank-vice,
.member-rank-tag.rank-boss {
    border-color: rgba(251, 191, 36, 0.6);
    color: var(--gold-accent);
    background: rgba(251, 191, 36, 0.12);
}
.member-rank-tag.rank-caller,
.member-rank-tag.rank-enforcer,
.member-rank-tag.rank-soldato {
    border-color: rgba(96, 165, 250, 0.6);
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
}

/* ================= 5. MEMBER STATUS PILL & DETAILS ================= */
.member-status-strip {
    background: rgba(8, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-dot-mini {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot-mini.dot-aktiv {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}
.status-dot-mini.dot-beschaeftigt {
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
}
.status-dot-mini.dot-afk {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.status-sub-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.member-email-hint {
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Empty State */
.status-empty-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(14, 17, 24, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.empty-text {
    color: var(--text-muted);
    font-size: 13px;
}
