/* ===== COWBOY BEBOP CYBERPUNK THEME ===== */

/* Suppress CSS warnings from Bootstrap for older browser prefixes */
/* These are already handled by Bootstrap's modern gap utilities */

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --darker: #000000;
    --neon-blue: #00f4ff;
    --neon-orange: #ff6b35;
    --neon-green: #39ff14;
    --neon-purple: #bf00ff;
    --terminal-green: #00ff41;
    --warning-yellow: #ffcc00;
    --danger-red: #ff073a;
    --text-muted: #ffffff;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
.brand-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--neon-blue);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* ===== COLORS ===== */
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-secondary-dark { background-color: var(--secondary-dark) !important; }
.bg-darker { background-color: var(--darker) !important; }
.text-neon { color: var(--neon-blue) !important; }
.text-neon-orange { color: var(--neon-orange) !important; }
.text-terminal { color: var(--terminal-green) !important; }

/* ===== LISIBILITÉ AMÉLIORÉE ===== */
.text-muted {
    color: #ffffff !important;
}

.small.text-muted {
    color: #ffffff !important;
}

.text-muted.mb-3 {
    color: #ffffff !important;
}

/* Bootstrap overrides pour la lisibilité */
.text-secondary {
    color: #ffffff !important;
}

.text-dark {
    color: #ffffff !important;
}

/* Forcer le texte blanc sur fonds sombres */
.bg-dark .text-muted,
.bg-primary-dark .text-muted,
.bg-secondary-dark .text-muted,
.bg-darker .text-muted {
    color: #ffffff !important;
}

/* Améliorer la lisibilité des cartes */
.card {
    background-color: rgba(26, 26, 26, 0.9) !important;
    border: 1px solid var(--neon-blue);
    color: #ffffff !important;
}

.card-body {
    color: #ffffff !important;
}

.card-header {
    color: #ffffff !important;
    border-bottom: 1px solid var(--neon-blue);
}

/* Assurer la lisibilité des labels et textes */
label, .form-label {
    color: #ffffff !important;
}

.form-text {
    color: #ffffff !important;
}

/* Placeholder text plus visible */
::placeholder {
    color: #cccccc !important;
    opacity: 0.8;
}

.form-control::placeholder {
    color: #cccccc !important;
    opacity: 0.8;
}

/* ===== ACCORDION SIDEBAR ===== */
.accordion-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 244, 255, 0.3) !important;
}

.accordion-button {
    background: rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 244, 255, 0.1) !important;
    color: var(--neon-blue) !important;
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(64%) sepia(93%) saturate(1352%) hue-rotate(169deg) brightness(119%) contrast(119%);
}

.accordion-body {
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    padding: 0.5rem 1rem;
}

.category-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.category-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.category-progress .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.bg-neon {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)) !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
}

.border-neon {
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 10px rgba(0, 244, 255, 0.3);
}

/* ===== NAVBAR ===== */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 2px 20px rgba(0, 244, 255, 0.2);
}

.credits-display {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: linear-gradient(180deg, var(--darker) 0%, var(--primary-dark) 100%);
    border-right: 2px solid var(--neon-blue);
    box-shadow: 2px 0 20px rgba(0, 244, 255, 0.1);
    min-height: calc(100vh - 76px);
}

.sidebar-heading {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 0.5rem;
}

.bounty-link {
    color: #ccc !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.bounty-link:hover {
    background: rgba(0, 244, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 244, 255, 0.2);
    transform: translateX(5px);
}

.bounty-link.completed {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green) !important;
}

.bounty-title {
    font-weight: 600;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-item i {
    width: 20px;
    margin-right: 0.5rem;
}

/* ===== MAIN CONTENT ===== */
.main-content-wrapper {
    padding: 2rem 0;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 244, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 244, 255, 0.2);
    border-color: var(--neon-orange);
}

.card-header {
    background: rgba(0, 244, 255, 0.1);
    border-bottom: 1px solid var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn-neon {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 244, 255, 0.3);
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 244, 255, 0.5);
    color: var(--primary-dark);
}

.btn-danger-neon {
    background: linear-gradient(45deg, var(--danger-red), var(--neon-orange));
    border: none;
    color: white;
    font-weight: 600;
}

.btn-success-neon {
    background: linear-gradient(45deg, var(--neon-green), var(--terminal-green));
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== FORMS ===== */
.form-control {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--neon-blue);
    color: white;
    font-family: 'Source Code Pro', monospace;
}

.form-control:focus {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    color: white;
}

/* ===== BADGES ===== */
.badge {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== ANIMATIONS ===== */
@keyframes neon-pulse {
    0%, 100% { 
        text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-blue);
    }
    50% { 
        text-shadow: 0 0 2px var(--neon-blue), 0 0 5px var(--neon-blue), 0 0 8px var(--neon-blue);
    }
}

.neon-pulse {
    animation: neon-pulse 2s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

/* ===== TERMINAL EFFECT ===== */
.terminal {
    background: var(--darker);
    border: 1px solid var(--terminal-green);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Source Code Pro', monospace;
    color: var(--terminal-green);
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.terminal::before {
    content: "hunter@bebop:~$ ";
    color: var(--neon-blue);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .main-content-wrapper {
        padding: 1rem 0;
    }
}

/* ===== SPECIAL EFFECTS ===== */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 244, 255, 0.4), transparent);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}
