/* ============================================================================
   PROFESSIONAL CATEGORY HERO SECTION
   Modern medical instrument category header design
   Inspired by: gSource, Surgical Holdings, NOPA Instruments
   Date: November 29, 2025
   ============================================================================ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. CATEGORY HERO - CLEAN PROFESSIONAL DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

.category-hero-professional {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-bottom: 3px solid var(--color-1st, #0891b2);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay for depth */
.category-hero-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(8, 145, 178, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Container for content alignment */
.category-hero-professional .hero-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. CATEGORY ICON SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.category-hero-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-1st, #0891b2) 0%, #0e7490 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-hero-icon i,
.category-hero-icon svg {
    font-size: 2.5rem;
    color: #ffffff;
}

.category-hero-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. CATEGORY CONTENT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.category-hero-content {
    flex: 1;
}

.category-hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.category-hero-content .hero-description {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    max-width: 700px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. TRUST BADGES / BENEFITS
   ═══════════════════════════════════════════════════════════════════════════ */

.category-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.hero-badge:hover {
    border-color: var(--color-1st, #0891b2);
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.1);
}

.hero-badge i {
    color: var(--color-1st, #0891b2);
    font-size: 1rem;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-1st, #0891b2);
}

/* Alternative: Checkmark style badges */
.hero-badge--check {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0;
}

.hero-badge--check::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-1st, #0891b2);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. BREADCRUMB INTEGRATION
   ═══════════════════════════════════════════════════════════════════════════ */

.category-hero-breadcrumb {
    margin-bottom: 1rem;
}

.category-hero-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.category-hero-breadcrumb a:hover {
    color: var(--color-1st, #0891b2);
}

.category-hero-breadcrumb span {
    color: #94a3b8;
    margin: 0 0.5rem;
}

.category-hero-breadcrumb .current {
    color: #1e293b;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .category-hero-professional .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .category-hero-content {
        width: 100%;
    }
    
    .category-hero-content .hero-description {
        max-width: 100%;
    }
    
    .category-hero-badges {
        justify-content: center;
    }
    
}

@media (max-width: 576px) {
    .category-hero-professional {
        padding: 1.5rem 0;
    }
    
    .category-hero-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-hero-icon i {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. SPECIALTY-SPECIFIC COLOR VARIANTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Cardiovascular - Deep Red */
.category-hero-professional[data-specialty="cardiovascular"],
.category-hero-professional[data-specialty="cardio"] {
    border-bottom-color: #dc2626;
}

.category-hero-professional[data-specialty="cardiovascular"] .category-hero-icon,
.category-hero-professional[data-specialty="cardio"] .category-hero-icon {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.category-hero-professional[data-specialty="cardiovascular"] .hero-badge i,
.category-hero-professional[data-specialty="cardio"] .hero-badge i {
    color: #dc2626;
}

/* Dental - Fresh Blue */
.category-hero-professional[data-specialty="dental"] {
    border-bottom-color: #2563eb;
}

.category-hero-professional[data-specialty="dental"] .category-hero-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.category-hero-professional[data-specialty="dental"] .hero-badge i {
    color: #2563eb;
}

/* Orthopedic - Teal */
.category-hero-professional[data-specialty="orthopedic"] {
    border-bottom-color: #0d9488;
}

.category-hero-professional[data-specialty="orthopedic"] .category-hero-icon {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.category-hero-professional[data-specialty="orthopedic"] .hero-badge i {
    color: #0d9488;
}

/* ENT - Purple */
.category-hero-professional[data-specialty="ent"] {
    border-bottom-color: #7c3aed;
}

.category-hero-professional[data-specialty="ent"] .category-hero-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.category-hero-professional[data-specialty="ent"] .hero-badge i {
    color: #7c3aed;
}

/* Neurosurgery - Deep Indigo */
.category-hero-professional[data-specialty="neuro"],
.category-hero-professional[data-specialty="neurosurgery"] {
    border-bottom-color: #4338ca;
}

.category-hero-professional[data-specialty="neuro"] .category-hero-icon,
.category-hero-professional[data-specialty="neurosurgery"] .category-hero-icon {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

/* Ophthalmic - Cyan */
.category-hero-professional[data-specialty="ophthalmic"],
.category-hero-professional[data-specialty="eye"] {
    border-bottom-color: #0891b2;
}

/* Plastic Surgery - Rose */
.category-hero-professional[data-specialty="plastic"] {
    border-bottom-color: #e11d48;
}

.category-hero-professional[data-specialty="plastic"] .category-hero-icon {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

/* General Surgery - Slate */
.category-hero-professional[data-specialty="general"] {
    border-bottom-color: #475569;
}

.category-hero-professional[data-specialty="general"] .category-hero-icon {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. RTL SUPPORT
   ═══════════════════════════════════════════════════════════════════════════ */

body[dir="rtl"] .category-hero-professional .hero-container {
    flex-direction: row-reverse;
}

body[dir="rtl"] .category-hero-badges {
    flex-direction: row-reverse;
}

body[dir="rtl"] .hero-badge--check::before {
    margin-right: 0;
    margin-left: 0.5rem;
}

@media (max-width: 992px) {
    body[dir="rtl"] .category-hero-professional .hero-container {
        flex-direction: column;
    }
}
