@font-face {
    font-family: Nunito-Bold;
    src: url(../fonts/Nunito/static/Nunito-Bold.ttf);
}

@font-face {
    font-family: Nunito-SemiBold;
    src: url(../fonts/Nunito/static/Nunito-SemiBold.ttf);
}

/* Font and size variables */
:root {
    --font-base: 'Nunito-SemiBold', 'Nunito', sans-serif;
    --font-bold: 'Nunito-Bold', 'Nunito', sans-serif;
    --font-medium: 'Nunito-SemiBold', 'Nunito', sans-serif;

    /* Font sizes - base/desktop */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 50px;
}

a {
    text-decoration: none;
}

.active {
    display: flex !important;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: thin solid rgba(0, 0, 0, 0.5);
    ;
}

.navbar-cover {
    overflow: hidden;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgb(202, 202, 202);
    height: fit-content;
    margin: 0;
    position: sticky;
    top: 0;
    background-color: rgb(255, 255, 255);
}

.float {
    background-color: rgba(85, 85, 85, 0.2);
    backdrop-filter: blur(5px);
    width: fit-content;
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
}


.navbar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 5px;

}


.logo-box {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    margin: 2px;
}

.logo-box img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    height: 100%;
    width: fit-content;
    padding: 2px 10px;
    display: flex;
    border-radius: 10px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    gap: 15px;
}

.nav-links .fa {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    font-size: var(--fs-sm);
    color: rgb(0, 0, 0);
}

.nav-links a {
    text-decoration: none;
    height: fit-content;
    font-family: var(--font-bold);
    font-size: var(--fs-md);
    cursor: pointer;
    margin: 0 10px;
    display: flex;
    align-items: center;
    transition-duration: 0.2s;
    border-radius: 10px;
    border: none;
}

.searchIcon {
    border-radius: 10px;
    background-color: rgb(0, 128, 255);
}

.searchIcon i {
    color: rgb(255, 255, 255) !important;
}


.login-link {
    background-color: rgb(0, 128, 255);
    color: white;
    padding: 2px 10px;
    border-radius: 10px !important;
    font-family: var(--font-medium);
    font-size: var(--fs-sm);
    transition-duration: 0.2s;

}

.sidebarcover,
.hostcover {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.1);

}


.hostcover {
    inset: 0;
    justify-content: center;
    align-items: center;
}

.sidebar {
    height: 100%;
    width: 250px;
    display: flex;
    flex-direction: column;
    background-color: white;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 0;
    right: 0;

}


.sidebarlink {
    text-align: start;
    padding: 12px 16px !important;
    text-decoration: none;
    font-family: var(--font-medium);
    font-size: var(--fs-sm);
    width: 100%;
}

.sidebarlink:hover {
    background-color: rgba(128, 128, 128, 0.1);
    color: rgb(0, 102, 255);
}

.close-Sidebar,
.closesearchbox,
.closehost {
    font-family: var(--font-bold);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255);
    background-color: red;
    font-size: var(--fs-lg);
}


.close-Sidebar {
    margin: 10px;
}



.hostIcon,
.sideHostIcon,
.post,
.floatingPostBtn,
.floatingHostBtn {
    padding: 5px 10px !important;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 128, 255);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-bold);
}

.floatingPostBtn,
.floatingHostBtn {
    padding: 10px 20px !important;
    font-size: var(--fs-md);
}

.sideHostIcon {
    text-align: center;
    color: white;
    border-radius: 0;
    font-size: var(--fs-md);
    font-weight: 800;
}

.sideHostIcon:hover {
    background-color: rgb(0, 128, 255);
    color: white;
}

.hostbox {
    height: fit-content;
    width: fit-content;
    padding: 5px;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgb(224, 224, 224);
    position: relative;
}

.hostbox .hostHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid rgb(200, 200, 200);
}

.hostHeader span:first-child {
    font-family: var(--font-bold);
    font-size: var(--fs-md);
}

.hostchoicesbox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px !important;
    overflow: hidden;
}

