/* crew.css - NOIR GLITCH EDITION */

.crew-bg {
    /* Rimosso il blu, ora è un gradiente nero puro che sfuma verso il basso */
    background-image: radial-gradient(circle at top, #111 0%, var(--bg-color) 100%);
}

.crew-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow-y: hidden;
}

.crew-header-title {
    text-align: center;
    margin-bottom: 15px;
}

.crew-header-title h2 {
    font-size: 1.2rem;
    color: #fff; /* Bianco Puro */
    letter-spacing: 4px; /* Aumentato per look mainframe */
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 0px #333; /* Ombra netta grigia, no glow */
    text-transform: uppercase;
}

.crew-header-title p {
    font-size: 0.8rem;
    color: #888; /* Grigio sbiadito */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crew-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

/* Scrollbar Noir */
.crew-list::-webkit-scrollbar {
    width: 4px;
}
.crew-list::-webkit-scrollbar-thumb {
    background: #fff; /* Bianco su fondo nero */
    border-radius: 0px;
}

/* Stile della singola Card Noir */
.crew-card {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333; /* Bordo grigio scuro */
    border-radius: 0px; /* Squadrato stile glitch */
    display: flex;
    padding: 10px;
    align-items: center;
    box-shadow: 4px 4px 0px #111; /* Ombra solida brutale */
    transition: transform 0.1s, border-color 0.2s;
}

.crew-card:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px;
}

.crew-image {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 0px; /* Squadrato */
    border: 1px solid #fff; /* Bordo bianco sharp */
    margin-right: 12px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2); /* Immagini noir */
}

.crew-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.crew-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crew-level {
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 4px;
    background: #222; /* Box scuro per il livello */
    display: inline-block;
    padding: 2px 6px;
    width: fit-content;
}

.crew-production {
    font-size: 0.75rem;
    color: #888;
    font-family: monospace; /* Font tecnico per i dati */
}

.crew-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

/* Bottone Upgrade Noir */
.upgrade-btn {
    background: #fff; /* Sfondo bianco */
    color: #000; /* Testo nero */
    border: none;
    border-radius: 0px; /* Squadrato */
    padding: 8px 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 4px;
    width: 100%;
    text-transform: uppercase;
    transition: background 0.1s;
}

.upgrade-btn:active {
    background: #888;
}

.upgrade-btn.disabled {
    background: #111;
    color: #444;
    border: 1px solid #222;
    cursor: not-allowed;
    box-shadow: none;
}

.upgrade-cost {
    font-size: 0.7rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
}

.cost-icon {
    width: 10px;
    height: 10px;
    filter: grayscale(1) brightness(2); /* Icona moneta bianca */
}