/* 
   GLOBAL STYLES - Circuit 2000 
   Contains reset, variables, navigation, footer and global utilities.
*/

/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Fonts */
@font-face {
    font-family: 'AutoMotoFont';
    src: url('../ressource/automoto-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-white: #ffffff;
    --primary-black: #0a0a0a;
    --overlay-color: rgba(0, 0, 0, 0.55);
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
    --font-custom: 'AutoMotoFont';
    --reveal-duration: 1.2s;
    --reveal-delay: 0.2s;
}

html {
    font-size: 13px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vw 3.2vw;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    transition: all var(--transition-speed);
}

nav.scrolled {
    padding: 1vw 3.2vw;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.1vw solid rgba(255, 255, 255, 0.1);
}

.logo {
    z-index: 1001;
}

.logo img {
    height: 1.3vw;
    width: auto;
    display: block;
    filter: brightness(1.2);
    transition: transform var(--transition-speed);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-container-menu {
    display: contents;
}

.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 22px;
    padding: 0;
    z-index: 1001;
}

.burger-bar {
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    background-color: var(--primary-white);
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    border-radius: 3px;
}

.burger-bar:nth-child(1) {
    top: 2px;
}

.burger-bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger-bar:nth-child(3) {
    bottom: 2px;
}

.burger-menu-btn.active .burger-bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: #ed1c24;
}

.burger-menu-btn.active .burger-bar:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.burger-menu-btn.active .burger-bar:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    background-color: #ed1c24;
}

.nav-links {
    display: flex;
    gap: 2.1vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 0.75vw;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08vw;
    position: relative;
    padding-bottom: 0.2vw;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1vw;
    background-color: #ed1c24;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    padding: 0.6vw 1.7vw;
    border: 0.1vw solid var(--primary-white);
    border-radius: 5vw;
    color: var(--primary-white);
    text-decoration: none;
    font-size: 0.7vw;
    font-weight: 700;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

.nav-contact:hover {
    background-color: #ed1c24;
    border-color: #ed1c24;
    color: white;
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3);
}

/* Reveal animations system */
.reveal {
    opacity: 0;
    transition: transform var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1),
        opacity var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(4vw); }
.reveal-down { transform: translateY(-4vw); }
.reveal-left { transform: translateX(4vw); }
.reveal-right { transform: translateX(-4vw); }
.reveal-scale { transform: scale(0.9); }

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

