/**
 * Page Headers Stylesheet
 * Customizable section headers for Industries, Categories, Brands, Products
 * Version: 3.5.0
 * Created: November 18, 2025
 */

/* ===================================
   PAGE HEADER BASE STYLES
   =================================== */

.page-header {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header-content {
    width: 100%;
}

/* ===================================
   HEIGHT VARIATIONS
   =================================== */

.header-height-small {
    min-height: 200px;
    padding: 40px 0;
}

.header-height-medium {
    min-height: 300px;
    padding: 60px 0;
}

.header-height-large {
    min-height: 400px;
    padding: 80px 0;
}

.header-height-auto {
    padding: 60px 0;
}

/* ===================================
   LAYOUT VARIATIONS
   =================================== */

/* Centered Layout (Default) */
.header-layout-centered .page-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Left Aligned Layout */
.header-layout-left .page-header-content {
    text-align: left;
    max-width: 700px;
    margin-right: auto;
}

/* Right Aligned Layout */
.header-layout-right .page-header-content {
    text-align: right;
    max-width: 700px;
    margin-left: auto;
}

/* Split Layout */
.header-layout-split {
    padding: 0;
}

.header-layout-split .page-header-container {
    display: flex;
    align-items: center;
    min-height: 350px;
}

.header-layout-split .page-header-content {
    flex: 1;
    text-align: left;
    padding: 60px 40px;
}

/* ===================================
   TEXT ELEMENTS
   =================================== */

.page-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 15px 0;
    opacity: 0.95;
}

.page-header-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
    max-width: 700px;
}

.header-layout-centered .page-header-description {
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   CTA BUTTON
   =================================== */

.page-header-cta {
    margin-top: 25px;
}

.page-header-cta .btn {
    min-width: 180px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--theme-primary, #6366f1);
    color: white;
    border-color: var(--theme-primary, #6366f1);
}

.btn-primary:hover {
    background: var(--theme-secondary, #4f46e5);
    border-color: var(--theme-secondary, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--theme-secondary, #8b5cf6);
    color: white;
    border-color: var(--theme-secondary, #8b5cf6);
}

.btn-secondary:hover {
    background: var(--theme-accent, #7c3aed);
    border-color: var(--theme-accent, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--theme-primary, #6366f1);
}

.btn-white {
    background: white;
    color: var(--theme-primary, #6366f1);
    border-color: white;
}

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ===================================
   BREADCRUMBS
   =================================== */

.page-header-breadcrumbs {
    margin-bottom: 25px;
}

.header-layout-centered .page-header-breadcrumbs {
    text-align: center;
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.header-layout-centered .breadcrumb-list {
    justify-content: center;
}

.header-layout-right .breadcrumb-list {
    justify-content: flex-end;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item::after {
    content: "›";
    margin-left: 8px;
    opacity: 0.6;
}

.breadcrumb-item:last-child::after {
    content: "";
    margin-left: 0;
}

.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-item.active {
    opacity: 1;
    font-weight: 500;
}

/* Breadcrumb Alignment */
.breadcrumb-align-left .breadcrumb-list {
    justify-content: flex-start;
}

.breadcrumb-align-center .breadcrumb-list {
    justify-content: center;
}

.breadcrumb-align-right .breadcrumb-list {
    justify-content: flex-end;
}

/* ===================================
   TEXT ALIGNMENT UTILITIES
   =================================== */

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    .page-header-title {
        font-size: 2rem;
    }

    .page-header-subtitle {
        font-size: 1.1rem;
    }

    .page-header-description {
        font-size: 0.95rem;
    }

    .header-height-small {
        min-height: 180px;
        padding: 35px 0;
    }

    .header-height-medium {
        min-height: 250px;
        padding: 50px 0;
    }

    .header-height-large {
        min-height: 350px;
        padding: 70px 0;
    }

    /* Split layout becomes stacked */
    .header-layout-split .page-header-container {
        flex-direction: column;
    }

    .header-layout-split .page-header-content {
        padding: 50px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-header-container {
        padding: 0 15px;
    }

    .page-header-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .page-header-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .page-header-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .header-height-small {
        min-height: 160px;
        padding: 30px 0;
    }

    .header-height-medium {
        min-height: 220px;
        padding: 40px 0;
    }

    .header-height-large {
        min-height: 300px;
        padding: 60px 0;
    }

    .page-header-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Force centered text on mobile for better readability */
    .header-layout-left .page-header-content,
    .header-layout-right .page-header-content {
        text-align: center;
        margin: 0 auto;
    }

    .header-layout-left .breadcrumb-list,
    .header-layout-right .breadcrumb-list {
        justify-content: center;
    }

    .header-layout-split .page-header-content {
        text-align: center;
        padding: 40px 20px;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .page-header-title {
        font-size: 1.5rem;
    }

    .page-header-subtitle {
        font-size: 0.95rem;
    }

    .page-header-description {
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.page-header a:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .page-header *,
    .page-header *::before,
    .page-header *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .page-header {
        background: none !important;
        color: black !important;
        min-height: auto !important;
        padding: 20px 0 !important;
    }

    .page-header-overlay {
        display: none !important;
    }

    .page-header-cta {
        display: none !important;
    }

    .page-header-title,
    .page-header-subtitle,
    .page-header-description {
        color: black !important;
        text-shadow: none !important;
    }
}
