/**
 * Modern Mentor Profile & Listing Enhancements
 */

/* Profile Page Enhancements */
.profile-modern {
    background: #F9FAFB;
    min-height: 100vh;
}

.profile-cover {
    height: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
}

.profile-cover.has-image {
    background: none;
}

.profile-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

.profile-main-info {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 1.25rem;
    border: 6px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.profile-verified-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.profile-details {
    flex: 1;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.profile-country-flag {
    width: 32px;
    height: 24px;
    border-radius: 0.25rem;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-designation {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.profile-company {
    font-size: 1rem;
    color: #4F46E5;
    font-weight: 600;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.meta-item i {
    color: #9CA3AF;
    font-size: 1.125rem;
}

.meta-item .highlight {
    color: #111827;
    font-weight: 600;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-profile-action {
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-message {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-favorite {
    background: white;
    color: #EF4444;
    border: 2px solid #E5E7EB;
}

.btn-favorite:hover {
    border-color: #EF4444;
    background: #FEF2F2;
}

.btn-favorite.active {
    background: #EF4444;
    color: white;
    border-color: #EF4444;
}

/* Profile Content Tabs */
.profile-tabs-modern {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #E5E7EB;
}

.tab-link {
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-link:hover {
    color: #4F46E5;
    background: #F9FAFB;
}

.tab-link.active {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
}

.tab-content {
    padding: 2rem;
}

/* About Section */
.about-section {
    margin-bottom: 2rem;
}

.section-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title-modern i {
    color: #4F46E5;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-badge-modern {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4F46E5;
    transition: all 0.3s ease;
}

.skill-badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Experience Timeline */
.timeline-modern {
    position: relative;
    padding-left: 2rem;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.375rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: #4F46E5;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #E5E7EB;
}

.timeline-item.current::before {
    background: #10B981;
    box-shadow: 0 0 0 3px #D1FAE5;
}

.timeline-content {
    background: #F9FAFB;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border-left: 3px solid #4F46E5;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.875rem;
    color: #4F46E5;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-period {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.session-card-modern {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.session-card-modern:hover {
    border-color: #4F46E5;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.session-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.session-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4F46E5;
}

.session-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.session-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.session-meta-item i {
    color: #9CA3AF;
}

.session-card-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6B7280;
    margin-bottom: 1rem;
}

.session-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-book-session {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Reviews Section */
.reviews-container {
    margin-top: 1.5rem;
}

.review-stats {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.review-average {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.review-count {
    font-size: 1rem;
    opacity: 0.9;
}

.review-item {
    background: #F9FAFB;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.review-date {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.review-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #374151;
}

/* Video Section */
.video-section {
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header-card {
        margin-top: -4rem;
        padding: 1.5rem;
    }
    
    .profile-main-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profile-avatar-large {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-profile-action {
        width: 100%;
        justify-content: center;
    }
    
    .tabs-nav {
        overflow-x: auto;
    }
    
    .tab-link {
        white-space: nowrap;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
}
