/**
 * Consolidated Hero Component Styles
 * 
 * Common styles for all hero variants (page, form, detail, header)
 * Theme-specific colors are handled via theme classes
 */

/* Hero Utility Classes - replaces inline styles */
.hero-min-height {
  min-height: 360px;
}

.hero-min-height-lg {
  min-height: 70vh;
}

.hero-content-wrapper {
  max-width: 480px;
  width: 100%;
}

.hero-search-wrapper {
  max-width: 600px;
}

.hero-gradient-primary {
  background: linear-gradient(to right, var(--bs-primary-bg-subtle), var(--bs-info-bg-subtle));
}

.hero-z-content {
  z-index: 1;
}

.hero-z-overlay {
  z-index: 2;
}

/* Banner background utilities */
.hero-banner-bg {
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.7);
  z-index: 0;
}

/* Base Hero Structure */
[class$="-hero"] {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: var(--bs-body-emphasis-color);
}

/* Background Layers */
[class$="-hero-bg"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 0;
}

[class$="-hero-pattern"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Icon Styling */
[class$="-hero-icon"] {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

[class$="-hero-icon"] i {
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Typography */
[class$="-hero"] h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bs-body-emphasis-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

[class$="-hero"] p {
    font-size: 1.375rem;
    color: var(--bs-body-emphasis-color);
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Badges */
[class$="-hero-stats"] {
    margin-top: 1rem;
}

[class$="-hero-stats"] .badge {
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    color: var(--bs-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--bs-border-radius-pill);
    box-shadow: var(--bs-box-shadow-sm);
}

[class$="-hero-stats"] .badge strong {
    font-weight: 700;
}

/* Button Styles */
[class$="-hero"] .btn-primary {
    background: var(--bs-body-emphasis-color);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--bs-box-shadow-sm);
}

[class$="-hero"] .btn-primary:hover {
    background: var(--bs-body-tertiary-bg);
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow);
}

[class$="-hero"] .btn-outline-primary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--bs-body-emphasis-color);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.2s ease;
}

[class$="-hero"] .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--bs-body-emphasis-color);
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    [class$="-hero"] {
        min-height: 350px;
    }
    
    [class$="-hero"] h1 {
        font-size: 2.75rem;
    }
    
    [class$="-hero-icon"] {
        font-size: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    [class$="-hero"] {
        min-height: 320px;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    [class$="-hero"] h1 {
        font-size: 2.25rem;
    }
    
    [class$="-hero"] p {
        font-size: 1.125rem;
    }
    
    [class$="-hero-icon"] {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
    
    [class$="-hero-stats"] .badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    [class$="-hero"] .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Form Hero Variant */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-text-emphasis) 100%);
    color: var(--bs-body-emphasis-color);
}

/* Hero content wrapper for form heroes - no additional styles needed */

.hero-badges {
    margin-top: 1rem;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bs-body-color);
    padding: 0.5rem 1rem;
    border-radius: var(--bs-border-radius);
}

