/* close buttons */
.close{
    cursor: pointer;
    font-size: x-large;
    color: #ffffff !important;
    background-color: red;
    font-weight: 800;
    padding: 5px;
    margin-right: 5px;
    width: 30px;
    height: 30px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 10px;
}


/*post styles*/
.postCard {
    box-sizing: border-box;
    height: 250px;
    width: 250px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    border: 1px solid #cccccc;
}

.postCard .postHeader {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    flex-wrap: wrap;
}

.postHeader .left {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgb(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    padding: 5px 10px;
    border-radius: 10px;

}

.postHeader .left .username {
    font-family: Nunito-Bold;
    font-size: small;
    color: rgb(255, 255, 255);
    cursor: pointer;
    text-overflow: ellipsis;
    max-width: 100px;
    overflow: hidden;
    display: inline;
    text-wrap: nowrap;
}

.postHeader .left .separator {
    font-size: xx-small;
    color: rgb(255, 255, 255);
}

.postHeader .left .timestamp {
    font-size: small;
    color: rgb(255, 255, 255);
    font-family: Nunito-SemiBold;
}

.postHeader .right {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 0.2px solid grey;
}

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

.postCard .postBody {
    box-sizing: border-box;
    border-radius: 10px;
    height: 100%;
}

.postBody img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.tagPreview{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 5px;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    transition-duration: 0.3s;
    padding: 5px;
}

.tagPreview img {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #7b7b7b;
}

.tagPreview span {
    font-family: Nunito-SemiBold;
    font-size: medium;
    color: #000000;
}

.tagPreview span .more {
    font-family: Nunito-Bold;
    color: #007cdb;
}

.viewPostCover {
    position: fixed;
    display: none;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* When active, show the cover */
.viewPostCover.active {
    display: flex;
}

/* Adjust animation duration for consistency */
.viewPostCover.animate__animated {
    animation-duration: 1ms !important;
}

.viewPostModal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    min-height: 90vh;
    max-height: 90vh;
    background-color: #fff;
    overflow: auto;
    scrollbar-width: none;
    position: relative;
    border-radius: 10px;
}

.viewHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d1d1d1;
    flex-shrink: 0;
    overflow: hidden;
}

.viewHeader .left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
}



.viewHeader .username {
    font-family: Nunito-Bold;
    font-size: medium;
    color: #000000;
    width: fit-content;
    cursor: pointer;
}

.viewHeader .postOptions {
    cursor: pointer;
    color: #ffffff;
    width: 40px;
    height: 40px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    background-color: rgb(0, 0, 0);
    position: relative;
}

/* Post Options Menu */
.postOptionsMenu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    min-width: 180px;
    display: none;
    overflow: hidden;
}

.postOptionsMenu.active {
    display: flex;
    flex-direction: column;
}

.postOptionsMenu .option-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Nunito-SemiBold;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.postOptionsMenu .option-item:last-child {
    border-bottom: none;
}

.postOptionsMenu .option-item:hover {
    background-color: #f5f5f5;
}

.postOptionsMenu .option-item i {
    font-size: 0.9rem;
    width: 20px;
    display: flex;
    justify-content: center;
}

.postOptionsMenu .option-item.danger {
    color: #e74c3c;
}

.postOptionsMenu .option-item.danger:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.postOptionsMenu .option-item.edit {
    color: #3498db;
}

.postOptionsMenu .option-item.edit:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Swiper Container */
.swiperContainer {
    position: relative;
    width: 100%;
    height: 350px;
    flex-shrink: 0;
}

.postImageSwiper {
    width: 100%;
    height: 100%;
}

.postImageSwiper .swiper-wrapper {
    height: 100%;
}

.postImageSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding: 5px;
    margin: 0;
    width: 100%;
    height: 100%;
}

.postImageSwiper .postImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}



.postImageSwiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}

.postImageSwiper .swiper-pagination-bullet-active {
    background-color: #0091ff;
}

.postImageSwiper .swiper-button-next,
.postImageSwiper .swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.postImageSwiper .swiper-button-next::after,
.postImageSwiper .swiper-button-prev::after {
    font-size: 18px;
}

.postImageSwiper .swiper-button-next:hover,
.postImageSwiper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Floating Profile Picture */
.floatingProfilePic {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgb(143, 143, 143);
    z-index: 10;
    cursor: pointer;
}

/* Stats & Actions Overlay Box */
.statsActionsBox {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 9;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border-top: 1px solid #d1d1d1;
}

.postStats {
    display: flex;
    gap: 20px;
    padding: 5px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Nunito-Bold;
    font-size: 0.8rem;
    color: #333;
}

.stat-item i {
    color: #0091ff;
    font-size: 0.9rem;
}

.postActions {
    display: flex;
    gap: 6px;
}

.postActions button {
    flex: 1;
    padding: 10px;
    background-color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-family: Nunito-Bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.postActions button:hover {
    background-color: #0091ff;
    color: white;
    border-color: #0091ff;
}

.action-btn i {
    font-size: 0.85rem;
}

/* Post Tag Section */
.postTag {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #9e9e9e;
    flex-shrink: 0;
    border-radius: 10px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.taggedProfilePic {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #d1d1d1;
}

.tagInfo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.taggedUsername {
    font-family: Nunito-Bold;
    font-size: small;
    color: #007cdb;
}

.tagLocation {
    font-family: Nunito-SemiBold;
    font-size: x-small;
    color: #666;
}

/* Post Details Section */
.postDetails {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: auto;
    padding: 10px 5px;
    height: 100%;
    max-height: 500px;
}

.postDetails .timestamp {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: Nunito-SemiBold;
    font-size: 0.8rem;
    color: #686868;
    padding: 10px;
    background-color: rgba(195, 195, 195, 0.5);
    border-radius: 10px;
}

.postDescription {
    padding: 10px;
    margin-top: 5px;
    height: auto;
    overflow: auto;
    background-color: rgba(195, 195, 195, 0.3);
    border-radius: 10px;
    scrollbar-width: none;
    position: relative;
}

.scrollDownBtn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0091ff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.scrollDownBtn:hover {
    background-color: #0078cc;
    transform: scale(1.1);
}

.scrollDownBtn:active {
    transform: scale(0.95);
}

.description-text {
    font-family: Nunito-SemiBold;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

/* Skeleton Styles */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeletonUsername {
    width: 200px;
    height: 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeletonSwiper {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    display: none;
}

.skeletonProfilePic {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 1px solid #d1d1d1;
    display: none;
}

.skeletonPostTag {
    display: none;
    align-items: center;
    flex-direction: row;
    gap: 15px;
    padding: 10px;
    border: 1px solid #bebebe;
    flex-shrink: 0;
    border-radius: 10px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.95);
}

.skeletonTagImage {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeletonTagInfo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.skeletonTagName {
    width: 100px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeletonTagLocation {
    width: 130px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeletonPostDetails {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 10px 5px;
}

.skeletonTimestamp {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 10px;
}

.skeletonDescription {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: rgba(195, 195, 195, 0.3);
    border-radius: 10px;
}

.skeletonDescriptionLine {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}