@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&display=swap');

/* Système de Design Premium - ServWorld */
:root {
    --bg-mystical: #0a0a0c;
    --primary-vibrant: #7c3aed;
    --accent-gold: #f59e0b;
    --primary-deep: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --card-bg: rgba(18, 18, 24, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-mystical);
    color: var(--text-primary);
    background-image: 
        radial-gradient(circle at top, rgba(124, 58, 237, 0.05) 0%, transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px, 24px 24px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.font-syne {
    font-family: 'Inter', sans-serif;
}

a[href="/"] .font-syne, 
h1.font-syne, 
h2.font-syne,
.logo-font {
    font-family: 'Outfit', sans-serif !important;
}

/* Effets de Verre Poli (Glassmorphism) */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

/* Survol de cartes avec élévation et lueur diffuse */
.glass-effect-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-effect-hover:hover {
    background: rgba(24, 24, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* Lueur et effet premium des boutons */
.btn-glow-purple {
    background: #7c3aed;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-glow-purple:hover {
    background: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-glow-gold {
    background: #f59e0b;
    color: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-glow-gold:hover {
    background: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Animation de pulsation lumineuse pour les badges VIP Gold */
@keyframes vipGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
        border-color: rgba(245, 158, 11, 0.6);
    }
}
.vip-pulse-gold {
    animation: vipGlow 2.5s infinite ease-in-out;
}

/* Animation de pulsation lumineuse cyan pour le grade Diamond */
@keyframes diamondGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2);
        border-color: rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
        border-color: rgba(6, 182, 212, 0.7);
    }
}
.vip-pulse-diamond {
    animation: diamondGlow 2s infinite ease-in-out;
}

/* Lueur Diamond Cyan pour les Boutons */
.btn-glow-diamond {
    background: #06b6d4;
    color: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-glow-diamond:hover {
    background: #22d3ee;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* Lueur Iron minimaliste */
.glowing-border-iron:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px -10px rgba(255, 255, 255, 0.1);
}

/* Effets de lueur générale sur les formulaires */
input:focus, select:focus, textarea:focus {
    border-color: #8b5cf6 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

/* Barre de défilement stylisée et invisible */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-mystical);
}
::-webkit-scrollbar-thumb {
    background: #1d152c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-vibrant);
}

/* Navigation buttons: oval with border #f59e0b */
.nav-oval-btn {
    border: 1.5px solid #f59e0b;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease-in-out;
}
.nav-oval-btn:hover {
    background-color: #f59e0b;
    color: #0a0a0c !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Progress Bar animation for 30 seconds */
@keyframes progress30 {
    from { width: 0%; }
    to { width: 100%; }
}
.animate-progress-30 {
    animation: progress30 30s linear infinite;
}

/* Game grid cards */
.game-grid-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 16/10;
}
.game-grid-card:hover {
    transform: scale(1.02);
    border-color: #f59e0b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.game-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.game-grid-card:hover img {
    filter: brightness(0.6) scale(1.05);
}
.game-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.25) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

/* Ad card styling */
.ad-slot-card {
    background: rgba(24, 24, 32, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.ad-slot-card:hover {
    border-color: var(--accent-gold);
    background: rgba(24, 24, 32, 0.5);
}

/* Redirection globale des anciennes classes de couleurs codées en dur */
[class*="bg-[#170d22]"] {
    background-color: var(--bg-mystical) !important;
}
[class*="bg-[#160b24]"] {
    background-color: rgba(10, 10, 12, 0.85) !important;
}
[class*="bg-[#221235]"] {
    background-color: #18181b !important;
}
[class*="bg-[#120b1e]"] {
    background-color: #0e0e11 !important;
}
[class*="bg-[#191127]"] {
    background-color: #0e0e11 !important;
}
[class*="bg-[#12071d]"] {
    background-color: #0e0e11 !important;
}
[class*="bg-[#ffbd59]"] {
    background-color: rgba(245, 158, 11, 0.05) !important;
}

/* Redirection des anciennes couleurs de bordures et de textes */
[class*="border-[#ffbd59]"] {
    border-color: var(--accent-gold) !important;
}
[class*="text-[#ffbd59]"] {
    color: var(--accent-gold) !important;
}
[class*="text-slate-300"] {
    color: #a1a1aa !important;
}

/* Séparateur OU dans les pages de connexion/inscription */
.glass-effect [class*="bg-[#120b1e]"] {
    background-color: #131316 !important;
}

/* Uniformisation des inputs et zones de saisie */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="url"], 
input[type="tel"], 
input[type="search"], 
select, 
textarea {
    background-color: #0e0e11 !important;
    color: #fafafa !important;
}

