/* ============================================================================
   Page Header Component
   ============================================================================
   Inner page header with title and breadcrumb navigation.
   Based on KJS Lofts design style.
   ========================================================================== */

/* Page Header Wrapper
   ========================================================================== */
.page-header {
    background-color: #f7f7f7;
    padding: 40px 0 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

/* Page Header Inner Container
   ========================================================================== */
.page-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Page Title
   ========================================================================== */
.page-header__title {
    color: var(--color-secondary, #0fb6ee);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Breadcrumb Navigation
   ========================================================================== */
.breadcrumbs {
    font-size: 14px;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.5;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Breadcrumb Links
   ========================================================================== */
.breadcrumbs a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--color-secondary, #0fb6ee);
    text-decoration: none;
}

/* Breadcrumb Separator
   ========================================================================== */
.breadcrumbs__separator {
    color: #999;
    margin: 0 4px;
    user-select: none;
}

.breadcrumbs__separator::before {
    content: '»';
}

/* Current Page (no link)
   ========================================================================== */
.breadcrumbs__current {
    color: #888;
    font-weight: 500;
}

/* Alternative: Breadcrumbs on Desktop (Absolute Position)
   ========================================================================== */
.page-header__inner--absolute-breadcrumbs {
    display: block;
}

.page-header__inner--absolute-breadcrumbs .breadcrumbs {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Tablet Styles
   ========================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0 15px;
        margin-bottom: 30px;
    }

    .page-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header__title {
        font-size: 28px;
    }

    .breadcrumbs {
        font-size: 13px;
    }

    /* Reset absolute positioning on tablet */
    .page-header__inner--absolute-breadcrumbs {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header__inner--absolute-breadcrumbs .breadcrumbs {
        position: static;
        transform: none;
    }
}

/* Mobile Styles
   ========================================================================== */
@media (max-width: 480px) {
    .page-header {
        padding: 25px 0 12px;
        margin-bottom: 25px;
    }

    .page-header__inner {
        padding: 0 15px;
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .page-header__title {
        font-size: 24px;
        width: 100%;
    }

    .breadcrumbs {
        font-size: 13px;
        justify-content: center;
        width: 100%;
    }
}

/* Dark Background Variant
   ========================================================================== */
.page-header--dark {
    background-color: #f0f0f0;
    border-bottom-color: #ddd;
}

/* Light Background Variant
   ========================================================================== */
.page-header--light {
    background-color: #fafafa;
    border-bottom-color: #eee;
}

/* No Border Variant
   ========================================================================== */
.page-header--no-border {
    border-bottom: none;
}

/* Compact Variant (Less Padding)
   ========================================================================== */
.page-header--compact {
    padding: 25px 0 12px;
    margin-bottom: 25px;
}

/* Print Styles
   ========================================================================== */
@media print {
    .page-header {
        background-color: transparent;
        border-bottom: 1px solid #000;
        padding: 20px 0 10px;
        margin-bottom: 20px;
    }

    .breadcrumbs {
        display: none;
    }

    .page-header__title {
        color: #000;
    }
}
