/* Reset */
html, body {
    margin: 0;
    padding: 0;
}

/* Header principal */
.main-header {
    background: linear-gradient(135deg, #2e0854 0%, #000000 100%);
    color: #ffffff;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Pattern subtil */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(60deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.09) 36px,
            rgba(255, 255, 255, 0.09) 70px),
        repeating-linear-gradient(-60deg,
            transparent,
            transparent 35px,
            rgba(187, 134, 252, 0.12) 36px,
            rgba(187, 134, 252, 0.12) 70px);
    background-size: 70px 121px;
    opacity: 0.5;
    mix-blend-mode: soft-light;
    mask-image: linear-gradient(to right, black 15%, transparent 60%);
    -webkit-mask-image: linear-gradient(to right, black 15%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;               /* redus de la 40px → mai mult spațiu util */
    max-width: 1380px;             /* crescut de la 1200px → meniu mai aerisit */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Logo */
.header-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 14px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: #bb86fc;
    letter-spacing: 1.5px;
}

/* Desktop - ajustări principale aici */
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;                     /* redus de la 50px → echilibru mai bun */
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;             /* NOU: interzice wrap-ul pe rând nou */
    align-items: center;
    gap: 24px;                     /* redus de la 32px → mai compact dar încă aerisit */
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;            /* redus ușor de la 1.1rem → economisește spațiu */
    white-space: nowrap;           /* NOU: textul nu se rupe niciodată */
    padding: 8px 4px;              /* NOU: padding mai mic sus/jos și stânga/dreapta */
    transition: color 0.3s ease;
    outline: none;
}

.desktop-nav a:hover {
    color: #bb86fc;
}

.desktop-btn {
    background: #bb86fc;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(187, 134, 252, 0.3);
    white-space: nowrap;           /* și butonul să nu se rupă */
}

.desktop-btn:hover {
    background: #ffffff;
    color: #2e0854;
    transform: translateY(-3px);
}

/* Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background: #bb86fc;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Meniu mobil - rămâne neschimbat */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #2e0854 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease;
    z-index: 9999;
}

.mobile-menu.active {
    left: 0;
}

/* X-ul de închidere */
.mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #bb86fc;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

.mobile-close span {
    position: absolute;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-close:hover {
    background: rgba(187, 134, 252, 0.3);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.6);
}

/* Linkuri mobil */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    z-index: 9998;
}

.mobile-nav li {
    margin: 25px 0;
}

.mobile-nav a {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a:focus {
    color: #bb86fc;
    outline: none !important;
    box-shadow: none !important;
}

.mobile-account-btn {
    display: inline-block;
    margin-top: 40px;
    background: #bb86fc;
    color: #000000;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
    }

    .desktop-nav,
    .desktop-btn {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Animație burger */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* ------------------- AJUSTĂRI SUPLIMENTARE PENTRU MENIUL DESKTOP ------------------- */
@media (min-width: 992px) and (max-width: 1400px) {
    .desktop-nav ul {
        gap: 18px 28px;            /* mai mic gap pe ecrane medii ca să încapă tot */
    }

    .desktop-nav a {
        font-size: 1rem;           /* și mai mic pe ecrane între 992-1400 px */
    }
}