/* ==========================================================================
   Hero Premium Cosmetics Design
   화장품 브랜드에 맞는 프리미엄 디자인 시스템
   ========================================================================== */

:root {
    /* 화장품 브랜드 색상 팔레트 */
    --cosmetics-rose-gold: #F4C2A1;
    --cosmetics-elegant-pink: #E8B4B8;
    --cosmetics-gold-accent: #D4AF37;
    --cosmetics-soft-cream: #FDF8F3;
    --cosmetics-warm-white: #FEFBF6;
    --cosmetics-shadow: rgba(212, 175, 55, 0.15);
    --cosmetics-glow: rgba(244, 194, 161, 0.3);
}

/* 히어로 섹션 전체 개선 */
.hero {
    /* 배경 이미지 위에 부드러운 오버레이 추가 */
    background-blend-mode: soft-light !important;
    background-color: var(--cosmetics-soft-cream) !important;
    position: relative !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(253, 248, 243, 0.1) 0%,
        rgba(244, 194, 161, 0.1) 50%,
        rgba(232, 180, 184, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* 히어로 콘텐츠 z-index 조정 */
.hero-content {
    position: relative !important;
    z-index: 10 !important;
}

/* 배지 프리미엄 디자인 개선 */
.hero-badge {
    background: linear-gradient(
        135deg, 
        var(--cosmetics-rose-gold) 0%, 
        var(--cosmetics-elegant-pink) 50%,
        var(--cosmetics-gold-accent) 100%
    ) !important;
    color: white !important;
    border: 2px solid var(--cosmetics-warm-white) !important;
    box-shadow: 
        0 8px 32px var(--cosmetics-shadow),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.6s ease;
}

.hero-badge:hover::before {
    left: 100%;
}

.hero-badge:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 12px 40px var(--cosmetics-glow),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.4) !important;
}

/* 제목 텍스트 개선 */
.hero-title {
    color: #2D3748 !important;
    text-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.8),
        0 4px 16px rgba(244, 194, 161, 0.2) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* 전문가 추천: 스마트 배경 오버레이 방식 (최고 시인성) */
.hero-title .highlight {
    /* 컨테이너 스타일링 */
    position: relative !important;
    display: inline-block !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    
    /* 메인 텍스트 - 고대비 흰색 */
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    
    /* 시인성을 위한 강력한 텍스트 쉐도우 */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(44, 24, 16, 0.8),
        0 0 15px rgba(212, 175, 55, 0.4) !important;
    
    /* 트랜지션 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* z-index로 텍스트를 배경 위에 배치 */
    z-index: 2 !important;
}

/* 스마트 다크 오버레이 배경 (최적 대비를 위한) */
.hero-title .highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    
    /* 컨텍스트 적응형 다크 배경 */
    background: radial-gradient(
        ellipse at center, 
        rgba(44, 24, 16, 0.92) 0%,
        rgba(44, 24, 16, 0.85) 60%,
        rgba(44, 24, 16, 0.75) 100%
    ) !important;
    
    border-radius: 12px !important;
    
    /* 백드롭 효과로 배경 블러 */
    backdrop-filter: blur(8px) saturate(1.1) !important;
    
    /* 브랜드 골드 보더 */
    border: 2px solid rgba(212, 175, 55, 0.6) !important;
    
    /* 프리미엄 쉐도우 */
    box-shadow: 
        0 8px 32px rgba(44, 24, 16, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(212, 175, 55, 0.2) !important;
    
    z-index: -1 !important;
}

/* 골드 액센트 효과 (브랜드 일관성 유지) */
.hero-title .highlight::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    
    /* 브랜드 골드 그라디언트 보더 */
    background: linear-gradient(
        135deg,
        var(--cosmetics-gold-accent) 0%,
        var(--cosmetics-rose-gold) 30%,
        var(--cosmetics-elegant-pink) 70%,
        var(--cosmetics-gold-accent) 100%
    ) !important;
    
    border-radius: 14px !important;
    z-index: -2 !important;
    opacity: 0.8 !important;
    
    /* 서브틀한 글로우 효과 */
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(244, 194, 161, 0.2) !important;
}

/* 호버 효과 - 스마트 오버레이 버전 */
.hero-title:hover .highlight {
    transform: translateY(-2px) scale(1.02) !important;
    
    /* 텍스트 더 선명하게 */
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(44, 24, 16, 1),
        0 0 20px rgba(212, 175, 55, 0.6) !important;
}

