/* Mentor Profile Page */
.mentor-page {
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* ========== LAYOUT ========== */
.mentor-layout { display: flex; min-height: 100vh; }

/* ========== LEFT SIDEBAR ========== */
.mentor-sidebar-profile { width: 320px; flex-shrink: 0; }

.sidebar-profile-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #1f2937;
    color: white;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sidebar-back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    align-self: flex-start;
}
.sidebar-back-link:hover { color: white; }
.sidebar-back-link svg { width: 16px; height: 16px; margin-right: 4px; }

.sidebar-avatar {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(59,130,246,0.5);
    margin-bottom: 1rem;
}
.sidebar-avatar-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; font-weight: 700; color: white;
    margin-bottom: 1rem;
}
.sidebar-name {
    font-size: 1.35rem; font-weight: 700;
    margin-bottom: 0.4rem; line-height: 1.3;
}
.sidebar-tagline {
    font-size: 0.82rem; opacity: 0.75;
    line-height: 1.5; margin-bottom: 1.25rem;
}
.sidebar-social-links { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.sidebar-social-link {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,0.12); color: white;
    font-size: 0.85rem;
}
.sidebar-social-link:hover { background: rgba(255,255,255,0.25); }

.sidebar-stats {
    display: flex; gap: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: center;
}
.sidebar-stat { text-align: center; }
.sidebar-stat-value { display: block; font-size: 1.05rem; font-weight: 700; color: #3b82f6; }
.sidebar-stat-label { font-size: 0.7rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.3px; }

.sidebar-ai-summary {
    margin-bottom: 1.5rem;
    padding: 0.85rem;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    text-align: left;
}
.sidebar-ai-summary p {
    font-size: 0.8rem; color: rgba(255,255,255,0.8);
    line-height: 1.55; font-style: italic; margin: 0;
}
.sidebar-book-btn {
    display: block; width: 100%;
    padding: 0.8rem; margin-top: 1.5rem;
    background: #3b82f6; color: white;
    text-decoration: none; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem;
    text-align: center;
}
.sidebar-book-btn:hover { background: #2563eb; }

/* ========== RIGHT: MAIN CONTENT ========== */
.mentor-main-content {
    flex: 1;
    padding: 2.5rem 3rem 4rem;
    min-width: 0;
    background: #f8f9fa;
}
.mentor-main-content h2 {
    font-size: 1.4rem; font-weight: 700;
    color: #1f2937; margin-bottom: 1rem;
    position: relative; padding-bottom: 0.75rem;
}
.mentor-main-content h2::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Services */
.mentor-services-section { margin-bottom: 3rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}
.service-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border-color: rgba(59,130,246,0.25);
}
.service-type {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: #6b7280;
    margin-bottom: 0.3rem; font-weight: 500;
}
.service-name { font-size: 1rem; font-weight: 600; color: #1f2937; margin-bottom: 0.35rem; }
.service-meta { display: flex; align-items: center; justify-content: space-between; }
.service-duration { font-size: 0.85rem; color: #6b7280; }
.service-price { font-size: 0.9rem; font-weight: 700; color: #1f2937; }
.service-description { font-size: 0.82rem; color: #6b7280; line-height: 1.5; margin-top: 0.5rem; }

/* About */
.mentor-about-section { margin-bottom: 3rem; }
.mentor-about-text { color: #4b5563; line-height: 1.8; font-size: 0.95rem; }
.mentor-about-text p { margin-bottom: 1rem; }
.mentor-expertise { margin-top: 1.5rem; }
.mentor-expertise h3 { font-size: 1rem; font-weight: 600; color: #1f2937; margin-bottom: 0.75rem; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.expertise-tag {
    padding: 0.35rem 0.85rem;
    background: #eff6ff; color: #3b82f6;
    border-radius: 20px; font-size: 0.85rem; font-weight: 500;
}

/* Testimonials */
.mentor-testimonials-section { margin-bottom: 2rem; }
.testimonials-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 1.5rem;
}
.testimonials-header h2 { margin-bottom: 0; padding-bottom: 0; }
.testimonials-header h2::after { display: none; }
.testimonials-rating-summary {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1rem; color: #1f2937; font-weight: 600;
}
.stars { color: #f59e0b; letter-spacing: 2px; }
.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.testimonial-card {
    background: white; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 1.5rem;
}
.testimonial-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.testimonial-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.testimonial-author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: #3b82f6; font-size: 0.95rem; flex-shrink: 0;
}
.testimonial-author-info { flex: 1; }
.testimonial-author-name { font-weight: 600; color: #1f2937; font-size: 0.95rem; }
.testimonial-date { font-size: 0.8rem; color: #9ca3af; }
.testimonial-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 0.5rem; }
.testimonial-text { color: #4b5563; font-size: 0.9rem; line-height: 1.7; }

/* Recent Sessions */
.mentor-sessions-section { margin-bottom: 3rem; }
.sessions-list-public { display: flex; flex-direction: column; gap: .5rem; }
.session-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .75rem 1.25rem;
}
.session-row:hover { border-color: rgba(59,130,246,0.25); }
.session-row-index { font-size: .8rem; font-weight: 700; color: #9ca3af; min-width: 24px; text-align: center; }
.session-row-date { font-size: .82rem; color: #6b7280; min-width: 90px; white-space: nowrap; }
.session-row-title { flex: 1; font-size: .9rem; font-weight: 600; color: #1f2937; }
.session-row-audience { font-size: .82rem; color: #6b7280; white-space: nowrap; }

/* ========== FOOTER ========== */
.mentor-footer { background: #111827; color: white; padding: 2rem 0; }
.mentor-footer-content {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.mentor-footer-brand { font-weight: 600; font-size: 1rem; }
.mentor-footer-links { display: flex; gap: 1.5rem; }
.mentor-footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.mentor-footer-links a:hover { color: white; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .mentor-layout { flex-direction: column; }
    .mentor-sidebar-profile { width: 100%; }
    .sidebar-profile-inner { position: relative; height: auto; padding: 1.5rem 1rem; }
    .sidebar-name { font-size: 1.2rem; }
    .sidebar-tagline { font-size: 0.78rem; }
    .mentor-main-content { padding: 1.25rem 1rem 2rem; }
    .mentor-main-content h2 { font-size: 1.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-list { grid-template-columns: 1fr; }
    .testimonials-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .session-row { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 1rem; }
    .session-row-date { min-width: auto; }
    .session-row-title { flex-basis: 100%; order: 3; }
    .mentor-footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
