/* ========================================
    CENTRAL6RP - CSS ULTRA PROPRE ET OPTIMISÉ
    Design moderne et professionnel
======================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
    /* Couleurs principales */
    --primary: #1a5cff;
    --primary-light: #2d6dff;
    --primary-neon: #3d8eff;
    --dark-bg: #0a0a0f;
    --dark-card: #12121a;
    --dark-lighter: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Couleurs de statut */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* ========================================
    RESET & BASE
======================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ========================================
    HEADER/NAVBAR
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover { transform: scale(1.02); }

.logo-image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--primary);
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(26, 92, 255, 0.3);
}

.logo-text {
    font-weight: 900;
    letter-spacing: -0.025em;
}

.logo-highlight { color: var(--primary); }

/* ========================================
    NAVIGATION LINKS
======================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
    BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(26, 92, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(26, 92, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ========================================
    DISCORD BUTTON
======================================== */

.discord-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.discord-btn:hover {
    border-color: var(--primary);
    background: rgba(26, 92, 255, 0.1);
    transform: translateY(-2px);
}

.discord-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.discord-btn:hover svg { color: var(--primary); }

/* ========================================
    MOBILE MENU BUTTON
======================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* ========================================
    FLASH MESSAGES
======================================== */

.flash-message {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 100;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.5s ease-out;
    max-width: 400px;
}

.flash-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
    FOOTER
======================================== */

.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
}

.social-link:hover svg {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom span {
    color: var(--primary);
}

/* ========================================
    UTILITIES
======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-5 {
    margin-bottom: 3rem;
}

main {
    margin-top: 4rem;
    min-height: calc(100vh - 4rem);
}

/* ========================================
    SNOWFLAKES ANIMATION
======================================== */

.snowflakes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* ========================================
    ANIMATIONS & EFFECTS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(0.5rem); }
    60% { transform: translateY(0.25rem); }
}

/* Glass effect */
.glass {
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(26, 92, 255, 0.3);
}

.glow-neon {
    box-shadow: 0 0 20px rgba(61, 142, 255, 0.3);
}

/* ========================================
    SCROLLBAR
======================================== */

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark-bg);
}

/* ========================================
    VOTE PAGE SPECIFIC
======================================== */

.vote-login-btn {
    display: block;
    background: #6b7280;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-login-btn:hover {
    background: #4b5563;
    transform: scale(1.02);
}

/* ========================================
    RESPONSIVE FIXES
======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .flash-message {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .logo-text { font-size: 1rem; }
    .logo-image { width: 2rem; height: 2rem; }
}

/* ========================================
    MOBILE MENU OPEN
======================================== */

.nav-links.active {
    display: flex !important;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    position: absolute;
    top: 4rem;
    right: 0;
    width: 100%;
    padding: 1.5rem 0;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ========================================
    HAMBURGER ANIMATION
======================================== */

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* ========================================
    PRINT STYLES
======================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .flash-message {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
