/**
 * PROFILE PAGE CRITICAL CSS
 * Essential styles to prevent layout shift and ensure proper display
 * Loaded inline in <head> for performance
 */

/* Ensure profile container is visible and properly sized */
.professional-profile-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important; /* Remove padding - cover image handles top spacing */
    background: linear-gradient(180deg, #f3f4ff 0%, #f9fafb 40%, #ffffff 100%) !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure cover image respects border-radius */
}

/* Add padding to two-column layout */
.profile-two-column {
    padding: 0 1.5rem 2rem 1.5rem !important;
}

/* Profile content visibility */
.professional-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* LinkedIn-style cover image */
.profile-cover-image {
    width: 100% !important;
    height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%) !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative !important;
    margin-bottom: 0 !important;
}

/* Profile image overlay */
.profile-image-overlay {
    position: relative !important;
    width: 100% !important;
    margin-top: -84px !important;
    margin-bottom: 1rem !important;
    padding-left: 1.5rem !important;
    z-index: 10 !important;
}

.profile-avatar-large {
    width: 168px !important;
    height: 168px !important;
    border-radius: 50% !important;
    border: 4px solid white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
    background: white !important;
}

/* Profile header must be visible */
.profile-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%) !important;
    color: white !important;
    padding: 3rem 2rem !important;
    border-radius: 24px !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

/* Section cards must be visible */
.expertise-section,
.languages-section,
.interests-section,
.education-section,
.work-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1) !important;
    border: 2px solid rgba(139, 92, 246, 0.1) !important;
}

/* Expertise tags must be visible */
.expertise-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

.expertise-tag {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1)) !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    color: #8B5CF6 !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

/* Section titles */
.badges-section-title,
.ap-section-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 1.5rem !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Timeline items */
.timeline-item {
    position: relative !important;
    padding-left: 2.5rem !important;
    padding-bottom: 2rem !important;
    border-left: 3px solid rgba(139, 92, 246, 0.2) !important;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(236, 72, 153, 0.03)) !important;
    border: 2px solid rgba(139, 92, 246, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .professional-profile-container {
        padding: 1rem !important;
        border-radius: 16px !important;
    }
    
    .profile-header {
        padding: 2rem 1rem !important;
        border-radius: 16px !important;
    }
    
    .expertise-section,
    .languages-section,
    .interests-section,
    .education-section,
    .work-section {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}













