﻿/* Clearout Junk Navigation Styles - Self-Contained */

/* NAVIGATION */
.top-navigation {
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

/* Brand/Logo Section */
.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

    .nav-brand .brand-link:hover {
        transform: scale(1.05);
        color: #68a077;
        text-decoration: none;
    }

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    background: linear-gradient(45deg, #68a077, #4a7c59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .mobile-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Navigation Links */
.nav-links {
    display: flex;
        align-items: center;
        gap: 1rem;
     margin: 0 auto;
     height: 70px;

}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    white-space: nowrap;
    line-height: 1;
    min-height: 44px;
}

.nav-link:hover {
    color: white;
    background: rgba(104, 160, 119, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-link.active {
    color: #68a077;
    background: rgba(104, 160, 119, 0.15);
    font-weight: 600;
}

/* Phone Number */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

    .nav-phone:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
    }

.phone-icon {
    font-size: 1.1rem;
}

.phone-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    font-size: 0.95rem;
    white-space: nowrap;
}

    .nav-cta-btn:hover {
        background: linear-gradient(135deg, #e55a2b 0%, #cc4d20 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }

    .nav-cta-btn:active {
        transform: translateY(0);
    }

/* Auth Links (if needed) */
.nav-auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .auth-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

    .auth-link.signup {
        background: rgba(104, 160, 119, 0.2);
        color: #68a077;
        border: 1px solid rgba(104, 160, 119, 0.3);
        font-weight: 600;
    }

        .auth-link.signup:hover {
            background: rgba(104, 160, 119, 0.3);
            color: white;
        }

/* Dropdown Menus (if needed) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1100;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

    .dropdown-link:hover {
        background: #f8f9fa;
        color: #1a3d1f;
        text-decoration: none;
    }

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    border: none;
    margin: 0.5rem 0;
}

.logout-form {
    margin: 0;
    padding: 0;
}

.logout-btn {
    width: 100%;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .user-menu:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

.user-icon {
    font-size: 1.1rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .phone-text {
        display: none;
    }

    .nav-phone {
        padding: 0.5rem;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        order: 3;
    }

    .nav-actions {
        order: 2;
        gap: 0.5rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

        .nav-links.mobile-active {
            transform: translateX(0);
        }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
        text-align: left;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 0.5rem;
    }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateX(5px);
        }

    .nav-phone {
        order: 1;
    }

    .nav-cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1.5rem;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .nav-cta-btn {
        display: none;
    }

    .phone-icon {
        font-size: 1.2rem;
    }

    .nav-phone {
        padding: 0.4rem;
    }

    .mobile-toggle {
        padding: 6px;
    }

    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-cta-btn,
    .mobile-toggle,
    .hamburger-line,
    .dropdown-menu {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.nav-cta-btn:focus,
.mobile-toggle:focus,
.nav-phone:focus {
    outline: 2px solid #68a077;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .top-navigation {
        border-bottom: 2px solid white;
    }

    .nav-link,
    .nav-phone,
    .brand-text {
        border: 1px solid white;
    }
}
