/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f6f8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* Profile Header */
.profile-header {
    grid-column: 1 / -1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.cover-photo {
    height: 300px;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: -75px;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
}

.verification-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #1877f2;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.profile-name {
    font-size: 28px;
    margin: 10px 0 5px;
}

.profile-title {
    color: #65676b;
    margin-bottom: 10px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    margin-bottom: 10px;
}

.location i {
    margin-right: 5px;
}

/* Profile Navigation */
.profile-nav {
    grid-column: 1 / -1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-nav ul {
    display: flex;
    list-style: none;
}

.profile-nav li {
    flex: 1;
    text-align: center;
}

.profile-nav a {
    display: block;
    padding: 15px 10px;
    color: #65676b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.profile-nav a:hover {
    background-color: #f5f6f8;
    color: #1877f2;
}

.profile-nav a.active {
    color: #1877f2;
    border-bottom: 3px solid #1877f2;
}

/* Profile Content */
.profile-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-content section {
    margin-bottom: 30px;
}

.profile-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1d1f23;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e6eb;
}

/* About Section */
.about-content {
    line-height: 1.7;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f5f6f8;
    border-radius: 8px;
}

.detail-item i {
    font-size: 20px;
    margin-right: 15px;
    color: #1877f2;
}

.detail-item h3 {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 3px;
}

.detail-item p {
    font-size: 16px;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f5f6f8;
    border-radius: 8px;
}

.contact-item i {
    font-size: 20px;
    margin-right: 15px;
    color: #1877f2;
}

.contact-item h3 {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 16px;
    font-weight: 500;
}

/* Social Section */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.linkedin { background-color: #0077b5; }
.youtube { background-color: #ff0000; }

/* Photos Section */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-item {
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1d1f23;
}

.postbd-links {
    list-style: none;
}

.postbd-links li {
    margin-bottom: 10px;
}

.postbd-links a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.postbd-links a:hover {
    background-color: #f5f6f8;
    color: #1877f2;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.friend-item {
    text-align: center;
}

.friend-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.friend-item p {
    font-size: 12px;
    color: #65676b;
}

/* Footer */
.profile-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #65676b;
    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: #65676b;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1877f2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .profile-nav ul {
        flex-direction: column;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        margin-top: -50px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
}