/* =========================
   HEADER STYLES
========================= */

.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

/* =========================
   LOGO (TEXT-BASED)
========================= */

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

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Text Logo */
.logo-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1;
}

/* Logo Colors */
.logo-free {
    color: #4887B5;
}
.logo-4 {
    color: #FA912A;
}
.logo-tools
{
    color: #89be2e;
}

.logo-free {
    font-weight: 600;
}

.logo-tools {
    font-weight: 700;
}

.logo-4 {
    font-weight: 800;
    margin: 0 10px 0 0;
}

.logo-all {
    color: #504F50;
    font-weight: 800;
}

.logo a:hover {
    opacity: 0.9;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--gray-light);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: right 0.3s ease;
    overflow-y: auto;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =========================
   MOBILE NAV LINKS
========================= */

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* =========================
   MOBILE BACKDROP
========================= */

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    display: none;
}

.mobile-menu-backdrop.active {
    display: block;
}

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

@media (max-width: 768px) {
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .main-nav {
        display: none;
    }

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

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }
}
