/* Futuristic Minimal Neon Theme */

/* Custom Fonts */
@font-face {
    font-family: 'OCR-A';
    src: url('../fonts/OCR-A.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OVERLOAD';
    src: url('../fonts/Excelorate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Couleurs de base */
    --bg-black: #000000;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.6);

    /* Palette néon subtile */
    --purple: #8b5cf6;
    --pink: #ec4899;
    --blue: #3b82f6;
    --cyan: #06b6d4;

    /* Couleurs de texte */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Effets de glow très subtils */
    --glow-purple: 0 0 15px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 15px rgba(236, 72, 153, 0.3);
    --glow-blue: 0 0 15px rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'OCR-A', 'Courier New', monospace;
    background: var(--bg-black);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Particules animées */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.6);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift));
        opacity: 0;
    }
}

/* Grandes lumières violettes animées */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
    animation: float-orb ease-in-out infinite;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    top: 15%;
    left: 5%;
    animation-duration: 15s;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    bottom: 5%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(40px, -40px);
    }
    66% {
        transform: translate(-30px, 30px);
    }
}

/* Fond avec dégradés subtils */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Grille subtile */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Titres */
h1 {
    font-family: 'OCR-A', 'Courier New', monospace;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

h2 {
    font-family: 'OCR-A', 'Courier New', monospace;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Titre principal CLAW MACHINE en OVERLOAD */
.title-overload {
    font-family: 'OVERLOAD', 'Impact', sans-serif;
}

/* Cartes minimalistes */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--glow-purple);
}

/* Boutons */
.btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 28px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 0.1;
}

.btn:hover {
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
}

/* Inputs */
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    background: rgba(15, 15, 25, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead tr {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

tbody td {
    padding: 16px;
    color: var(--text-secondary);
}

/* Liens */
a {
    color: var(--purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--pink);
}

/* Messages */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

.alert-error {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--pink);
    color: var(--pink);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.85em;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}
