/* Facebook-like Profile Layout */
.content-wrapper {
    background: transparent;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .content-wrapper {
        padding: 0;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        border-radius: 0 0 12px 12px;
        background: #fff;
        margin-top: 10px !important;
        margin-bottom: 40px !important;
    }
    
    .fb-profile-container {
        box-shadow: none;
        border-radius: 0;
        border: none;
    }
}

.fb-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    color: #1c1e21;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f2f5;
    overflow: hidden;
}

.fb-profile-container h2 {
    color: #050505;
}

.fb-cover-photo {
    width: 100%;
    height: 350px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fb-profile-header {
    padding: 0 32px 24px;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -60px;
    border-bottom: 1px solid #f0f2f5;
}

.fb-profile-pic-container {
    width: 168px;
    height: 168px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.fb-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e4e6eb;
    background: #f8fafc;
}

.fb-profile-info {
    margin-left: 24px;
    padding-bottom: 8px;
    flex-grow: 1;
}

.fb-profile-info h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.fb-profile-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.fb-action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.fb-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.fb-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.fb-btn:active {
    transform: translateY(1px);
}

.fb-btn-primary {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.fb-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.fb-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.fb-tabs {
    display: flex;
    padding: 0 32px;
}

.fb-tab {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease, background-color 0.2s ease;
}

.fb-tab:hover {
    color: #0f172a;
    background-color: #f8fafc;
}

.fb-tab.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

/* Main Grid */
.fb-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    max-width: 1200px;
    margin: 16px auto;
}

.fb-card {
    background: #ffffff;
    color: #334155;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f2f5;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06), 0 1px 12px rgba(0, 0, 0, 0.03);
}

.fb-card img {
    max-width: 100%;
    height: auto;
}

.fb-card h1, .fb-card h2, .fb-card h3, .fb-card h4, .fb-card h5, .fb-card h6 {
    color: #0f172a;
    font-weight: 700;
}

.fb-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.fb-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 1px solid #e0f2fe;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.02);
}

.fb-detail-item:hover {
    background-color: #e0f2fe;
    border-color: #bae6fd;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.05);
}

.fb-detail-item i {
    color: #1877f2;
    background: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fb-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fb-image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.fb-image-grid img:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    filter: brightness(1.02);
}

@media (max-width: 900px) {
    .fb-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -100px;
    }
    .fb-profile-info { margin-left: 0; }
    .fb-main-grid { grid-template-columns: 1fr; }
}

/* Scrollable Right Container */
@media (min-width: 901px) {
    .fb-feed {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding-right: 8px;
    }
    
    /* Hide scrollbar for cleaner look, but keep functionality */
    .fb-feed::-webkit-scrollbar {
        width: 6px;
    }
    .fb-feed::-webkit-scrollbar-track {
        background: transparent;
    }
    .fb-feed::-webkit-scrollbar-thumb {
        background: #bcc0c4;
        border-radius: 10px;
    }
}

/* Professional Photo Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10000;
}

.gallery-content {
    position: relative;
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-prev { left: -80px; }
.gallery-next { right: -80px; }

.gallery-counter {
    position: absolute;
    bottom: -40px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}
