/* includes/frontend/wargame/shortcode-cyber-simulator.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Share+Tech+Mono&display=swap');

:root {
    --bg-main: #000000;       
    --bg-app: #05070a;        
    --bg-card: #11141d;       
    --bg-input: #05070a;      
    --border-color: #222222;  
    
    --neon: #D4FF00;
    --red: #ff003c;
    --orange: #ff8800;
    --cyan: #00f2ff;
    --green: #00ff66;
    
    --text-main: #e2e8f0;
    --text-muted: #8b949e;
    
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

/* =========================================
   FORÇAGE TYPOGRAPHIQUE CYBER
   ========================================= */
.wargame-container h1, 
.wargame-container h2, 
.wargame-container h3, 
.wargame-container h4 {
    font-family: var(--font-mono) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
}

.cyber-spa-wrapper { max-width: 1400px; margin: 40px auto; }
.cyber-app-container { min-height: 800px; background-color: var(--bg-app); color: var(--text-main); font-family: var(--font-ui); border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }

.wargame-main-content {
    padding: 0 30px 40px 30px;
}

/* =========================================
   HERO ET CONTROLES (SAAS STYLE)
   ========================================= */
.cyber-portal-hero {
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero-title { font-size: 32px; color: #fff; margin: 0 0 15px 0; letter-spacing: 2px; }
.hero-title span { color: var(--red); text-shadow: 0 0 10px rgba(255,0,60,0.4); }
.hero-desc { color: var(--text-muted); font-size: 14px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.wargame-controls-widget { margin-bottom: 30px; }

.wg-controls-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.wg-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.wg-span-2 { flex: 2; }

.wg-input-group label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.wg-input-group input, .wg-input-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 14px;
    outline: none;
    height: 42px;
    transition: 0.3s;
}

.wg-input-group input:focus, .wg-input-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.2);
}

.btn-red {
    background-color: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 25px;
    font-weight: bold;
    font-family: var(--font-ui);
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    height: 42px;
    white-space: nowrap;
}
.btn-red:hover { background-color: #ff3366; box-shadow: 0 0 15px rgba(255, 0, 60, 0.4); transform: translateY(-1px); }
.btn-red:disabled { background-color: #4B5563; cursor: not-allowed; box-shadow: none; transform: none; }

/* =========================================
   TERMINAUX (MAC STYLE)
   ========================================= */
.sim-split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 450px;
}

.sim-terminal {
    background: #000000;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.wg-term-header {
    background: #11141d;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.wg-term-dots { display: flex; gap: 6px; }
.wg-term-dots .dot { width: 10px; height: 10px; border-radius: 50%; }

.wg-term-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.term-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #ccc;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.term-action-btn:hover { background: #fff; color: #000; }

.term-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    font-family: var(--font-mono);
    position: relative;
}

.hacker-term .term-content { color: #ff5500; }
.defender-term .term-content { color: var(--green); }

/* Scanlines et Animations Terminaux */
.term-content::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 3px; pointer-events: none; z-index: 10; opacity: 0.15;
}

.hacker-term .term-content p {
    position: relative !important; cursor: pointer; padding: 4px 8px; margin: 0 0 6px 0;
    border-radius: 3px; transition: all 0.2s ease; display: flex; justify-content: space-between; align-items: center;
}
.hacker-term .term-content p:hover { background: rgba(255, 85, 0, 0.08); padding-left: 12px; }

@keyframes lineFlash {
    0% { background: rgba(212, 255, 0, 0.25); box-shadow: inset 0 0 10px rgba(212, 255, 0, 0.4); color: #ffffff !important; }
    50% { color: #ffffff !important; } 
    100% { background: transparent; box-shadow: none; color: #ff5500; }
}
.copied-flash { animation: lineFlash 3s cubic-bezier(0.25, 1, 0.5, 1); }

.copy-tooltip {
    background: #05070a !important; border: 1px solid var(--neon) !important; color: #ffffff !important;
    font-size: 9px; font-weight: bold; padding: 4px 10px; border-radius: 4px; margin-left: 10px;
    position: absolute; right: 10px; animation: fadeIn 0.2s; pointer-events: none; box-shadow: 0 0 10px var(--neon);
}

.blinking-cursor-red { color: #ff5500; animation: blink-r 1s step-end infinite; font-weight: bold; }
.blinking-cursor-blue { color: var(--green); animation: blink-b 1s step-end infinite; font-weight: bold; }
@keyframes blink-r { from, to { color: transparent } 50% { color: #ff5500; } }
@keyframes blink-b { from, to { color: transparent } 50% { color: var(--green); } }

/* Scrollbars Terminaux */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* =========================================
   ANALYSES & WIDGETS
   ========================================= */
.intel-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intel-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; padding: 20px; }
.intel-widget.full-width { grid-column: 1 / -1; }
.widget-title { font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; font-family: var(--font-mono); letter-spacing: 1px;}

.wg-analysis-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; font-family: var(--font-ui); }
.protected-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; line-height: 1.5; font-family: var(--font-ui); }

.badge-tag { display: inline-block; padding: 4px 8px; border-radius: 3px; border: 1px solid #222; font-family: var(--font-mono); font-size: 11px; margin: 2px; }

.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .wg-controls-grid { flex-direction: column; align-items: stretch; }
    .wg-input-group { width: 100%; min-width: 100%; }
    .btn-red { width: 100%; }
    .sim-split-screen { grid-template-columns: 1fr; height: auto; }
    .sim-terminal { height: 300px; }
    .intel-dashboard { grid-template-columns: 1fr; }
}