/* Variables CSS */
:root {
    --shadow-neon: 0 0 10px rgba(0, 255, 0, 0.3), 0 0 20px rgba(0, 255, 0, 0.2), 0 0 30px rgba(0, 255, 0, 0.1);
    --shadow-neon-strong: 0 0 15px rgba(0, 255, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.3), 0 0 45px rgba(0, 255, 0, 0.2);
}

/* Grid Background */
.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Scanline Effect */
.scanline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 3px
    );
    pointer-events: none;
    z-index: 10;
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 0, 0.3), transparent);
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 11;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Neon Glow Effects */
.neon-glow {
    text-shadow: var(--shadow-neon);
}

.neon-glow-strong {
    text-shadow: var(--shadow-neon-strong);
}

.neon-box-glow {
    box-shadow: var(--shadow-neon);
}

.neon-box-glow-strong {
    box-shadow: var(--shadow-neon-strong);
}

/* Typing Cursor */
.typing-cursor::after {
    content: '▊';
    animation: blink 1s infinite;
    color: #00FF00;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal Box */
.terminal-box {
    background-color: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 0.375rem;
}

.terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.terminal-dot-red { background-color: #ef4444; }
.terminal-dot-yellow { background-color: #f59e0b; }
.terminal-dot-green { background-color: #10b981; }

/* Navigation Links */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    color: #737373;
}

.nav-link:hover {
    color: #00FF00;
    background-color: rgba(0, 255, 0, 0.05);
}

.nav-link.active {
    color: #00FF00;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: var(--shadow-neon);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    color: #737373;
}

.mobile-nav-link:hover {
    color: #00FF00;
    background-color: rgba(0, 255, 0, 0.05);
}

/* Buttons */
.btn-primary {
    background-color: #00FF00;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    box-shadow: var(--shadow-neon);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #00FF41;
    box-shadow: var(--shadow-neon-strong);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid #00FF00;
    color: #00FF00;
    background: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: var(--shadow-neon);
}

/* Cards */
.card {
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: #00FF00;
    box-shadow: var(--shadow-neon);
    transform: scale(1.02);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #0a0a0a;
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 0.5rem;
    max-width: 48rem;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    position: relative;
}

/* Toast Notifications */
.toast {
    background-color: #121212;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success { border-color: #10b981; }
.toast.error { border-color: #ef4444; }
.toast.warning { border-color: #f59e0b; }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-primary {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00FF00;
    border-color: rgba(0, 255, 0, 0.3);
}

.badge-accent {
    background-color: rgba(0, 255, 255, 0.2);
    color: #00FFFF;
    border-color: rgba(0, 255, 255, 0.3);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-outline {
    background-color: transparent;
    color: rgba(0, 255, 0, 0.7);
    border-color: rgba(0, 255, 0, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

/* Selection */
::selection {
    background: rgba(0, 255, 0, 0.3);
    color: #ffffff;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #737373;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: #00FF00;
}

.tab.active {
    color: #00FF00;
    background-color: rgba(0, 255, 0, 0.1);
    border-bottom-color: #00FF00;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Utilities */
.text-gradient-neon {
    background: linear-gradient(135deg, #00FF41, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Badge */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* ========================================
   PHISHING CHALLENGE STYLES (ULTRA SUBTLE)
======================================== */

.email-container {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.email-container:hover {
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.15);
    transform: translateY(-2px);
    border-color: rgba(0, 255, 0, 0.3);
}

.email-header {
    background: #f7f7f7;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e5e5;
}

.email-from-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.email-from-value {
    font-size: 14px;
    color: #222;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    display: inline-block;
}

.email-body {
    padding: 28px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #ffffff;
}

.email-logo {
    width: 130px;
    height: auto;
    margin-bottom: 22px;
}

.email-title {
    font-size: 21px;
    font-weight: 600;
    color: #003087;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.email-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #333;
    margin-bottom: 13px;
}

.email-details {
    background: #f9fafb;
    border-left: 3px solid #0070ba;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 13.5px;
    border-radius: 3px;
}

.email-details p {
    margin: 5px 0;
    color: #333;
}

.email-button {
    display: inline-block;
    background: #0070ba;
    color: white !important;
    padding: 13px 34px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    margin: 22px 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 112, 186, 0.2);
}

.email-button:hover {
    background: #005ea6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
}

.email-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e8e8e8;
    color: #6b6b6b;
}

.email-footer p {
    margin: 5px 0;
    font-size: 11.5px;
    line-height: 1.5;
}

/* Responsive pour les emails */
@media (max-width: 1024px) {
    #phishingInterface .grid {
        grid-template-columns: 1fr;
    }
    
    .email-container {
        margin-bottom: 20px;
    }
    
    .email-body {
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    .email-body {
        padding: 20px 16px;
    }
    
    .email-title {
        font-size: 18px;
    }
    
    .email-button {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Highlight subtle sur mobile pour faciliter la lecture */
@media (max-width: 768px) {
    .email-from-value {
        font-size: 13px;
        padding: 6px 10px;
    }
}