* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: #f0f2f5;
}

/* Navbar */

.fb-navbar {
    width: 100%;
    height: 70px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

/* Right */

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-logo {
    font-size: 45px;
    color: #1877f2;
    cursor: pointer;
}

.search-box {
    width: 40px;
    height: 40px;
    background-color: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-box i {
    color: #606770;
    margin: 0;
    font-size: 17px;
}

.search-box input {
    display: none;
}

/* Center */

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    gap: 10px;
}

.nav-tab {
    width: 90px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    font-size: 22px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-tab:hover {
    background-color: #f0f2f5;
}

.nav-tab.active {
    color: #1877f2;
}

.nav-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1877f2;
}

/* Left */

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.circle-btn {
    width: 40px;
    height: 40px;
    background-color: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1e21;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.circle-btn:hover {
    background-color: #d8dadf;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive */

@media (max-width: 900px) {
    .nav-tab {
        width: 60px;
    }

    .nav-center {
        gap: 0;
    }
}

@media (max-width: 650px) {
    .nav-center {
        display: none;
    }
}
/* Create Post */

.create-post {
    width: 680px;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin: 90px auto 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Top */

.post-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e6eb;
    direction: rtl;
}

.post-top img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.post-top input{
    flex: 1;
    height: 40px;
    background-color: #f0f2f5;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #151617;
    font-size: 16px;
    cursor: pointer;
    border: none;
outline: none;
text-align: right;
}

/* Bottom */

.post-bottom {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 12px;
}

.post-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.post-option:hover {
    background-color: #f0f2f5;
}

.video {
    color: #f3425f;
}

.photo {
    color: #45bd62;
}

.reels {
    color: #f3425f;
}
/* Create Post Navbar */

.create-navbar {
    width: 100%;
    height: 60px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

/* Left */

.create-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-nav-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.create-nav-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-nav-icon {
    width: 40px;
    height: 40px;
    background-color: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1c1e21;
    cursor: pointer;
    transition: 0.2s;
}

.create-nav-icon:hover {
    background-color: #d8dadf;
}

/* Right */

.create-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-facebook-logo {
    font-size: 42px;
    color: #1877f2;
}

.create-close {
    width: 40px;
    height: 40px;
    background-color: #e4e6eb;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #606770;
    cursor: pointer;
    transition: 0.2s;
}

.create-close:hover {
    background-color: #d8dadf;
}
.post-manshor{
    margin-top: 60px;
    width: 100%;
    height: 60px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    gap: 10px;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
}
.post-manshor-profile{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.post-manshor-profile img{
     width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-manshor h1{
    color: #1c1e21;
}
#contanierr{
    display: none;
}
#homepage{
    display: block;
}
#tninkes{
    cursor: pointer;
}
.profile-edit {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-profile {
    background-color: #e4e6eb;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
}

.post-name {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    outline: none;
}
/* كتابة المنشور */
.post-write {
    width: 100%;
    margin-top: 20px;
}

.post-write textarea {
    width: 100%;
    height: 250px;
    resize: vertical;
    border: 12;
    outline: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 20px;
    background-color: #f0f2f5;
    text-align: right;
}

/* إضافة الصور والفيديو */
.add-media {
    width: 100%;
    margin-top: 15px;
}

.add-media label {
    width: 100%;
    height: 160px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    color: #606770;
    transition: 0.2s;
}

.add-media label:hover {
    background-color: #f0f2f5;
}

.add-media i {
    font-size: 35px;
    color: #45bd62;
}

.add-media span {
    font-size: 18px;
}
.publish-btn {
    width: 25%;
    height: 45px;
    background-color: #0866ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

.publish-btn:hover {
    background-color: #0755d4;
}
.published-post {
    width: 640px;
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

}

.published-header {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    margin-bottom: 15px;
}

.published-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.published-header h3 {
    font-size: 17px;
    color: #1c1e21;
}

.published-post p {
    font-size: 18px;
    text-align: right;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.published-media {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}
.delete-post {
    position: absolute;
    left: 10px;
    top: 10px;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
    color: #65676b;
}

.published-post {
    position: relative;
}