.hero-title:hover .highlight::before {
    /* 호버 시 배경 더 진하게 (더 나은 대비) */
    background: radial-gradient(
        ellipse at center, 
        rgba(44, 24, 16, 0.95) 0%,
        rgba(44, 24, 16, 0.90) 60%,
        rgba(44, 24, 16, 0.80) 100%
    ) !important;
    
    border-color: rgba(212, 175, 55, 0.8) !important;
    
    box-shadow: 
        0 12px 40px rgba(44, 24, 16, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(212, 175, 55, 0.3) !important;
}

.hero-title:hover .highlight::after {
    /* 호버 시 골드 보더 더 밝게 */
    opacity: 1 !important;
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(244, 194, 161, 0.3) !important;
}

/* 브라우저 호환성을 위한 폴백 - 스마트 오버레이 버전 */
@supports not (backdrop-filter: blur(8px)) {
    .hero-title .highlight::before {
        /* 백드롭 필터 미지원시 불투명 배경 사용 */
        background: rgba(44, 24, 16, 0.95) !important;
        backdrop-filter: none !important;
    }
}

/* 구형 브라우저 전체 폴백 */
@supports not (inset: 0) {
    .hero-title .highlight::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .hero-title .highlight::after {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
    }
}

/* 통계 숫자 브라우저 호환성 */
@supports not (-webkit-background-clip: text) {
    .stat-number {
        background: none !important;
        color: #FFD700 !important;
        -webkit-text-fill-color: #FFD700 !important;
        text-shadow: 
            0 2px 8px rgba(255, 215, 0, 0.4),
            0 0 4px rgba(255, 193, 7, 0.3) !important;
    }
}

/* 부제목 개선 */
.hero-subtitle {
    color: rgba(45, 55, 72, 0.9) !important;
    text-shadow: 
        0 2px 6px rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(244, 194, 161, 0.2) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

/* 개선된 통계 섹션 디자인 */
.hero-stats {
    display: flex !important;
    gap: var(--space-4) !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    margin: var(--space-6) 0 !important;
}

/* 개별 통계 카드 디자인 */
.stat-item {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(253, 248, 243, 0.8) 50%,
        rgba(255, 255, 255, 0.7) 100%
    ) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 16px !important;
    padding: var(--space-4) var(--space-3) !important;
    min-width: 120px !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* 프리미엄 쉐도우 */
    box-shadow: 
        0 8px 32px rgba(255, 215, 0, 0.15),
        0 4px 16px rgba(244, 194, 161, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(255, 215, 0, 0.2) !important;
    
    overflow: hidden !important;
}

/* 카드 호버 효과 */
.stat-item:hover {
    transform: translateY(-4px) scale(1.02) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 
        0 12px 40px rgba(255, 215, 0, 0.25),
        0 6px 20px rgba(244, 194, 161, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.08),
        inset 0 3px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(255, 215, 0, 0.3) !important;
}

/* 카드 배경 효과 */
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 215, 0, 0.05) 30%,
        rgba(255, 242, 0, 0.08) 50%,
        rgba(255, 193, 7, 0.05) 70%,
        transparent 100%
    );
    z-index: 0;
}

/* 숫자 스타일 개선 */
.stat-number {
    /* 더 밝고 시인성 좋은 골드 그라디언트 */
    background: linear-gradient(
        135deg,
        #FFD700 0%,
        #FFC107 30%,
        #FFEA00 50%,
        #FFD700 70%,
        #FFF200 100%
    ) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    
    /* 백업 색상 */
    color: #FFD700 !important;
    
    /* 강화된 텍스트 쉐도우 */
    text-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.4),
        0 1px 4px rgba(255, 193, 7, 0.3),
        0 0 2px rgba(0, 0, 0, 0.2) !important;
    
    font-weight: 900 !important;
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    margin-bottom: var(--space-2) !important;
}

/* 라벨 스타일 개선 */
.stat-label {
    color: rgba(45, 55, 72, 0.9) !important;
    text-shadow: 
        0 1px 3px rgba(255, 255, 255, 0.9),
        0 0 1px rgba(255, 215, 0, 0.2) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.3px !important;
    line-height: 1.3 !important;
    position: relative !important;
    z-index: 2 !important;
    text-transform: uppercase !important;
}

/* CTA 버튼들 프리미엄 디자인 */
.hero-cta {
    position: relative !important;
    z-index: 10 !important;
}

