/* =========================================
   EXPERT PROFILE STYLES
   ========================================= */

/* --- Layout Grid --- */
.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px; /* Main | Sidebar */
    gap: 2rem;
    align-items: start;
}

/* --- Shared Card Styles --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    overflow: hidden;
}

.content-card { padding: 2rem; }

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

/* --- Header Card --- */
.profile-header-card { padding-bottom: 1.5rem; }

.profile-cover {
    height: 160px;
    background-color: var(--brand-accent);
    background-size: cover;
    background-position: center;
}

.profile-identity {
    padding: 0 2rem;
    display: flex;
    gap: 1.5rem;
    margin-top: -50px; /* Pull avatar up into cover */
}

.avatar-wrapper { position: relative; }

.profile-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: #fff;
    object-fit: cover;
}

.status-indicator {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    position: absolute;
    bottom: 10px; right: 5px;
}
.status-indicator.online { background-color: var(--brand-success); }
.status-indicator.offline { background-color: #ccc; }

.identity-text { padding-top: 55px; } /* Push text down below avatar line */

.name-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.name-row h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.1; margin: 0; }
.verified-badge { color: var(--brand-primary); font-size: 1.25rem; }

.expert-headline { font-size: 1.1rem; opacity: 0.8; margin-bottom: 0.75rem; }

.meta-row { display: flex; gap: 1rem; font-size: 0.9rem; opacity: 0.6; }

/* --- Bio & Tags --- */
.bio-text { line-height: 1.7; opacity: 0.9; margin-bottom: 2rem; }
.bio-text p { margin-bottom: 1rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    background: rgba(0,0,0,0.04);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
}

/* --- Credentials --- */
.credentials-list { list-style: none; }
.credential-item { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; }
.cred-icon { font-size: 1.5rem; opacity: 0.8; }
.cred-details { display: flex; flex-direction: column; }
.cred-details strong { font-size: 0.95rem; }
.cred-details span { font-size: 0.85rem; opacity: 0.6; }

/* --- Reviews --- */
.reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.review-item { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.review-item:last-child { border: none; padding: 0; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.reviewer-name { font-weight: 700; font-size: 0.95rem; }
.review-stars { color: #FFB400; letter-spacing: 2px; }
.review-body { font-style: italic; opacity: 0.8; margin-bottom: 0.5rem; line-height: 1.5; }
.review-date { font-size: 0.75rem; opacity: 0.4; }

/* --- Sidebar (Booking Widget) --- */
.sticky-widget {
    position: sticky;
    top: 100px; /* Stick below navbar */
    padding: 2rem;
}

.price-header { display: flex; align-items: baseline; margin-bottom: 1rem; }
.price-amount { font-size: 2rem; font-weight: 800; color: var(--brand-dark); }
.price-unit { font-size: 1rem; opacity: 0.6; margin-left: 0.5rem; }

.availability-status { margin-bottom: 1.5rem; }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; width: 100%;
}
.status-pill.available { background: rgba(52, 199, 89, 0.1); color: var(--brand-success); }
.status-pill.unavailable { background: rgba(0,0,0,0.05); color: var(--brand-dark); opacity: 0.7; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.action-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.large-btn { padding: 14px; font-size: 1rem; }

.divider { border: none; height: 1px; background: rgba(0,0,0,0.05); margin: 1.5rem 0; }

.guarantee-box { display: flex; gap: 1rem; font-size: 0.8rem; opacity: 0.7; line-height: 1.4; align-items: start; }
.guarantee-box .icon { font-size: 1.2rem; }

/* --- Mobile Bottom Bar --- */
.mobile-bottom-bar {
    display: none; /* Hidden on desktop */
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 500;
    align-items: center; justify-content: space-between;
}
.mobile-price { font-size: 1.1rem; }

/* --- Mobile Responsive --- */
@media (max-width: 850px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding-bottom: 80px; /* Space for bottom bar */
    }
    
    .profile-sidebar { display: none; } /* Hide sidebar widget on mobile */
    .mobile-bottom-bar { display: flex; } /* Show sticky bar */

    .profile-identity { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
    .identity-text { padding-top: 10px; }
    .name-row { justify-content: center; }
    .meta-row { justify-content: center; }
}