/* Facebook Style Redesign */
.fb-profile-container {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.fb-cover-photo {
    height: 220px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65)), url('../../img/tree.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.fb-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
}

.fb-profile-info-wrapper {
    display: flex;
    padding: 0 2rem 1.5rem;
    position: relative;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: -60px; /* Overlap cover photo */
    z-index: 5;
}

.fb-profile-pic-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.fb-profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    background: white;
}

.fb-profile-pic-fallback {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-user-details {
    flex: 1;
    margin-bottom: 0.5rem;
}

.fb-user-details h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-text);
    margin: 0 0 5px 0;
}

.fb-user-details p {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

.fb-profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.fb-user-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.fb-meta-divider {
    color: #cbd5e1;
}

/* Two column layout below header */
.fb-main-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fb-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.fb-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.fb-intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fb-intro-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.fb-intro-item i {
    width: 20px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-align: center;
}

.fb-intro-item strong {
    font-weight: 600;
}

/* Actions list specifically styled for sidebar */
.fb-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-btn-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.fb-btn-sidebar:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.fb-btn-sidebar i {
    color: var(--primary-color);
}

.fb-btn-sidebar.danger-btn i {
    color: var(--danger-color);
}
.fb-btn-sidebar.danger-btn:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .fb-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .fb-cover-photo {
        height: 150px;
    }
    
    .fb-profile-info-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -70px;
        padding: 0 1.5rem 1.5rem;
    }
    
    .fb-profile-pic-container {
        width: 130px;
        height: 130px;
    }
    
    .fb-profile-pic, .fb-profile-pic-fallback {
        width: 130px;
        height: 130px;
    }
    
    .fb-user-details {
        margin-bottom: 1rem;
    }

    .fb-user-meta {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .fb-meta-divider {
        display: none;
    }
    
    .fb-profile-actions {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
    
    .fb-profile-actions .btn-hero {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}
