/* === assets/css/team.css === */

/* Stili per la pagina Team / Corpi Compatibili */

/* === LAYOUT PRINCIPALE === */
.main-content {
    background: #0e0e0e;
    color: #e2e2e2;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* === HEADER PAGINA === */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #3a0ca3, #7209b7);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(116, 9, 183, 0.3);
}

.page-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-description {
    font-size: 1.1rem;
    color: #cdb4db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stats-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* === RICERCA === */
.team-search {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.team-search:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.3);
}

.team-search::placeholder {
    color: #888;
}

/* === INTRODUZIONE === */
.team-intro {
    background: rgba(30, 30, 30, 0.8);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid #4cc9f0;
    backdrop-filter: blur(10px);
}

.team-intro h2 {
    color: #4cc9f0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-intro p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.team-intro strong {
    color: #ffcc00;
}

/* === LIVELLI GRUPPO === */
.livello-gruppo {
    margin-bottom: 3rem;
}

.livello-title {
    font-size: 1.5rem;
    color: #f72585;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: rgba(247, 37, 133, 0.1);
    border-radius: 8px;
    border: 1px dashed #f72585;
}

/* === GRIGLIA RICERCATORI === */
.ricercatori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* === CARD RICERCATORE === */
.ricercatore-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid var(--card-color, #666);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ricercatore-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border-color: #fff;
}

.ricercatore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--card-color, #666),
            transparent,
            var(--card-color, #666));
    opacity: 0.8;
}

/* === HEADER CARD === */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.ricercatore-id {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.id-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--card-color, #666);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.id-number:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--card-color, #666);
}

.ruolo-badge {
    background: var(--card-color, #666);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.specializzazione-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* === IMMAGINE === */
.ricercatore-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
}

.ricercatore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ricercatore-card:hover .ricercatore-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg,
            var(--card-color, #666),
            rgba(var(--card-color), 0.3));
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.placeholder-text {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
    position: relative;
}

/* === CONTENUTO CARD === */
.card-content {
    padding: 1.5rem;
}

.ricercatore-nome {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.nome-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nome-link:hover {
    color: var(--card-color, #666);
    text-shadow: 0 0 10px var(--card-color, #666);
}

.ruolo-info {
    margin-bottom: 0.5rem;
}

.ruolo-nome {
    color: var(--card-color, #666);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specializzazione-info {
    margin-bottom: 1rem;
}

.spec-nome {
    color: #4cc9f0;
    font-size: 0.85rem;
    font-style: italic;
}

.ricercatore-descrizione {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.frase-caratteristica {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--card-color, #666);
    padding: 0.8rem;
    margin: 1rem 0;
    font-style: italic;
    color: #e6e6e6;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.frase-caratteristica::before {
    content: '"';
    position: absolute;
    left: -0.2rem;
    top: -0.5rem;
    font-size: 2rem;
    color: var(--card-color, #666);
    opacity: 0.5;
}

.frase-caratteristica::after {
    content: '"';
    position: absolute;
    right: 0.3rem;
    bottom: -0.8rem;
    font-size: 2rem;
    color: var(--card-color, #666);
    opacity: 0.5;
}

/* === FOOTER CARD === */
.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dettagli-link {
    color: #4cc9f0;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dettagli-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #4cc9f0;
    transform: translateX(3px);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-badge.comando {
    background: linear-gradient(45deg, #7209b7, #f72585);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.status-badge.operativo {
    background: rgba(76, 201, 240, 0.2);
    color: #4cc9f0;
    border-color: #4cc9f0;
}

.status-badge.anomalo {
    background: rgba(230, 57, 70, 0.2);
    color: #e63946;
    border-color: #e63946;
    animation: anomaloGlow 2s ease-in-out infinite alternate;
}

@keyframes anomaloGlow {
    from {
        box-shadow: 0 0 5px rgba(230, 57, 70, 0.3);
    }

    to {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
    }
}

/* === APPENDIX TEAM === */
.team-appendix {
    background: rgba(20, 20, 20, 0.9);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-appendix h3 {
    color: #ffcc00;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.nota-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #4cc9f0;
}

.nota-item h4 {
    color: #4cc9f0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.nota-item p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.nota-item em {
    color: #f72585;
    font-style: italic;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    color: #f72585;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.empty-decoration {
    font-size: 2rem;
    color: #4cc9f0;
    opacity: 0.3;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .team-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .ricercatori-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ricercatore-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .card-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .note-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-intro {
        padding: 1.5rem;
    }

    .livello-title {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .ricercatore-image {
        height: 150px;
    }

    .card-content {
        padding: 1rem;
    }

    .placeholder-text {
        font-size: 2rem;
    }

    .team-search {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}

/* === EFFETTI SPECIALI === */

/* Glitch effect per anomalie */
.ricercatore-card[data-ruolo="VAR"] {
    animation: subtleGlitch 3s ease-in-out infinite;
}

@keyframes subtleGlitch {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-1px);
    }

    40% {
        transform: translateX(1px);
    }

    60% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(0);
    }
}

/* Effetto halo per comando */
.ricercatore-card[data-ruolo="FOND"] {
    box-shadow: 0 0 30px rgba(114, 9, 183, 0.3);
}

.ricercatore-card[data-ruolo="FOND"]:hover {
    box-shadow: 0 0 50px rgba(114, 9, 183, 0.5);
}

/* Pulsazione per analista */
.ricercatore-card[data-ruolo="ANAL"] .specializzazione-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Fade per raccoglitrice (invisibilità) */
.ricercatore-card[data-ruolo="RACC"] {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.ricercatore-card[data-ruolo="RACC"]:hover {
    opacity: 1;
}

/* Smooth scrolling per livelli */
.livello-gruppo {
    scroll-margin-top: 2rem;
}

/* Animazione di caricamento iniziale */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ricercatore-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stili per la transizione tra stati */
.ricercatore-card * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Focus accessibility */
.nome-link:focus,
.dettagli-link:focus,
.team-search:focus {
    outline: 2px solid #4cc9f0;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ricercatori-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ricercatore-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #333;
    }

    .team-search {
        display: none;
    }
}