/* Public Pages Navbar Styles */

/* Navigation */
.navbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 101;
}

.brand-name {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.nav-logo {
    height: 56px;
    width: auto;
    max-width: 240px;
    min-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    min-width: 800px;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.95) 0%, rgba(109, 214, 220, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-buttons .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-align: center;
    justify-content: center;
}

.mobile-nav-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.mobile-nav-buttons .btn-primary {
    background: white;
    color: var(--color-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Navbar Styles */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .nav-buttons {
        gap: 0.75rem;
        flex-shrink: 0;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .nav-content {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand {
        gap: 0.5rem;
    }
    
    .brand svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand {
        gap: 0.4rem;
    }
    
    .brand svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-link {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .brand svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-nav-links {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .mobile-nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }
    
    .mobile-nav-buttons {
        max-width: 250px;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles - Hide navbar when printing */
@media print {
    .navbar {
        display: none;
    }
}
