/* ============================================================
   Enhanced UI — shared site-wide styles (based on /categories)
   Hybrid: purple heroes/buttons + profession-directory typography
   ============================================================ */

/* ---------- Base ---------- */
body {
    background: #fbfaf8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #202337;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */

/* ---------- Hero ---------- */
.enhanced-hero,
.categories-hero-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.enhanced-hero::before,
.categories-hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 20 L 0 0 L 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: patternFloat 25s linear infinite;
}

@keyframes patternFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hero-content-enhanced {
    position: relative;
    z-index: 1;
}

.hero-icon-enhanced {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}

.hero-title-enhanced {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #ffffff, #e8f4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-enhanced {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-search-enhanced {
    max-width: 500px;
    margin: 0 auto;
}

.search-box-enhanced {
    position: relative;
    display: flex;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box-enhanced:hover,
.search-box-enhanced:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.search-input-enhanced {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input-enhanced::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-btn-enhanced {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn-enhanced:hover {
    background: rgba(255,255,255,0.3);
}

/* ---------- Section headers ---------- */
.section-header-enhanced,
.categories-header-enhanced {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-enhanced,
.categories-title-enhanced {
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -0.7px;
    color: #202337;
    margin-bottom: 0.8rem;
    position: relative;
}

.section-subtitle-enhanced {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.section-underline-enhanced,
.categories-underline-enhanced {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
}

.section-underline-enhanced::after,
.categories-underline-enhanced::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -8px;
    right: -8px;
    height: 7px;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.3), transparent);
    border-radius: 4px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ---------- A-Z Navigation ---------- */
.az-navigation-enhanced {
    padding: 40px 0 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.05) 100%);
}

.az-nav-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.az-nav-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.az-nav-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.az-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.az-item-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 10px;
    padding: 0.8rem;
    text-decoration: none;
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.az-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.2), transparent);
    transition: left 0.5s;
}

.az-item-enhanced:hover::before {
    left: 100%;
}

.az-item-enhanced:hover,
.az-item-enhanced.active {
    background: rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.3);
    transform: translateY(-2px);
    color: #667eea;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(102,126,234,0.2);
}

.az-letter {
    position: relative;
    z-index: 1;
}

/* ---------- Cards grid ---------- */
.enhanced-section,
.categories-section-enhanced {
    padding: 40px 0 60px;
}

.enhanced-grid,
.categories-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.enhanced-card,
.category-card-enhanced {
    background: #ffffff;
    border: 1px solid #e8e5e7;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(38,33,61,0.05);
}

.enhanced-card::before,
.category-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    border-radius: 16px 16px 0 0;
}

.enhanced-card:hover,
.category-card-enhanced:hover {
    transform: translateY(-5px);
    border-color: #d9d4dc;
    box-shadow: 0 14px 30px rgba(38,33,61,0.11);
}

.enhanced-card-icon,
.category-icon-enhanced {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    text-align: center;
}

.enhanced-card-body,
.category-content-enhanced {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.enhanced-card-title,
.category-title-enhanced {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.3px;
    color: #202337;
    margin-bottom: 1.2rem;
}

.enhanced-card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* ---------- Buttons ---------- */
.enhanced-btn,
.category-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-btn::before,
.category-btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.enhanced-btn:hover::before,
.category-btn-enhanced:hover::before {
    left: 100%;
}

.enhanced-btn:hover,
.category-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    color: white;
    text-decoration: none;
}

.enhanced-btn i,
.category-btn-enhanced i {
    position: relative;
    z-index: 1;
}

.enhanced-btn span,
.category-btn-enhanced span {
    position: relative;
    z-index: 1;
}

/* ---------- Badges / pills ---------- */
.enhanced-badge {
    display: inline-block;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.2);
    color: #667eea;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.enhanced-badge:hover {
    background: rgba(102,126,234,0.2);
    color: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .enhanced-hero,
    .categories-hero-enhanced {
        padding: 40px 0 30px;
    }

    .hero-title-enhanced {
        font-size: 2rem;
    }

    .hero-subtitle-enhanced {
        font-size: 1rem;
    }

    .az-navigation-enhanced {
        padding: 30px 0 20px;
    }

    .az-grid-enhanced {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 0.6rem;
    }

    .az-item-enhanced {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .enhanced-section,
    .categories-section-enhanced {
        padding: 30px 0 40px;
    }

    .section-title-enhanced,
    .categories-title-enhanced {
        font-size: 1.6rem;
    }

    .enhanced-grid,
    .categories-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .enhanced-card-body,
    .category-content-enhanced {
        padding: 0 1rem 1rem;
    }

    .enhanced-card-title,
    .category-title-enhanced {
        font-size: 1.1rem;
    }

    .enhanced-card-icon,
    .category-icon-enhanced {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}
