/* ========================================
   Via Scientific Inspired Navigation
   Clean, minimal, full-screen menu
   ======================================== */

/* ===== TOP NAVBAR ===== */
.via-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgb(16, 40, 78);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.via-navbar-inner {
    width: 100%;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Brand/Logo */
.via-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    outline: none;
}

.via-brand:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.via-brand:focus {
    outline: none;
}

.via-logo {
    height: 44px;
    width: auto;
}

.via-brand-text {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none !important;
}

/* ===== DESKTOP NAVIGATION ===== */
.via-desktop-nav {
    display: none; /* Hidden on mobile, shown on desktop */
    align-items: center;
    gap: 2rem;
}

.via-desktop-nav-left {
    flex: 0 0 auto;
}

.via-desktop-nav-right {
    margin-left: auto;
}

.via-desktop-link {
    color: #FFFFFF;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
}

.via-desktop-link:focus {
    outline: none;
}

.via-desktop-link:hover {
    color: #B8B9FF;
    text-decoration: none !important;
}

.via-desktop-link.active {
    color: #B8B9FF;
}

.via-desktop-link i {
    font-size: 0.75rem;
    margin-left: 0.35rem;
    transition: transform 0.3s ease;
}

/* Desktop CTA Button */
.via-desktop-btn {
    background: linear-gradient(135deg, #FF8A56 0%, #A16BDC 100%);
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    outline: none;
}

.via-desktop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 107, 220, 0.4);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.via-desktop-btn:focus {
    outline: none;
}

/* Desktop Dropdown */
.via-desktop-dropdown {
    position: relative;
}

.via-desktop-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    outline: none;
}

.via-desktop-dropdown-toggle:focus {
    outline: none;
}

.via-desktop-dropdown.active .via-desktop-dropdown-toggle i {
    transform: rotate(180deg);
}

.via-desktop-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 240px;
    background: rgba(15, 20, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.via-desktop-dropdown.active .via-desktop-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.via-desktop-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.via-desktop-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none !important;
}

.via-desktop-dropdown-item i {
    width: 18px;
    text-align: center;
    color: #B8B9FF;
    font-size: 0.9rem;
}

.via-desktop-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Hamburger Menu Button */
.via-menu-btn {
    display: flex; /* Visible on mobile, hidden on desktop */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.3s ease;
}

.via-menu-btn:hover {
    opacity: 0.8;
}

.via-menu-line {
    width: 28px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.via-menu-btn.active .via-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.via-menu-btn.active .via-menu-line:nth-child(2) {
    opacity: 0;
}

.via-menu-btn.active .via-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== FULL SCREEN MENU OVERLAY ===== */
.via-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0B1120;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.via-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.via-menu-nav {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 2rem 3rem;
}

/* Menu Header (Logo + Close) */
.via-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 3rem;
}

.via-close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.via-close-btn:hover {
    opacity: 0.7;
}

/* Menu Content */
.via-menu-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Menu Items - Large Centered Text */
.via-menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.via-menu-item {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 400;
    text-decoration: none !important;
    padding: 0.75rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 60px;
}

.via-menu-item:hover {
    color: #B8B9FF;
    text-decoration: none !important;
}

/* Dropdown Toggle */
.via-dropdown-toggle {
    justify-content: center;
}

.via-dropdown-toggle svg {
    transition: transform 0.3s ease;
    margin-top: 0.25rem;
}

.via-menu-dropdown.active .via-dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Dropdown Panel - Gradient Background */
.via-dropdown-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.via-menu-dropdown.active .via-dropdown-panel {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.via-dropdown-grid {
    background: linear-gradient(135deg, rgba(94, 114, 235, 0.15) 0%, rgba(161, 107, 220, 0.15) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.via-dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.via-dropdown-heading {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.via-dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.via-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.via-dropdown-link i {
    color: #B8B9FF;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.via-dropdown-link strong {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.via-dropdown-link p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

/* Action Buttons */
.via-menu-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.via-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.via-btn-primary {
    background: linear-gradient(135deg, #FF8A56 0%, #A16BDC 100%);
    color: #FFFFFF !important;
    border: none;
}

.via-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(161, 107, 220, 0.4);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.via-menu-link {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.via-menu-link:hover {
    color: #B8B9FF;
    text-decoration: none !important;
}

/* Search Container */
.via-search-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.via-search-form {
    width: 100%;
}

.via-search-input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
}

/* Removed dropdown select - search now defaults to "All" categories */

.via-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.via-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.via-search-input:focus {
    outline: none;
}

.via-search-btn {
    background: linear-gradient(135deg, #FF8A56 0%, #A16BDC 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.via-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 107, 220, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop - Show desktop nav, hide hamburger */
@media (min-width: 1025px) {
    .via-desktop-nav {
        display: flex;
    }

    .via-menu-btn {
        display: none;
    }

    .via-menu-overlay {
        display: none !important;
    }
}

/* Tablet and below */
@media (max-width: 1024px) {
    .via-desktop-nav {
        display: none;
    }

    .via-menu-btn {
        display: flex;
    }

    .via-menu-item {
        font-size: 2.25rem;
    }

    .via-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .via-navbar {
        height: 64px;
    }

    .via-navbar-inner {
        padding: 0 1.5rem;
    }

    .via-menu-header {
        height: 64px;
    }

    .via-logo {
        height: 38px;
    }

    .via-brand-text {
        font-size: 1.3rem;
    }

    .via-menu-nav {
        padding: 0 1.5rem 2rem;
    }

    .via-menu-content {
        gap: 2rem;
    }

    .via-menu-item {
        font-size: 2rem;
        padding: 0.625rem 1.5rem;
        min-height: 56px;
    }

    .via-dropdown-grid {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .via-menu-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .via-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .via-search-input-group {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .via-navbar-inner {
        padding: 0 1rem;
    }

    .via-logo {
        height: 34px;
    }

    .via-brand-text {
        font-size: 1.2rem;
    }

    .via-menu-nav {
        padding: 0 1rem 2rem;
    }

    .via-menu-item {
        font-size: 1.75rem;
        padding: 0.5rem 1rem;
        min-height: 52px;
        max-width: 100%;
    }

    .via-menu-items {
        gap: 0.75rem;
    }

    .via-menu-line {
        width: 24px;
    }

    .via-dropdown-grid {
        padding: 1.25rem;
    }

    .via-dropdown-link {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .via-dropdown-link i {
        font-size: 1.25rem;
    }

    .via-dropdown-link strong {
        font-size: 0.9375rem;
    }

    .via-dropdown-link p {
        font-size: 0.8125rem;
    }
}

/* ===== SCROLL PADDING FOR FIXED NAVBAR ===== */
html {
    scroll-padding-top: 80px;
}

/* ===== ACCESSIBILITY ===== */
.via-menu-btn:focus-visible,
.via-close-btn:focus-visible,
.via-menu-item:focus-visible,
.via-dropdown-link:focus-visible,
.via-btn:focus-visible {
    outline: 2px solid #B8B9FF;
    outline-offset: 4px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .via-navbar,
    .via-menu-overlay {
        display: none;
    }
}