.hostchoicesbox a {
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.hostchoices {
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    border-radius: 10px;
    width: 200px;
    height: 200px;
    color: rgb(255, 255, 255);
    font-size: var(--fs-lg);
    background-color: rgba(0, 128, 255);
    transition-duration: 0.2s;
    overflow: hidden;
    font-family: var(--font-bold);
}

.hostchoices:active {
    transform: scale(1);
}

.postModalCover,
.discardModalCover {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.15);
    justify-content: center;
    align-items: center;
}


.postModal,
.postImage,
.discardModal {
    width: 500px;
    max-width: 95%;
    height: fit-content;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.postModal .postHeader,
.postImage .postHeader,
.discardModal .discardHeader {
    border-bottom: 1px solid rgba(142, 142, 142, 0.464);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.postImage .postHeader {
    justify-content: start;
    gap: 20px;
}

.postModal .postHeader span:first-child,
.discardModal .discardHeader span:first-child {
    font-family: var(--font-bold);
    font-size: var(--fs-lg);
    padding: 5px 10px;
}

.postModal .postHeader .closePostModal,
.discardModal .discardHeader .closeDiscardModal {
    font-family: var(--font-bold);
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    color: rgba(255, 255, 255);
    background-color: red;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: var(--fs-sm);
}

.discardModal span:nth-child(2) {
    font-family: var(--font-medium);
    font-size: var(--fs-sm);
    color: rgb(0, 0, 0);
}

.postModal .postOptions {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    padding: 5px;
}

.postOptions .postOption {
    padding: 7px 10px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgb(161, 161, 161);
    font-family: var(--font-bold);
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    overflow: hidden;
}

.postOption div {
    width: 100%;
    font-size: medium;
}

.postOption div span {
    color: rgb(0, 0, 0);
    font-size: large;
}

.postOptions .optionDisabled {
    display: none;
}

.postOption .optionInfo {
    color: rgb(105, 105, 105);
    font-size: var(--fs-sm);
    font-family: var(--font-medium);
}

.postOption i {
    font-size: var(--fs-lg);
    margin-right: 5px;
}

.postImage {
    display: none;
    min-height: 90%;
    max-height: 95%;
    overflow-y: auto;
    scrollbar-width: none;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-bottom: 0 !important;
}

.postImage .postHeader .backBtn {
    cursor: pointer;
}

.postImage .postHeader span:last-child {
    font-family: var(--font-bold);
    font-size: var(--fs-md);
}

.postImage .uploadBtn {
    padding: 10px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 128, 255);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-bold);
}

.mediaPreview {
    width: 100%;
    min-height: 300px;
    max-height: 300px;
    border-radius: 10px;
    background-color: rgb(235, 235, 235);
    font-family: var(--font-medium);
    color: rgb(128, 128, 128);
    overflow: auto;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    margin: 0 5px;
}

.preview_item {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 1px solid rgb(170, 170, 170);
    overflow: hidden;
    border-radius: 10px;
    margin: 5px;
    position: relative;

}

.preview_item .deletemedia {
    position: absolute;
    top: 5px;
    right: 5px;
    font-family: var(--font-bold);
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    color: rgba(255, 255, 255);
    background-color: red;
}

.preview_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videoPost {
    width: 240px;
    height: 100%;
}

.preview_item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postImage .caption,
.postImage .tag {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    width: 100%;
}

.caption textarea {
    border: 1px solid grey;
    padding: 0;
    outline: none;
    width: 100%;
    font-size: var(--fs-sm);
    border-radius: 10px;
    text-indent: 10px;
    margin: 5px 0;
    font-family: var(--font-medium);
    padding: 5px;
    height: 50px;
}




.tag span:first-child,
.caption span:first-child {
    font-family: var(--font-bold);
    font-size: var(--fs-sm);
    color: rgb(0, 0, 0);
}

.tag input {
    border: 1px solid grey;
    padding: 5px;
    outline: none;
    width: 100%;
    font-size: var(--fs-sm);
    border-radius: 10px;
    text-indent: 10px;
    margin: 5px 0;
    font-family: var(--font-medium);
}

.tag .tagInfo {
    font-family: var(--font-medium);
    font-size: var(--fs-xs);
    color: rgb(0, 0, 0);
    background-color: rgba(136, 136, 136, 0.2);
    border-radius: 10px;
    padding:10px;
    margin: 5px 0;
    display: block;
    width: 100%;
}

