/**
 * Article Page Header Block Styles
 * Hero-style header with background image for article post pages
 * Based on Figma design specs: 1440x440px
 */

/* ============================================
   FORCE FULL-WIDTH DISPLAY
   ============================================ */

.wp-block-mawconsultant-article-page-header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Override any parent container styles */
.site-main .wp-block-mawconsultant-article-page-header,
.entry-content .wp-block-mawconsultant-article-page-header,
article .wp-block-mawconsultant-article-page-header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

.article-header-base {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   BACKGROUND & OVERLAY
   ============================================ */

.article-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1a1a1a;
}

.article-header-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* ============================================
   CONTAINER - FIGMA SPECS
   ============================================ */

.article-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x, 80px) 40px var(--container-padding-x, 80px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-header-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 800px;
    margin-bottom: 4px;
}

/* ============================================
   META LABEL - FIGMA SPECS
   ============================================ */

.article-date,
.article-category {
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
    display: inline;
}

.article-date::after {
    content: ' •';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   TITLE - FIGMA SPECS
   ============================================ */

.article-header-title {
    font-family: var(--font-serif, 'Gambetta', serif);
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -0.02em;
    color: rgba(240, 240, 240, 1);
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    .article-header-base {
        height: 380px;
    }

    .article-header-content {
        padding: 0 var(--container-padding-x, 60px) 40px var(--container-padding-x, 60px);
    }

    .article-header-title {
        font-size: 36px;
        line-height: 44px;
    }
}

@media (max-width: 768px) {
    .article-header-base {
        height: 320px;
    }

    .article-header-content {
        padding: 0 var(--container-padding-x, 32px) 40px var(--container-padding-x, 32px);
    }

    .article-header-meta {
        gap: 4px;
    }

    .article-date,
    .article-category {
        font-size: 12px;
        line-height: 18px;
    }

    .article-header-title {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 480px) {
    .article-header-base {
        height: 280px;
    }

    .article-header-content {
        padding: 0 var(--container-padding-x, 24px) 40px var(--container-padding-x, 24px);
    }

    .article-date,
    .article-category {
        font-size: 11px;
        line-height: 16px;
    }
}

/* ============================================
   GUTENBERG EDITOR PREVIEW STYLES
   ============================================ */

.article-header-editor {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.article-header-preview {
    position: relative;
    min-height: 400px;
    height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-header-preview__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}

.article-header-preview__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.article-header-preview__container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px;
}

.article-header-preview__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.article-header-preview__meta {
    display: flex;
    gap: 8px;
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin: 0;
}

.article-header-preview__title {
    font-family: var(--font-serif, 'Gambetta', serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -0.02em;
    color: rgba(240, 240, 240, 1);
    margin: 0;
}

/* ============================================
   WORDPRESS EDITOR OVERRIDES
   ============================================ */

.editor-styles-wrapper .article-header-preview__title,
.editor-styles-wrapper .article-header-preview__meta {
    color: inherit !important;
}
