/* Profile Pages Styles */

/* Public Main Content */
.main-content-public {
    width: 100%;
    min-height: 100vh;
    background-color: var(--gray-50);
    padding-top: 80px; /* Space for fixed navbar */
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.talent-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.profile-header-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    font-size: 0.875rem;
}

.avatar-badge.verified {
    background: var(--success);
    color: white;
}

.avatar-badge.premium {
    background: var(--warning);
    color: white;
}

.availability-status {
    position: absolute;
    top: -10px;
    left: -10px;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.availability-status.available {
    background: var(--success);
    color: white;
}

.availability-status i {
    font-size: 0.5rem;
}

/* Profile Info */
.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.profile-type {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.profile-rate {
    margin-bottom: 1.5rem;
}

.rate-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warning);
}

.rate-period {
    font-size: 1rem;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Profile Header Stat Label Override for better visibility */
.profile-header .stat-label {
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: flex-start;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 180px;
}

/* Profile Header Button Overrides */
.profile-header .btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.profile-header .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-header .btn-primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.profile-header .btn-primary:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Profile Main Content */
.profile-main {
    min-width: 0;
}

.profile-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.section-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

.section-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Specialties Grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.specialty-card {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid var(--gray-100);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.specialty-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.specialty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.specialty-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.specialty-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Projects */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.project-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.project-status {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.project-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.project-status.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

.skill-tag.expert {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.skill-tag.advanced {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.skill-tag.intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--gray-200);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.timeline-content .company {
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.timeline-content .description {
    color: var(--gray-600);
    line-height: 1.5;
}

/* Projects Showcase */
.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-highlight {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.project-highlight:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.project-image {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.project-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.project-details p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-600);
}

.contact-item i {
    color: var(--primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Company Details */
.company-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: var(--gray-600);
}

.detail-value {
    font-weight: 600;
    color: var(--gray-900);
}

/* Quick Info */
.quick-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
}

.info-item i {
    color: var(--primary);
    width: 16px;
    flex-shrink: 0;
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.education-item p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.education-item .year {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

/* Certifications */
.certifications {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
}

.cert-item i {
    color: var(--warning);
    flex-shrink: 0;
}

/* Reviews Preview */
.reviews-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.review-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
}

.review-rating i {
    color: var(--warning);
    font-size: 0.875rem;
}

.review-item p {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.reviewer {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.badge.premium {
    background: rgba(245, 158, 11, 0.9);
    color: white;
    border-color: rgba(245, 158, 11, 1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge.certified {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    border-color: rgba(16, 185, 129, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge.fast-reply {
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border-color: rgba(37, 99, 235, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Profile Header Badge Overrides for better visibility */
.profile-header .badge {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.profile-header .badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
}

.profile-header .badge.certified {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.profile-header .badge.fast-reply {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .project-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .project-image {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 2rem 0;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        min-width: auto;
    }
}