.searchTagBox {
    overflow: visible;
    width: 100%;
    position: relative;
}

.tagSuggestionBox {
    width: 100%;
    background-color: rgb(223, 223, 223);
    position: absolute;
    top: 50px;
    left: 0;
    border-radius: 10px;
    display: none;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
}

.tagSuggestionBox .tagSuggestion,
.tag .selectedTags .selectedTag {
    border: 1px solid rgb(189, 189, 189);
    background-color: white;
    border-radius: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    padding: 5px 10px;
    cursor: pointer;
    width: 100%;
}

.selectedTags {
    display: none;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid rgb(189, 189, 189);
    background-color: white;
    border-radius: 10px;
    padding: 5px 10px;
    width: 100%;
    margin: 5px 0;
}

.selectedTag {
    position: relative;
}

.removeTagBtn {
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition-duration: 0.2s;
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    width: 28px;
    height: 28px;
    border-radius: 50%;

}

.tag .selectedTags .selectedTag span:first-child {
    font-family: var(--font-bold) !important;
    font-size: var(--fs-sm) !important;
    color: rgb(0, 0, 0) !important;
}

.tagSuggestionBox .tagSuggestion.tagEmpty {
    display: none;
    justify-content: center;
    align-items: center;
    font-family: var(--font-medium);
    color: rgb(128, 128, 128);
}

.tagSuggestionBox .tagSuggestion:hover,
.tag .selectedTags .selectedTag:hover {
    background-color: rgba(255, 255, 255, 0.274);
}

.tagSuggestionBox .tagSuggestion img,
.tag .selectedTags .selectedTag img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid rgb(170, 170, 170);
}

.tagSuggestionBox .tagSuggestion .tagDetails,
.tag .selectedTags .selectedTag .tagDetails {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    gap: 0;
}

.tagDetails .tagName,
.tag .selectedTags .selectedTag .tagName {
    font-family: var(--font-bold) !important;
    font-size: var(--fs-sm) !important;
    color: rgb(0, 0, 0) !important;
    padding: 0 !important;
}

.tagDetails .tagLocation,
.tag .selectedTags .selectedTag .tagLocation {
    font-family: var(--font-medium);
    font-size: var(--fs-xs) !important;
    color: rgb(128, 128, 128) !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tagIcon {
    text-align: center;
}

.postImage .postActions,
.discardModal .discardActions {
    border-top: 1px solid rgba(118, 118, 118, 0.515);
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
    padding: 5px;
    width: 100%;
    flex-direction: column;
}

.postImage .postActions {
    position: sticky;
    z-index: 100;
    bottom: 0;
    left: 0;
    background-color: white;
    border-radius: 10px;
    border: 1px solid rgb(224, 224, 224);
}

.discardModal .discardActions {
    flex-direction: row;
}

.postImage .postActions div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.postmsg {
    font-family: var(--font-medium);
    font-size: var(--fs-sm);
    display: none;
}

.postmsg.error {
    color: rgb(255, 0, 0);
}

.postmsg.success {
    color: green;
}

.discardModal .discardActions {
    justify-content: space-between;
}

.postActions button,
.discardModal .discardActions button {
    padding: 5px 10px !important;
    border-radius: 10px;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-medium);
    width: 50% !important;
}

.postActions .cancelPostBtn,
.discardModal .discardActions .cancelDiscardBtn {
    background-color: rgb(229, 229, 229);
    color: rgb(0, 0, 0);
}

.discardModal .discardActions .confirmDiscardBtn {
    background-color: rgb(255, 0, 0);
    color: rgb(255, 255, 255);
}

.postActions .postBtn {
    background-color: rgb(0, 128, 255);
    color: white;
}

.postActions .postBtn:disabled {
    background-color: rgb(128, 128, 128);
    cursor: not-allowed;
}

/* Skeleton loader styles */
.skeletonImage {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
    margin-right: 10px;
}

.skeletonText {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    height: 12px;
    margin: 4px 0;
}

.skeletonName {
    width: 120px;
}

.skeletonLocation {
    width: 100px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}