/* ===========================================
   UNIFIED PAGE HEADER COMPONENT
   Use across all pages for consistent design
   =========================================== */

/* CSS Variables */
:root {
    --ph-primary: #6366f1;
    --ph-primary-dark: #4f46e5;
    --ph-success: #10b981;
    --ph-success-dark: #059669;
    --ph-warning: #f59e0b;
    --ph-warning-dark: #d97706;
    --ph-danger: #ef4444;
    --ph-info: #06b6d4;
    --ph-purple: #8b5cf6;
    --ph-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --ph-gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --ph-gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --ph-gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --ph-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ph-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ph-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ph-border-radius: 16px;
    --ph-border-radius-sm: 12px;
    --ph-border-radius-xs: 8px;
}

/* ==========================================
   Page Header - Purple Gradient Card
   ========================================== */
.ph-header {
    background: var(--ph-gradient);
    border-radius: var(--ph-border-radius);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.ph-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ph-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.ph-content {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Header Badge
   ========================================== */
.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ph-badge svg {
    width: 14px;
    height: 14px;
}

/* ==========================================
   Page Title
   ========================================== */
.ph-title {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-title svg {
    width: 32px;
    height: 32px;
}

.ph-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* ==========================================
   Stats Row
   ========================================== */
.ph-stats-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ph-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ph-border-radius-xs);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ph-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ph-border-radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
}

.ph-stat-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.ph-stat-icon.primary {
    background: rgba(255, 255, 255, 0.25);
}

.ph-stat-icon.success {
    background: rgba(16, 185, 129, 0.4);
}

.ph-stat-icon.warning {
    background: rgba(245, 158, 11, 0.4);
}

.ph-stat-icon.info {
    background: rgba(6, 182, 212, 0.4);
}

.ph-stat-icon.purple {
    background: rgba(139, 92, 246, 0.4);
}

.ph-stat-icon.pink {
    background: rgba(236, 72, 153, 0.4);
}

.ph-stat-content {
    flex: 1;
}

.ph-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.ph-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
    .ph-header {
        padding: 24px;
    }

    .ph-title {
        font-size: 24px;
    }

    .ph-stats-row {
        gap: 12px;
    }

    .ph-stat-card {
        min-width: 120px;
        padding: 12px 16px;
    }

    .ph-stat-value {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .ph-header {
        padding: 20px;
    }

    .ph-title {
        font-size: 22px;
    }

    .ph-title svg {
        width: 24px;
        height: 24px;
    }

    .ph-stats-row {
        flex-direction: column;
    }

    .ph-stat-card {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .ph-header {
        padding: 16px;
        border-radius: var(--ph-border-radius-sm);
    }

    .ph-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .ph-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .ph-subtitle {
        font-size: 13px;
    }

    .ph-stat-icon {
        width: 40px;
        height: 40px;
    }

    .ph-stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .ph-stat-value {
        font-size: 18px;
    }
}