
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f2f5;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1877f2;
    color: white;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.search-bar {
    width: 300px;
    padding: 7px;
    border-radius: 20px;
    border: none;
    outline: none;
}

.menu-icons span {
    margin: 0 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.cover {
    position: relative;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cover-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-info {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-top: -75px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    margin-right: 20px;
}

.profile-buttons button {
    margin-right: 10px;
    padding: 7px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.profile-buttons button:first-child {
    background: #1877f2;
    color: white;
}

.profile-buttons button:last-child {
    background: #e4e6eb;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: white;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.nav button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px;
}

.nav button:hover {
    border-bottom: 2px solid #1877f2;
}

.content {
    padding: 20px;
}

.muro {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.photos div {
    background: #d8dfea;
    height: 100px;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .search-bar {
        width: 200px;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -60px;
    }

    .profile-pic {
        margin: 0 0 10px 0;
    }

    .profile-buttons {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        margin: 10px 0;
    }

    .menu-icons {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .nav button {
        font-size: 0.9rem;
        padding: 8px;
    }

    .photos {
        display: flex;
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
.photo-thumb {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

#photoContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

#uploadPhotos {
    margin-bottom: 15px;
}
