﻿/**
 * Unified Navigation Styles
 * Provides consistent navigation styling across all website pages
 */

/* Enhanced Navigation Container */
.unified-navbar {
    position: relative;
    z-index: 1000;
}

.unified-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem; /* Add spacing between elements */
}

/* Logo Spacing Enhancement */
.unified-nav-container .logo {
    margin-right: 3rem;
    flex-shrink: 0;
}

.unified-nav-container .logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.unified-nav-container .logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu Spacing */
.unified-nav-container .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unified-nav-container .nav-menu > li > a {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

/* Compact Industry Toggle Switch */
.industry-toggle-switch-compact {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.current-industry-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: #cccccc;
    min-width: 120px;
    justify-content: space-between;
}

.current-industry-display:hover {
    background: rgba(26, 26, 26, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.current-icon {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 3px currentColor);
}

.current-text {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
}

.switch-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.industry-toggle-switch-compact.expanded .switch-arrow {
    transform: rotate(180deg);
}

/* Dropdown Options */
.industry-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.3rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.industry-toggle-switch-compact.expanded .industry-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.industry-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.industry-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.industry-option.active {
    background: rgba(184, 149, 106, 0.1);
    color: #B8956A;
    border-left: 3px solid #B8956A;
}

.industry-option.active .option-icon {
    filter: drop-shadow(0 0 5px currentColor);
}

.option-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.option-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Enhanced Navigation Active States */
.nav-menu a.active {
    color: var(--primary-color, #B8956A) !important;
    font-weight: 600;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color, #B8956A), transparent);
    border-radius: 1px;
}

.dropdown a.active {
    background: rgba(184, 149, 106, 0.1) !important;
    color: var(--primary-color, #B8956A) !important;
    border-left: 3px solid var(--primary-color, #B8956A);
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition-overlay::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color, #B8956A);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .unified-nav-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .unified-nav-container .logo {
        margin-right: 2rem;
    }
    
    .current-text {
        display: none; /* Hide text on smaller screens, show only icon */
    }
    
    .current-industry-display {
        min-width: 50px;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .unified-nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .unified-nav-container .logo {
        margin-right: 0;
        order: -1;
    }
    
    .unified-nav-container .nav-menu {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .industry-toggle-switch-compact {
        order: 2;
        margin: 0;
        align-self: center;
    }
    
    .current-industry-display {
        min-width: 100px;
        justify-content: center;
    }
    
    .current-text {
        display: block;
        font-size: 0.65rem;
    }
    
    .industry-options {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        min-width: 160px;
    }
    
    .industry-toggle-switch-compact.expanded .industry-options {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .unified-nav-container {
        padding: 0.5rem;
    }
    
    .unified-nav-container .nav-menu {
        gap: 0.5rem;
    }
    
    .unified-nav-container .nav-menu > li > a {
        padding: 0.4rem 0.8rem;
        margin: 0 0.2rem;
        font-size: 0.85rem;
    }
    
    .current-industry-display {
        padding: 0.3rem 0.5rem;
        min-width: 90px;
    }
    
    .current-text {
        font-size: 0.6rem;
    }
    
    .current-icon {
        font-size: 0.8rem;
    }
    
    .industry-options {
        min-width: 140px;
    }
    
    .industry-option {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Focus States for Accessibility */
.current-industry-display:focus,
.industry-option:focus {
    outline: 2px solid var(--primary-color, #B8956A);
    outline-offset: 2px;
    box-shadow: 0 0 10px rgba(184, 149, 106, 0.3);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .industry-toggle-switch-compact {
        border: 2px solid #ffffff;
    }
    
    .current-industry-display {
        border: 2px solid #ffffff;
        background: #000000;
    }
    
    .industry-options {
        border: 2px solid #ffffff;
        background: #000000;
    }
    
    .industry-option {
        border: 1px solid #ffffff;
    }
    
    .industry-option.active {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .current-industry-display,
    .industry-option,
    .industry-options,
    .switch-arrow,
    .page-transition-overlay {
        transition: none;
        animation: none;
    }
    
    .industry-toggle-switch-compact.expanded .switch-arrow {
        transform: none;
    }
}