﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Compact Hero Dashboard Styles - Lightweight alternative to cinematic hero
 * Based on the AncestryPublications hero pattern for performance and simplicity
 */

/* ========================================
   COMPACT HERO SECTION
   ======================================== */
.dhc-hero {
    background: linear-gradient(160deg, #2d1f14 0%, #3d2b1f 35%, #4a3728 70%, #5c4333 100%);
    padding: 48px 24px 56px;
    padding-top: calc(var(--nav-height, 72px) + 48px);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    /* Full-width: break out of container */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.dhc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 80% at 80% 20%, rgba(201, 169, 98, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(125, 154, 120, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.dhc-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.3), transparent);
}

.dhc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.dhc-hero-main {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
}

.dhc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: #d4b974;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.dhc-hero-badge i {
    font-size: 0.875rem;
}

.dhc-hero-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dhc-hero-title span {
    color: #d4b974;
    text-shadow: 0 2px 12px rgba(212, 185, 116, 0.5), 0 4px 20px rgba(201, 169, 98, 0.3);
}

.dhc-hero-subtitle {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.125rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.dhc-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

.dhc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    min-width: 120px;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.dhc-hero-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 169, 98, 0.3);
    transform: translateY(-2px);
}

.dhc-hero-stat i {
    font-size: 1.25rem;
    color: #c9a962;
    margin-bottom: 8px;
}

.dhc-hero-stat-value {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #c9a962;
    line-height: 1;
}

.dhc-hero-stat-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.dhc-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.dhc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.dhc-btn--primary {
    background: linear-gradient(135deg, #c9a962 0%, #d4b974 100%);
    color: #2d1f14;
    box-shadow: 0 8px 32px rgba(201, 169, 98, 0.25);
}

.dhc-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 169, 98, 0.35);
    color: #2d1f14;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
    .dhc-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 24px;
    }
    
    .dhc-hero-main {
        width: 100%;
    }
    
    .dhc-hero-stats {
        justify-content: center;
        width: 100%;
    }
    
    .dhc-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    .dhc-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dhc-hero {
        padding: 32px 16px 40px;
        padding-top: calc(var(--nav-height-mobile, 64px) + 32px);
    }
    
    .dhc-hero-content {
        padding: 0 16px;
    }
    
    .dhc-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }
    
    .dhc-hero-stat {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dhc-hero-title {
        font-size: 1.75rem;
    }
    
    .dhc-hero-subtitle {
        font-size: 1rem;
    }
    
    .dhc-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .dhc-hero-stat {
        padding: 12px 16px;
        min-width: auto;
    }
    
    .dhc-hero-stat-value {
        font-size: 1.5rem;
    }
    
    .dhc-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dhc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .dhc-hero {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .dhc-hero::before,
    .dhc-hero::after {
        display: none;
    }
    
    .dhc-hero-actions {
        display: none !important;
    }
}
