/* LineDrive Social - Shared Header & Navigation CSS */

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: -1px;
    z-index: 1000;
    padding: 25px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode header {
    background: #000000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.logo img {
    height: 35px;
    width: auto;
    transition: opacity 0.3s ease;
}

nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

body[data-theme="teal"] .cta-button {
    color: #000000 !important;
}

body[data-theme="teal"] .mobile-menu nav a.cta-button {
    color: #000000 !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
    position: absolute;
    right: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

body.dark-mode .hamburger span {
    background: #ffffff;
}

.hamburger.active {
    position: fixed;
    right: 20px;
    top: 20px;
}

.hamburger.active span {
    background: #1a1a1a;
}

body.dark-mode .hamburger.active span {
    background: #ffffff;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    right: -100%;
    width: auto;
    min-width: 200px;
    height: calc(100vh - 65px);
    background: var(--bg-primary);
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px var(--shadow-medium);
    border-top: 1px solid var(--border-color);
}

body.dark-mode .mobile-menu {
    background: #000000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    gap: 0;
}

.mobile-menu nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    text-align: right;
}

.mobile-menu nav a:hover {
    color: var(--accent-color);
    padding-right: 10px;
}

.mobile-menu nav a.cta-button {
    margin-top: 20px;
    padding: 15px 20px;
    text-align: center;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    border: none;
    width: 100%;
}

.mobile-menu nav a.cta-button:hover {
    background: var(--accent-color);
    opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 968px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}
