/* Shared Page Headers Styling */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.9) 0%, 
        rgba(255, 255, 255, 0.95) 50%, 
        rgba(248, 250, 252, 0.9) 100%);
    overflow: hidden;
    padding-top: 2rem;
}

/* Force pure white background for compact headers */
.page-hero--compact {
    background: #ffffff !important;
}

/* Compact variant for pages that need tighter spacing */
.page-hero--compact .max-w-7xl {
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
}

/* Subtle header container polish */
.page-hero--compact .text-center {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.page-hero-pattern {
    position: absolute;
    inset: 0;
    /* Simplified: remove decorative colors and shadows */
    background: none;
    opacity: 0; /* fully neutral */
    animation: none;
    pointer-events: none;
}

.text-accent {
    position: relative;
    display: inline-block;
    color: rgb(225 29 72);
    background: linear-gradient(135deg, rgb(225 29 72), rgb(190 18 60));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.1em;
    background: linear-gradient(90deg, 
        rgba(225, 29, 72, 0.3), 
        rgba(225, 29, 72, 0.6), 
        rgba(225, 29, 72, 0.3));
    transform: scaleX(0);
    transform-origin: left;
    animation: accentLine 0.6s ease-out 0.3s forwards;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-12px, 12px); }
}

@keyframes accentLine {
    to { transform: scaleX(1); }
}

/* Header Text Animation */
.page-hero h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}

.page-hero p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 0.3s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back-link button (shared) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.5rem;
    color: #475569;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: color 180ms ease, border-color 180ms ease, box-shadow 200ms ease, transform 180ms ease, background-color 180ms ease;
}
.back-link i { transition: transform 180ms ease; }
.back-link:hover {
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.35);
    box-shadow: 0 8px 18px -6px rgba(225, 29, 72, 0.22);
    transform: translateY(-1px);
}
.back-link:hover i { transform: translateX(-3px); }
.back-link:active { transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-hero {
        padding-top: 1rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .page-hero p {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .page-hero-pattern {
        animation: none;
    }
    
    .text-accent::after,
    .page-hero h1,
    .page-hero p {
        animation: none;
        opacity: 1;
        transform: none;
    }
} 