/* ==============================================================================
   PVP.CSS - DIM HEIST ARENA INTERFACE (STRATEGIC EDITION)
   ============================================================================== */

/* --- LAYOUT PRINCIPALE --- */
.pvp-scroll-area {
    padding: 15px;
    overflow-y: auto;
    flex: 1 1 auto; /* Si adatta allo spazio tra header e footer */
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.section-divider {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    color: var(--accent-cyan, #00ffff);
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* --- MAIN SCANNER CARD --- */
.pvp-main-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.05);
}

.scan-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: monospace;
}

.scan-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 75%;
}

.scan-meta .label { 
    color: var(--accent-cyan, #00ffff); 
    font-size: 1.1rem; 
    font-weight: 900; 
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-family: 'Orbitron', sans-serif;
}

.vip-text {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

.scan-description {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.scan-meta .value { 
    color: #fff; 
    font-weight: bold; 
    font-size: 11px;
}

/* Bottoni Scanner */
.btn-scan-main {
    width: 100%;
    background: #00ffff;
    color: #000;
    border: none;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.btn-scan-main:active { transform: scale(0.98); filter: brightness(1.2); }
.btn-scan-main:disabled { background: #222; color: #555; box-shadow: none; cursor: not-allowed; }

.btn-history {
    width: 100%;
    background: transparent;
    color: #888;
    border: 1px solid #333;
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- TARGET CARDS (STRATEGIC VIEW) --- */
.pvp-target-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 3px solid #00ffff;
    animation: slideIn 0.3s ease-out forwards;
}

.target-details .alias-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.target-details .alias { 
    color: #fff; 
    font-weight: bold; 
    font-size: 15px; 
    font-family: 'Orbitron', sans-serif;
}

.defense-badge {
    font-size: 9px;
    background: #111;
    padding: 2px 6px;
    border: 1px solid #444;
    color: #aaa;
    font-family: monospace;
    text-transform: uppercase;
}

.target-details .loot { 
    color: #00ff00; 
    font-size: 12px; 
    font-family: monospace; 
    display: block;
}

.program-hint {
    font-size: 10px;
    color: #555;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Bottoni di Attacco */
.attack-selector {
    display: flex;
    gap: 10px;
}

.btn-attack {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid #444;
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-attack.brute { color: #ff003c; border-color: #ff003c; }
.btn-attack.siphon { color: #00ff00; border-color: #00ff00; }

.btn-attack:active { background: #fff; color: #000; }

/* --- HISTORY MODAL --- */
.pvp-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 5000;
    display: flex; align-items: center; justify-content: center;
}

.pvp-modal-content {
    background: #000;
    border: 1px solid #fff;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

.btn-close-modal { background: none; border: none; color: #000; font-weight: bold; font-size: 1.2rem; cursor: pointer; }

.history-tabs { display: flex; border-bottom: 1px solid #222; }
.h-tab { 
    flex: 1; padding: 12px; background: transparent; border: none; 
    color: #666; font-family: 'Orbitron', sans-serif; cursor: pointer; 
    font-size: 10px; transition: all 0.2s;
}
.h-tab.active { color: #00ffff; background: rgba(0, 255, 255, 0.05); }

.history-tab-content { padding: 15px; overflow-y: auto; flex: 1; }
.history-list { display: flex; flex-direction: column; gap: 10px; }

.h-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #222;
    font-family: monospace;
}
.h-item.success { border-left: 3px solid #00ff00; }
.h-item.fail { border-left: 3px solid #ff003c; }

.h-info { display: flex; flex-direction: column; gap: 4px; }
.h-target { color: #fff; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.h-date { color: #555; font-size: 9px; }
.h-res { font-weight: bold; font-size: 13px; }

.btn-rev {
    background: #ff003c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: bold;
    margin-top: 5px;
    cursor: pointer;
}

/* --- ANIMAZIONI --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.scan-loader {
    padding: 30px;
    text-align: center;
    font-family: monospace;
    color: #00ffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

/* --- SYSTEM STATUS BAR (FOOTER STICKY) --- */
.system-status-bar {
    padding: 10px;
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.status-indicator.secure { background: #00ff00; box-shadow: 0 0 10px #00ff00; }
.status-indicator.vulnerable { background: #ff003c; box-shadow: 0 0 10px #ff003c; animation: pulse-red 1s infinite; }

@keyframes pulse-red { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); opacity: 0.7; } }

#status-text {
    font-family: monospace;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-height: 600px) {
    .radar-container { transform: scale(0.8); margin: -20px 0; }
    .pvp-main-card { padding: 10px; }
    .btn-scan-main { padding: 10px; }
}