/**
 * Page Header Component - Ultra Modern Design
 * Geometric shapes, glassmorphism, advanced animations
 * 
 * @package Aqarsky
 */

/* ============================================================================
   PAGE HEADER - MODERN HERO SECTION
   ============================================================================ */

.aq-page-header {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 0;
    isolation: isolate;
}

/* Modern Dark Gradient Overlay */
.aq-page-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 23, 42, 0.97) 0%,
        rgba(30, 41, 59, 0.92) 50%,
        rgba(51, 65, 85, 0.88) 100%
    );
    z-index: 1;
}

/* Geometric Shapes - Modern Abstract Design */
.aq-page-header::before,
.aq-page-header::after {
    content: '';
    position: absolute;
    z-index: 1;
    opacity: 0.08;
}

/* Large Circle Top Right */
.aq-page-header::before {
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 50%;
    filter: blur(80px);
    animation: floatShape 20s ease-in-out infinite;
}

/* Triangle Bottom Left */
.aq-page-header::after {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, #8b5cf6, #6366f1);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: blur(60px);
    animation: floatShape 15s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(10deg); }
}

/* Content Container */
.aq-page-header__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-12) var(--space-4);
    animation: fadeInUp 0.8s ease-out;
}

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

/* ============================================================================
   BREADCRUMBS - GLASSMORPHISM STYLE
   ============================================================================ */

.aq-breadcrumbs {
    margin-bottom: var(--space-6);
    animation: slideDown 0.6s ease-out 0.2s both;
}

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

.aq-breadcrumbs ol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.aq-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
}

.aq-breadcrumbs a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-1) var(--space-2);
    border-radius: 8px;
    font-weight: var(--font-medium);
}

.aq-breadcrumbs a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.aq-breadcrumbs svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.aq-breadcrumbs span {
    color: white;
    font-weight: var(--font-semibold);
}

/* ============================================================================
   TITLE & SUBTITLE
   ============================================================================ */

.aq-page-header__title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: var(--font-black, 900);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    
    /* Modern Gradient Text */
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f0f9ff 50%,
        #dbeafe 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Glow Effect */
    filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.3));
    
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.aq-page-header__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: var(--font-normal);
    animation: subtitleFade 1s ease-out 0.5s both;
}

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

/* ============================================================================
   META INFO
   ============================================================================ */

.aq-page-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-6);
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item svg {
    flex-shrink: 0;
}

/* ============================================================================
   MODERN BOTTOM EDGE
   ============================================================================ */

.aq-page-header__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    z-index: 2;
}

/* Diagonal Cut - Modern Clean Look */
.aq-page-header__wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.aq-page-header__wave path {
    fill: var(--color-background, #ffffff);
}

/* Alternative: No wave, just clean edge */
.aq-page-header--clean .aq-page-header__wave {
    display: none;
}

.aq-page-header--clean {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Compact version for inner pages */
.aq-page-header--compact {
    min-height: 280px;
}

.aq-page-header--compact .aq-page-header__content {
    padding: var(--space-8) var(--space-4);
}

/* Full height for landing pages */
.aq-page-header--full {
    min-height: 600px;
}

/* Centered alignment */
.aq-page-header--center {
    text-align: center;
}

/* Left alignment */
.aq-page-header--left .aq-page-header__content {
    text-align: start;
    max-width: var(--container-lg);
    margin: 0 auto;
}

.aq-page-header--left .aq-breadcrumbs ol {
    justify-content: flex-start;
}

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

@media (max-width: 768px) {
    .aq-page-header {
        min-height: 280px;
    }
    
    .aq-page-header__content {
        padding: var(--space-10) var(--space-4);
    }
    
    .aq-page-header__title {
        font-size: 2rem;
        letter-spacing: -0.01em;
    }
    
    .aq-page-header__subtitle {
        font-size: 0.95rem;
    }
    
    .aq-page-header__meta {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .aq-page-header__wave {
        height: 40px;
    }
    
    /* Reduce animations on mobile for performance */
    .aq-page-header::before,
    .aq-page-header::after {
        animation: none;
    }
}

@media (max-width: 480px) {
    .aq-page-header {
        min-height: 240px;
    }
    
    .aq-breadcrumbs ol {
        padding: var(--space-1) var(--space-3);
        gap: 2px;
    }
    
    .aq-breadcrumbs li {
        font-size: 11px;
    }
    
    .aq-page-header__title {
        font-size: 1.75rem;
    }
}

/* ============================================================================
   PERFORMANCE & ACCESSIBILITY
   ============================================================================ */

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .aq-page-header__overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .aq-breadcrumbs ol {
        border-color: rgba(255, 255, 255, 0.5);
    }
}
