/**
 * Navigation Header Styles
 * ========================
 * Product sub-navigation bar for product and module pages.
 * Shows product logo + tabbed navigation to sub-pages.
 * 
 * Part of Header CSS Architecture - see global-header.css for full diagram.
 * LOAD ORDER: global-header.css → navigation-header.css → header-variants.css
 */

.navigation-header {
    width: 100%;
}

.navigation-header-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* All items stretch to same height */
    gap: 20px;
    max-width: 1440px;

    /* Allow items container to take remaining space */
    min-width: 0;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Product Logo */
.navigation-header-logo {
    display: flex;
    align-items: center;
    padding: 12px 0;
    flex-shrink: 0;
}

.navigation-header-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation Items Container */
.navigation-header-items {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Items stretch to container height */
    justify-content: flex-end;
    /* Align items to the right */
    flex-grow: 1;
    /* Take remaining space after logo */
    gap: 0;
    /* No gap - spacing handled by item padding */
    /* flex-wrap: wrap; Reverted per user request */
    white-space: nowrap;
}


/* Individual Navigation Item */
.navigation-header-item {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    /* Center text within equal-width boxes */
    align-items: center;
    padding: 12px 16px;
    /* More horizontal padding */
    box-sizing: border-box;

    /* Equal width items - only shrink if overflow */
    flex: 0 1 auto;
    /* Don't grow, can shrink, natural width */
    min-width: 110px;
    /* Minimum width for visual consistency */
    white-space: normal;

    min-height: 64px;
    /* Fixed height for consistent underline position */

    font-family: var(--font-family-base);
    font-style: normal;
    font-weight: 600;
    font-size: var(--font-ui-size);
    line-height: var(--font-ui-height);
    /* Tighter line-height for multi-line items */
    text-align: left;
    /* Left-aligned text */
    text-transform: none;
    text-decoration: none;

    color: #FFFFFF;
    transition: color 0.2s ease;
}


/* Underline for consistent positioning */
.navigation-header-item::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    height: 2px;
    background: transparent;
    transition: background-color 0.2s ease;
}


.navigation-header-item:hover::after {
    background: rgba(255, 255, 255, 0.5);
}

/* Active State */
.navigation-header-item.is-active {
    color: #00A6DD;
}

.navigation-header-item.is-active::after {
    background: #00A6DD;
}


/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1440px) {
    .navigation-header-content {
        gap: 15px;
        padding: 0 40px;
    }

    .navigation-header-item {
        padding: 12px 12px;
        /* Start shrinking padding earlier */
    }
}

@media (max-width: 1350px) {
    .navigation-header-item {
        padding: 12px 8px;
        min-width: 100px;
        font-size: var(--font-ui-size);
    }

    .navigation-header-logo img {
        max-height: 40px;
        /* Scale down height instead of forcing width */
    }
}

@media (max-width: 1244px) {
    .navigation-header-content {
        gap: 15px;
        padding: 0 40px;
        max-width: 100%;
    }

    .navigation-header-item {
        padding: 12px 8px;
        /* Reduced padding */
        font-size: var(--font-caption-size);
        /* Reduced font size */
        min-height: 60px;
        min-width: 90px;
        /* Allow shrinking */
    }

    .navigation-header-item::after {
        left: 8px;
        right: 8px;
    }

    .navigation-header-logo img {
        max-height: 35px;
    }
}

@media (max-width: 1100px) {
    .navigation-header-content {
        padding: 0 40px;
        gap: 10px;
    }

    .navigation-header-item {
        padding: 12px 4px;
        font-size: var(--font-caption-size);
        min-width: 80px;
    }
}

@media (max-width: 1024px) {

    /* Hide navigation header on mobile - integrated into hamburger menu */
    .navigation-header {
        display: none;
    }
}