/* =========================== */
/*        MY PROFILE CSS       */
/* =========================== */
.profile-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background: #857b95;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* ✅ Fix: Cover Photo Section */

.cover-photo {
    width: 100%;
    height: 250px;
    position: relative;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ✅ Fix: Cover Photo Upload Button */
/* ✅ Make Buttons Appear Above Cover Image */

.cover-photo-form {
    position: absolute;
    bottom: 15px; /* Keep it slightly above the bottom */
    right: 15px;  /* ✅ Move to right side */
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


/* ✅ Ensure Choose File Button is Clickable */
.cover-photo-form input[type="file"] {
    position: relative;
    opacity: 10;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cover-photo-form button {
    background: #6a5acd;
    color: white;
    padding: 15px 15px;
    margin-top: 4px;
    margin-bottom: 4px;
    border: 2px solid black;
    border-radius: 5px;
    cursor: hand;
    transition: 0.1s ease;
}

.cover-photo-form button:hover {
    border: 2px solid blue;
    background: #483d8b;
    transform: scale(0.75);
}

/* ✅ Fix: Profile Information */
.profile-info {
    text-align: center;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

/* ✅ Fix: Profile Picture Upload */
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: white;
    position: relative;
    z-index: 2;
}

.profile-pic-form {
    position: relative;
    text-align: center;
    margin-top: 10px;
}

.profile-pic-form input {
    display: block; /* ✅ Fix: Show File Selection */
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
}

.profile-pic-form button {
    border: none;
    background: #6a5acd;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin-top: 5px;
}

/* ✅ Hover Effect */
.profile-pic-form button:hover {
    background: #5845c4;
    transform: scale(1.05);
}

/* ✅ Fix: Post Upload Box */
.post-box {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    background: #f7efef;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.post-box textarea {
    width: 100%;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
}

.post-box input {
    margin-top: 10px;
}

.post-box button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #6a5acd;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* ✅ Hover Effect */
.post-box button:hover {
    background-color: #5845c4;
    transform: scale(1.05);
}

/* ✅ Fix: Posts Styling */
.posts-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background: #A191B5;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 5px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post p {
    margin-top: 7px;
    margin-bottom: 7.5px;
    margin-left: 5px;
    margin-right: 5px;
}

.post-media {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    border: none;
    border-radius: 12.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.post-media img {
    border: none;
    border-radius: 12.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.post-media video {
    border: none; 
    border-radius: 12.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}




/* ✅ Fix: Bio Form */
.bio-form {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.bio-form textarea {
    width: 100%;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
}

.bio-form button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #6a5acd;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* ✅ Hover Effect */
.bio-form button:hover {
    background-color: #5845c4;
    transform: scale(1.05);
}

/* ✅ Fully Responsive */
@media (max-width: 768px) {
    .bio-form, .posts-container, .post-box {
        width: 100%;
    }

  .post-media {
        width: 100%;
    }


    .cover-photo {
        height: 200px;
    }

    .profile-info {
        margin-top: -50px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }
}
