/* postviewer.css */
#articleModal {

    i {
        color: var(--tertiary-color);
    }

    .postsmodal-container {
        display: flex;
        justify-content: space-between;

        .posttype {
            color: var(--hyperlink-color);
            text-align: right;
            margin-top: 0.5rem;
        }
    }

    .articleviewer-dropdown,
    .postviewer-dropdown {
        display: flex;
        align-items: center;
    }

    .post-dropdown-summarize {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .post-dropdown-item {
        width: 100% !important;
        justify-content: flex-start;
        border: none !important;
    }

    .postmodal-title {
        font-weight: bold;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dropdown-toggle::after {
        display: none !important;
    }

    .postmodal-desc {
        text-align: left;
        word-wrap: break-word;
    }

    .postmodal-x,
    .postmodal-linkedin {
        max-height: 1.7rem;
    }

    .postmodal-desc a,
    .modal-bio a {
        color: var(--hyperlink-color);
        text-decoration: none;
    }

    .stats-card-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* margin-bottom: 10px; */
    }

    .stats-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    }

    .post-span {
        font-size: var(--font-size-p3);
    }

    .postmodaltitle-img {
        height: 50px;
        width: 50px;
    }

    .postmodal-img,
    .postmodal-image-container img,
    .postcarousel-video,
    .postcarousel-image,
    .postmodal-tiktokmedia {
        width: auto !important;
        height: 15rem !important;
    }

    .postmodal-img-name-flag {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .news-icon {
        color: var(--primary-color);
    }

    /* #replies-data-container {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 10px;
    } */

    .postmodal-content-col {
        /* margin-right: 1rem; */
        width: 80%;
        min-height: 300px;
        max-height: 350px;
        overflow-y: auto;
        border: 1px solid var(--primary-color);
        padding: 20px;
        border-radius: 8px;
        font-size: var(--font-size-p1);

        p {
            font-size: var(--font-size-p1);
        }
    }

    .postviewer-errorcontianer {
        display: flex;
        justify-content: center;
    }

    .postmodal-image-container,
    .postmodal-video-container {
        display: flex;
        justify-content: center;
    }

    .stacks-card-col {
        width: 20%;
        display: flex;
        justify-content: flex-end;
    }

    .postmodal-video {
        width: 60%;
    }

    #post-research-tabs {
        .modal-nav-link {
            display: flex;
            flex-direction: row;
            gap: 5px;
        }
    }

    .post-viewer-tab-content {
        a {
            color: inherit;
            text-decoration: none;
        }
    }

    .postviewer-reactedpost-container {
        .post-card {
            width: 90%;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
            margin-top: 10px;
            margin-bottom: 20px;
        }

        .avatar-container img {
            width: 40px;
            height: auto;
            border-radius: 50%;
        }

        .avatar-container {
            width: 10%;
        }

        .content-col {
            width: 95%;
        }

        .content-col .user-handle {
            margin: 0;
        }

        .media-content {
            text-align: center;
        }

        .fa-check-circle {
            color: blue
        }
    }

    #postsummarize-btn {
        margin-top: 10px;
        background-color: var(--tertiary-color);
        border: none;

        &:hover {
            opacity: 0.9;
        }
    }

    a,
    #post-date span {
        color: var(--hyperlink-color);
        text-decoration: none;
    }

    #post-details a:hover,
    #user-viewstat-col1 a:hover,
    .postmodal-desc a:hover,
    .modal-bio a:hover,
    #details a:hover,
    #about a:hover {
        text-decoration: underline;
        cursor: pointer;
    }

    .postmodal-name-flag div {
        display: flex;
        align-items: center;
    }

    .post-modal-username {
        font-size: 1rem;
        color: var(--secondary-color);
        margin-bottom: 0rem;
        text-align: left;
        font-weight: normal;
    }

    .postDetails-table {
        width: 60%;

        th {
            width: 22%;
        }

        td,
        th {
            padding: 10px;
            font-size: var(--font-size-p3);
        }

        tr:nth-child(odd) {
            background-color: var(--bottom-bar-bg);
        }
    }

    #summary-ai,
    #news-ai-summary {
        max-width: 80%;
    }

    #summaryContainer,
    #summary-ai-spinner .card {
        background-color:
            /* rgba(var(--background-color-rgb), 0.55) */
            var(--background-color);
    }

    .custom-textarea {
        resize: none;
        width: 100%;
    }

    .toggle-content {
        margin-top: 1rem;
    }

    .btn-close {
        --bs-btn-close-opacity: 1;
    }

    #post-tag-suggestions,
    .new-tag-input {
        /* margin-right: 10px;
        max-width: 100%;
        border: 1px solid var(--primary-color);
        border-radius: 4px; */
        width: 40%;
    }

    #post-tag-suggestions {
        max-height: 200px;
        overflow-y: auto;
        position: relative;
        /* z-index: 1055; */
        background-color: var(--white-color);
        border: 1px solid var(--background-color);
        border-radius: 0.25rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    @media (min-width: 767.98px) {
        .postmodal-content-col {
            min-height: 300px;
        }

        .stats-card {

            min-width: 164px;
            /* or fixed like 180px */

            max-width: 200px;
            ;

        }

    }

    @media(width:768px) {
        .postmodal-content-col {
            width: 78%;
        }
    }

    /* Responsive design */
    @media (max-width: 767.97px) {

        #summary-ai,
        #news-ai-summary {
            max-width: 100%;
        }

        .postmodal-content-col {
            width: 100%;
            margin: 0;
            padding: 10px;
        }

        .stats-label,
        .stats-value {
            text-align: left;
        }

        .stats-label {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .postmodal-title {
            font-size: medium;
        }

        .postmodaltitle-img {
            height: 40px;
            width: 40px;
        }

        .postmodal-img-name-flag {
            gap: 10px;
        }

        .postmodal-x,
        .postmodal-linkedin {
            height: 1rem;
            width: auto;
            margin-right: 5px;
        }

        .postmodal-tiktok,
        .postmodal-instagram,
        .postmodal-facebook,
        .postmodal-youtube {
            margin-right: 5px;
        }

        .postmodal-tiktokmedia {
            height: auto !important;
        }

        .postmodal-video,
        .postmodal-img,
        .postcarousel-image,
        .carousel.slide {
            max-width: 100%;
        }

        .postmodal-label,
        .postmodal-summary {
            display: none
        }

        .stats-card-container {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 10px;
        }

        .stats-card {
            width: 60px;
            height: 60px;
            align-items: center;
            text-align: left;
            padding: 8px;
            /* gap: 5px; */
        }

        .post-span {
            flex: none;
            margin-top: 0;
            display: none;
        }

        .postviewer-reactedpost-container {
            .avatar-container {
                width: 25% !important;
            }

            .post-card {
                width: 100% !important;
            }
        }

        .postmodal-title-icons img {
            height: 16px;
            width: 16px;
        }

        .postsmodal-container {
            /* flex-direction: column; */
            gap: 20px;

            .carousel-inner {
                width: fit-content !important;
            }
        }

        #performance-content,
        .postDetails-table {
            width: 100% !important;
        }

        .modal-body {
            padding: 10px !important;
        }
    }

    @media (max-width: 1024px) {
        .modal-dialog {
            max-width: 100% !important;
        }
    }
}

.closebtn {
    cursor: pointer;
    font-size: 2rem;
}

/* .select2-container--default .select2-selection--single:hover {
    background-color: var(--tertiary-color);
    color: var(--white-color);
} */

/* Dropdown options */
.select2-container--default .select2-results__option {
    padding: 8px;
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Hovered/selected dropdown option */
.select2-container--default .select2-results__option--highlighted {
    background-color: var(--tertiary-color) !important;
    color: var(--white-color) !important;
}

.select2-container--default .select2-selection--single {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    height: 38px;
    padding: 5px 12px;
}

.post-fullscreen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--white-color);
    color: var(--primary-color);
    z-index: 1050;
    overflow-y: auto;
}

.post-fullscreen-close-btn {
    align-self: flex-end;
    margin: 10px;
    background: var(--white-color);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.post-fullscreen-profile {
    display: flex;
    align-items: center;
    width: 90%;
}

.postfullscreen-username {
    font-size: 1rem;
    color: var(--secondary-color);
}

.post-fullscreen-media-wrapper {
    .carousel-inner {
        margin: 0px auto;
        position: relative;
        width: 50%;
        overflow: hidden;

        img {
            width: 100%;
            height: auto;
        }
    }
}