/* Footer */
.main-footer {
    background-color: #080808;
    padding: 80px 5% 40px;
    border-top: 2px solid #ed1c24;
    position: relative;
    z-index: 20;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo img {
    height: 12vw;
    width: auto;
    margin-bottom: 25px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-nav h4, .footer-social h4 {
    color: var(--primary-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-nav ul li a:hover {
    color: #ed1c24;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social .social-links {
    display: flex;
    list-style: none;
    font-family: "Poppins", sans-serif;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    gap: 0;
}

.footer-social .icon {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 10px;
    width: 45px;
    height: 45px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.footer-social .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}

.footer-social .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.footer-social .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.footer-social .icon:hover span,
.footer-social .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.footer-social .facebook:hover,
.footer-social .facebook:hover .tooltip,
.footer-social .facebook:hover .tooltip::before {
    background: #1877f2;
    color: #fff;
}

.footer-social .discord:hover,
.footer-social .discord:hover .tooltip,
.footer-social .discord:hover .tooltip::before {
    background: #5865F2;
    color: #fff;
}

.footer-social .icon:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.legal-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-speed);
    font-family: var(--font-body);
}

.legal-link:hover {
    color: #ed1c24;
    opacity: 1;
}

.nav-loc-btn.active {
    background: #ed1c24;
    color: white;
    opacity: 1;
    box-shadow: 0 0 1vw rgba(237, 28, 36, 0.3);
}

.nav-loc-btn:hover:not(.active) {
    opacity: 0.7;
}

/* Admin Banner Styles */
.admin-top-banner { 
    background: #000; color: white; padding: 10px 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    font-size: 0.85rem; border-bottom: 2px solid #ed1c24; 
    position: fixed; top: 0; left: 0; width: 100%; height: 44px; 
    z-index: 10001; font-family: 'Inter', sans-serif; 
}
.admin-badge { 
    background: #ed1c24; color: white; padding: 2px 6px; 
    border-radius: 4px; font-weight: bold; font-size: 0.7rem; 
    margin-right: 10px; 
}
.admin-banner-link { 
    color: rgba(255, 255, 255, 0.7); text-decoration: none; 
    margin-right: 20px; transition: 0.3s; 
}
.admin-banner-link:hover { color: white; }
.admin-save-btn { 
    background: white; color: black; border: none; 
    padding: 6px 15px; border-radius: 4px; font-weight: bold; 
    cursor: pointer; transition: 0.3s; 
}
.admin-save-btn:hover { background: #eee; transform: translateY(-1px); }
.admin-save-btn.loading { opacity: 0.5; cursor: wait; }

/* Adjust nav when admin bar is present */
.admin-top-banner ~ nav { top: 44px !important; }
.admin-top-banner ~ body { padding-top: 44px !important; }

[contenteditable="true"] { outline: none; position: relative; cursor: text; transition: 0.3s; }
[contenteditable="true"]:hover { background: rgba(255, 255, 255, 0.1); border-radius: 4px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
[contenteditable="true"]:focus { background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }

/* Navigation specific */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.global-location-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5vw;
    padding: 3px;
}

.nav-loc-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.4vw 1.2vw;
    border-radius: 5vw;
    font-size: 0.65vw;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.4;
    letter-spacing: 0.1vw;
}

@media (max-width: 1024px) {
    nav { padding: 1.5vw 2.5vw; }
    .nav-links { display: flex; gap: 1.5vw; }
    .logo img { height: 2vw; }
    .nav-links a { font-size: 1vw; }
    .nav-contact { font-size: 0.9vw; padding: 0.5vw 1.2vw; }
    .nav-loc-btn { font-size: 0.8vw; padding: 0.3vw 0.8vw; }
}

@media (max-width: 991px) {
    .burger-menu-btn {
        display: flex;
    }

    .nav-container-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-container-menu.active {
        transform: translateY(0);
    }

    .nav-links {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        margin-bottom: 50px;
        opacity: 0;
        transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
        transform: translateY(-20px);
    }

    .nav-container-menu.active .nav-links {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .nav-actions {
        opacity: 0;
        transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
        transform: translateY(-20px);
    }

    .nav-container-menu.active .nav-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-contact {
        font-size: 1.2rem;
        padding: 15px 40px;
        border-radius: 50px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .logo img { height: 2.6vw; }
    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 35px; 
        text-align: center; 
    }
    .footer-brand, .footer-nav, .footer-social { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    .footer-brand .footer-logo img { 
        height: 60px; 
        width: auto;
        margin-bottom: 15px;
    }
}
@media (max-width: 768px) {
    nav { padding: 18px 20px; }
    nav.scrolled { padding: 15px 20px; }
    .global-location-selector { display: flex; }
    .logo img { height: 20px; }
    
    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 35px; 
        text-align: center; 
    }
    .footer-brand, .footer-nav, .footer-social { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    .footer-brand .footer-logo img { 
        height: 50px; 
        width: auto;
        margin-bottom: 15px;
    }
    .footer-tagline {
        font-size: 0.85rem;
        max-width: 280px;
        margin: 0 auto;
        line-height: 1.5;
    }
    .footer-nav h4, .footer-social h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
        letter-spacing: 1.5px;
    }
    .footer-nav ul li a {
        font-size: 0.8rem;
    }
    .footer-social .social-links {
        justify-content: center;
    }
    .footer-social .icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        margin: 5px;
    }
}

/* Global CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background: rgba(237, 28, 36, 0.05);
    border: 1px solid rgba(237, 28, 36, 0.4);
    color: #fff;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ed1c24;
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.cta-button:hover {
    color: #fff;
    border-color: #ed1c24;
    box-shadow: 0 0 30px rgba(237, 28, 36, 0.4);
    letter-spacing: 3px;
    padding-left: 2.5rem;
    padding-right: 1.9rem;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.cta-button.secondary::before {
    background: #fff;
}

.cta-button.secondary:hover {
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}