.btn-primary {
    background: linear-gradient(
        135deg, 
        var(--cosmetics-elegant-pink) 0%, 
        var(--cosmetics-rose-gold) 50%,
        var(--cosmetics-gold-accent) 100%
    ) !important;
    border: none !important;
    color: white !important;
    box-shadow: 
        0 8px 24px var(--cosmetics-shadow),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--cosmetics-gold-accent),
        var(--cosmetics-rose-gold)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 12px 32px var(--cosmetics-glow),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.4) !important;
}

.btn-secondary {
    background: rgba(253, 248, 243, 0.2) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(244, 194, 161, 0.4) !important;
    color: var(--cosmetics-gold-accent) !important;
    box-shadow: 
        0 6px 20px rgba(244, 194, 161, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 0.5) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-secondary:hover {
    background: rgba(244, 194, 161, 0.15) !important;
    border-color: var(--cosmetics-gold-accent) !important;
    color: var(--cosmetics-gold-accent) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 8px 24px rgba(244, 194, 161, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 2px 6px rgba(255, 255, 255, 0.6) !important;
}

/* 입자 효과 배경 조정 */
.hero-bg-animation {
    opacity: 0.05 !important;
    background: radial-gradient(
        circle at 30% 70%,
        var(--cosmetics-rose-gold) 0%,
        transparent 50%
    ), radial-gradient(
        circle at 70% 30%,
        var(--cosmetics-elegant-pink) 0%,
        transparent 50%
    ) !important;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .hero-badge {
        padding: var(--space-2) var(--space-4) !important;
        font-size: 0.85rem !important;
    }
    
    /* 모바일에서 통계 섹션 조정 */
    .hero-stats {
        gap: var(--space-3) !important;
        margin: var(--space-4) var(--space-2) !important;
    }
    
    .stat-item {
        min-width: 100px !important;
        padding: var(--space-3) var(--space-2) !important;
        flex: 1 1 calc(33.333% - var(--space-2)) !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 0.2px !important;
    }
    
    /* 모바일에서 하이라이트 텍스트 조정 */
    .hero-title .highlight {
        font-size: 0.9em !important;
        letter-spacing: 0.5px !important;
        padding: 0.8rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    /* 작은 화면에서 통계 섹션 세로 배치 */
    .hero-stats {
        flex-direction: column !important;
        gap: var(--space-2) !important;
        margin: var(--space-4) var(--space-3) !important;
    }
    
    .stat-item {
        min-width: auto !important;
        padding: var(--space-3) var(--space-4) !important;
        flex: none !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
    
    .hero-badge {
        padding: var(--space-2) var(--space-3) !important;
        font-size: 0.8rem !important;
    }
    
    /* 작은 화면에서 하이라이트 텍스트 더 조정 */
    .hero-title .highlight {
        font-size: 0.85em !important;
        letter-spacing: 0.3px !important;
        padding: 0.6rem 1.2rem !important;
    }
}

/* 다크 모드 대응 */
@media (prefers-color-scheme: dark) {
    .hero {
        background-color: rgba(26, 32, 44, 0.3) !important;
    }
    
    .hero::before {
        background: linear-gradient(
            135deg, 
            rgba(26, 32, 44, 0.2) 0%,
            rgba(244, 194, 161, 0.05) 50%,
            rgba(232, 180, 184, 0.03) 100%
        );
    }
    
    .hero-title {
        color: var(--cosmetics-warm-white) !important;
    }
    
    .hero-subtitle {
        color: rgba(253, 248, 243, 0.9) !important;
    }
}

/* 고대비 모드 대응 */
@media (prefers-contrast: high) {
    .hero-badge,
    .hero-title .highlight,
    .btn-primary {
        border-width: 3px !important;
        border-color: var(--cosmetics-gold-accent) !important;
    }
    
    .stat-number {
        -webkit-text-fill-color: var(--cosmetics-gold-accent) !important;
        color: var(--cosmetics-gold-accent) !important;
    }
}

/* 애니메이션 감소 모드 */
@media (prefers-reduced-motion: reduce) {
    .hero-badge::before,
    .hero-title .highlight::after {
        animation: none !important;
    }
    
    .hero-badge:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none !important;
    }
}

/* 인쇄 모드 */
@media print {
    .hero-bg-animation,
    .hero::before {
        display: none !important;
    }
    
    .hero-badge,
    .hero-title .highlight,
    .btn-primary {
        background: var(--cosmetics-elegant-pink) !important;
        color: white !important;
        box-shadow: none !important;
    }
}