/**
 * Page Header Component
 * Standard header with H1 title and description for SEO and consistency
 */

/* Base Page Header - Left aligned by default */
.page-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Page Title - H1 for SEO */
.page-header .page-title,
.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

/* Page Description */
.page-header .page-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Links within page description */
.page-header .page-description a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-header .page-description a:hover {
    color: var(--color-primary-hover, var(--color-primary));
    text-decoration: underline;
}

/* Compact variant for pages with dense layouts */
.page-header--compact {
    margin-bottom: 1rem;
}

.page-header--compact .page-title,
.page-header--compact h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

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

/* Header with action buttons variant */
.page-header--with-actions .page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.page-header--with-actions .page-header-text {
    flex: 1;
}

.page-header--with-actions .page-title,
.page-header--with-actions h1 {
    margin-bottom: 0.25rem;
}

/* Center-aligned variant */
.page-header--center {
    text-align: center;
}

.page-header--center .page-title,
.page-header--center h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-header--center .page-description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1rem;
    }

    .page-header .page-title,
    .page-header h1 {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .page-header .page-title,
    .page-header h1 {
        font-size: 1.25rem;
    }

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

    /* Stack header with actions on mobile */
    .page-header--with-actions .page-header-row {
        flex-direction: column;
        gap: 0.75rem;
    }
}
