/* ===== SHARED NAVIGATION DESIGN SYSTEM ===== */
/* Single class name: nav-blurred (no double classes) */
/* Namespaced keyframes: navigation-* prefix */
/* Reusable navigation components across all pages */

:root {
    /* Navigation Colors - Grayish blur effect */
    --nav-bg-glass: rgba(235, 235, 235, 0.1); /* #EBEBEB with opacity */
    --nav-bg-glass-hover: rgba(235, 235, 235, 0.15);
    --nav-border-glass: rgba(192, 192, 192, 0.3);
    --nav-text-color: #EBEBEB;
    
    /* Navigation Spacing */
    --nav-padding: 1rem;
    --nav-gap: 0.75rem;
    --nav-btn-height: 2.5rem;
    --nav-btn-padding: 0.5rem 1rem;
    --nav-border-radius: 8px;
    
    /* Navigation Blur */
    --nav-blur: blur(10px);
}

/* ===== BLURRED NAVIGATION BAR (Single Class Name) ===== */
.nav-blurred {
    position: fixed;
    top: 0;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-backdrop-filter: var(--nav-blur);
    backdrop-filter: var(--nav-blur);
    border-bottom-left-radius: var(--nav-border-radius);
    border-bottom-right-radius: var(--nav-border-radius);
    padding: var(--nav-padding);
    transition: all 0.3s ease;
    background: var(--nav-bg-glass);
}

/* ===== NAVIGATION LOGO SECTION (Left Side) ===== */
.nav-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo-section {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
}

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

.nav-logo svg {
    width: 42px;
    height: 21px;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-title {
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #00d4ff, #FF7E79);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo-subtitle {
    font-size: 0.7rem;
    font-style: italic;
    background: linear-gradient(45deg, #00d4ff, #FF7E79);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    left: 1%;
    transform: translateX(33%);
}

/* ===== NAVIGATION BUTTONS CONTAINER (Right Side) ===== */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    flex-wrap: wrap;
}

/* ===== NAVIGATION BUTTON (Reusable) ===== */
.navigation-button {
    padding: 0.5rem 1rem;
    background: var(--nav-bg-glass);
    border: 0.5px solid var(--nav-border-glass);
    border-radius: 8px;
    color: var(--nav-text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* Keep glass style */
    cursor: pointer;
    font-family: inherit;
    outline: none; /* Remove focus outline */
    -webkit-appearance: none; /* Remove browser-specific button styling */
    appearance: none;
    display: inline-flex; /* Centers content */
    align-items: center; /* Centers content vertically */
    justify-content: center; /* Centers content horizontally */
    gap: 0.3rem;
    flex-shrink: 0;
    box-sizing: border-box;
    letter-spacing: 0.05em;
    height: 2.5rem;
}

.lang-switch.navigation-button {
    font-size: 0.9rem;
}

.navigation-button:hover {
    background: rgba(235, 235, 235, 0.2); /* Grayish hover effect */
}

.navigation-button:focus {
    outline: none; /* Ensure no outline on focus */
}

.navigation-button:active {
    outline: none; /* Ensure no outline when clicked */
}

/* ===== MOBILE NAVIGATION TOGGLE ===== */
.nav-mobile-toggle {
    background: var(--nav-bg-glass);
    border: 0.5px solid var(--nav-border-glass);
    color: var(--nav-text-color);
    padding: 0.5rem;
    border-radius: var(--nav-border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: var(--nav-blur);
    backdrop-filter: var(--nav-blur);
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--nav-btn-height);
    height: var(--nav-btn-height);
    box-sizing: border-box;
}

.nav-mobile-toggle:hover {
    background: var(--nav-bg-glass-hover);
}

/* ===== EXPANDED STATE ===== */
.nav-blurred.nav-expanded {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.nav-blurred.nav-expanded .nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.nav-blurred.nav-expanded .navigation-button {
    animation: navigationFadeInUp 0.3s ease-out;
}

.nav-blurred.nav-expanded .nav-mobile-toggle {
    animation: navigationFadeInUp 0.3s ease-out;
    animation-delay: 0.5s;
}

/* ===== RESPONSIVE: Mobile Navigation ===== */

/* Standard tablet and mobile (768px) */
@media (max-width: 768px) {
    .nav-blurred {
        top: 0;
        left: 0.5rem;
        right: 0.5rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-logo-text {
        display: none !important;
    }
    
    .nav-buttons .navigation-button:not(.nav-mobile-toggle) {
        display: none !important;
    }
    
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
    
    .nav-blurred.nav-expanded {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .nav-blurred.nav-expanded .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .nav-blurred.nav-expanded .navigation-button {
        display: inline-flex !important;
        animation: navigationFadeInUp 0.3s ease-out;
    }
    
    /* Staggered animation delays for buttons */
    .nav-blurred.nav-expanded .navigation-button:nth-child(1) { animation-delay: 0.1s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(2) { animation-delay: 0.2s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(3) { animation-delay: 0.3s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(4) { animation-delay: 0.4s; }
}

/* Small mobile devices (600px) */
@media (max-width: 600px) {
    .nav-logo-text {
        display: none !important;
    }
    
    .nav-buttons .navigation-button:not(.nav-mobile-toggle) {
        display: none !important;
    }
    
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
}

/* Standard mobile (480px) */
@media (max-width: 480px) {
    .nav-blurred {
        top: 0;
        left: 0.5rem;
        right: 0.5rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-logo-text {
        display: none !important;
    }
    
    .nav-buttons .navigation-button:not(.nav-mobile-toggle) {
        display: none !important;
    }
    
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
    
    .nav-blurred.nav-expanded {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .nav-blurred.nav-expanded .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .nav-blurred.nav-expanded .navigation-button {
        display: inline-flex !important;
        animation: navigationFadeInUp 0.3s ease-out;
    }
    
    /* Staggered animation delays for buttons */
    .nav-blurred.nav-expanded .navigation-button:nth-child(1) { animation-delay: 0.1s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(2) { animation-delay: 0.2s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(3) { animation-delay: 0.3s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(4) { animation-delay: 0.4s; }
}

/* Very small mobile devices (360px) */
@media (max-width: 360px) {
    .nav-blurred {
        top: 0;
        left: 0.5rem;
        right: 0.5rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-logo-text {
        display: none !important;
    }
    
    .nav-buttons .navigation-button:not(.nav-mobile-toggle) {
        display: none !important;
    }
    
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
    
    .nav-blurred.nav-expanded {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .nav-blurred.nav-expanded .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .nav-blurred.nav-expanded .navigation-button {
        display: inline-flex !important;
        animation: navigationFadeInUp 0.3s ease-out;
    }
    
    /* Staggered animation delays for buttons */
    .nav-blurred.nav-expanded .navigation-button:nth-child(1) { animation-delay: 0.1s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(2) { animation-delay: 0.2s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(3) { animation-delay: 0.3s; }
    .nav-blurred.nav-expanded .navigation-button:nth-child(4) { animation-delay: 0.4s; }
}

/* Extra small devices (320px) */
@media (max-width: 320px) {
    .nav-logo-text {
        display: none !important;
    }
    
    .nav-buttons .navigation-button:not(.nav-mobile-toggle) {
        display: none !important;
    }
    
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
}

/* Landscape orientation on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-logo-text {
        display: none !important;
    }
    
    .nav-buttons .navigation-button:not(.nav-mobile-toggle) {
        display: none !important;
    }
    
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
}

/* ===== NAMESPACED KEYFRAMES (Avoid Conflicts) ===== */
@keyframes navigationFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navigationSlideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

