/* header_style.css */


body {
    font-family: 'League Spartan', sans-serif;
    overflow-x: hidden;
    -webkit-transition: -webkit-transform 0.3s ease-in-out; /* Safari */
    transition: transform 0.3s ease-in-out; /* Standard */
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Increase from 100 to 1000 */
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #0f172a;
    margin-bottom: 60px;
    opacity: 98%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-links {
    align-items: center;
    gap: 2.25rem;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #E6F0FF !important;
    text-decoration: none;
}

.nav-links a:hover {
    color: #ffffff;
}

.sell-link-active {
    color: #ffffff;
    font-weight: 500;
    cursor: default;
    text-decoration: none;
}

.sell-link-active:hover {
    color: #ffffff;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-button {
    font-size: 0.75rem;
    line-height: 1rem;
    width: 5rem;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #6b7280;
    color: #C82626;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease; /* Safari */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.auth-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #C82626;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #011933;
    margin: 3px 0;
    -webkit-transition: -webkit-transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Safari */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.burger-menu.active span:nth-child(1) {
    -webkit-transform: translateY(8px) rotate(45deg); /* Safari */
    transform: translateY(8px) rotate(45deg);
}

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

.burger-menu.active span:nth-child(3) {
    -webkit-transform: translateY(-8px) rotate(-45deg); /* Safari */
    transform: translateY(-8px) rotate(-45deg);
}

.user-initial {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.initial-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #00ba90;
    font-weight: bold;
    font-size: 1rem;
}

/* Side Panel Styles */
.side-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 200;
    -webkit-transition: left 0.3s ease-in-out; /* Safari */
    transition: left 0.3s ease-in-out;
    display: none;
}

.side-panel.active {
    left: 0;
}

.side-panel-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.side-panel-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.side-panel-content li {
    margin-bottom: 1.5rem;
}

.side-panel-content a {
    color: #0f172a;
    text-decoration: none;
    font-size: 1.1rem;
    -webkit-transition: color 0.3s ease; /* Safari */
    transition: color 0.3s ease;
}

.side-panel-content a:hover {
    color: #1f2937;
}

.close-panel {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
}

.close-panel:hover {
    color: #1f2937;
}

/* Main Content Styles */
.main-content {
    -webkit-transition: -webkit-transform 0.3s ease-in-out; /* Safari */
    transition: transform 0.3s ease-in-out;
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    .hidden-md {
        display: none;
    }
    .user-initial {
        margin-top: 60px;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100vh;
        background-color: #ffffff;
        padding: 2rem;
        z-index: 150;
        -webkit-transition: left 0.3s ease-in-out; /* Safari */
        transition: left 0.3s ease-in-out;
        -webkit-backface-visibility: hidden; /* Prevent flicker in Safari */
        backface-visibility: hidden;
        font-size: 18px !important;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 0;
        margin: 2rem 0 0 0;
    }

    .nav-links li {
        margin-bottom: 1.5rem;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    .nav-links a {
        color: #0f172a;
        font-weight: 400;
        font-size: 1.5rem;
    }

    .side-panel {
        display: none;
    }

    /* Shift main content when mobile panel is active */
    body.content-shifted .main-content {
        -webkit-transform: translateX(50%); /* Safari */
        transform: translateX(50%);
    }
}

/* Desktop Styles (min-width: 769px) */
@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        background-color: transparent;
        position: static;
        width: auto;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        max-height: none;
        opacity: 1;
        overflow: visible;
        margin-left: 0;
        align-items: center;
        font-size: 18px !important;
    }

    .nav-links ul {
        display: flex;
        align-items: center;
        gap: 2.25rem;
    }

    .nav-links li {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }

    .nav-links li:last-child {
        margin-right: 0;
    }

    .side-panel {
        display: block;
    }
}

/* header style.css end */