/* Feed Header */
.feed-header {
    margin: 10px;
    font-weight: 600;
    font-size: large;
    display: flex;
    justify-content: space-between;
    /*text-align: center; !* Center-align for smaller screens *!*/
}

/* Carousal Videos */
.carousal-videos {
    /*min-width: 175px;*/
    /*min-height: 312px;*/
    width: 100%;
    height: calc(100% - 80px);
    object-fit: cover;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease;
}

.carousal-videos:hover {
    transform: scale(1.02); /* Slight zoom effect on hover */
}

/* Video Description */
.video-description {
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    text-overflow: ellipsis;
    overflow: hidden;
    max-height: 3em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding-bottom: 2px;
}

.video-views {
    color: #000;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    opacity: 0.6;
}

/*
!* Slide Container *!
.slide-container {
    display: flex;
    flex-wrap: nowrap; !* Prevent wrapping by default *!
    overflow-x: scroll; !* Enable horizontal scrolling for slides *!
    scrollbar-width: none; !* Hide scrollbar for Firefox *!
    -ms-overflow-style: none; !* Hide scrollbar for IE and Edge *!
}

.slide-container::-webkit-scrollbar {
    display: none; !* Hide scrollbar for Chrome, Safari, and Opera *!
}
*/

/* Description Container */
.description-container {
    max-width: 100%;
    /*padding: 8px 0 0 0;*/
}

.image-container {
    display: none;
    padding: 8px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.30);
    position: absolute;
    top: 8px;
    right: 8px;
}

.image-container .unmute {
    display: flex;
}
.image-container .mute {
    display: none;
}

/* Carousal Container */
.carousal-container {
    overflow-y: scroll; /* Enable vertical scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

.carousal-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

/* Interactions Container */
.interactions-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px 8px;
    position: relative;
}

@media (max-width: 395px) {
    .grid-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1560px) {
    .grid-items {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Each Video Item */
.grid-item {
    position: relative;
}

.pagination {
    position: absolute;
    bottom: 12px;
    right: 24px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
}

.pagination button {
    display: flex;
    padding: 9px 16px 10px 16px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #000;

    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 500ms ease;
}

.pagination button:hover {
    opacity: 1;
}

#end-div {
    height: 20px;
    width: 20px;
    position: relative;
    bottom: 10vh;
}

/*.super-feeds {*/
/*    overflow: unset;*/

/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

.grid-container {
    margin-top: 24px;
    overflow: auto;
}

.grid-items {
    margin: 3px;
}

.home-filter {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    background-color: #FFFFFF;
    height: auto;
    min-height: auto;

    position: relative;
    flex-wrap: nowrap; /* Prevents items from wrapping */
    flex-shrink: 0;
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden; /* Prevents vertical scrolling */
    white-space: nowrap; /* Keeps items in a single line */
    scrollbar-width: thin; /* Thin scrollbar for Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.home-filter img, .home-filter i, .home-filter p{
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.home-filter-item {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #000000;

    display: flex;
    padding: 5px 8px 6px 8px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    width: fit-content;

    flex: 0 0 auto; /* Prevents items from shrinking */
    flex-direction: column; /* Places icon/text in a column */
    text-align: center;
}

.home-filter-item.vertical {
    flex-direction: column;
}

.home-filter-item.horizontal {
    flex-direction: row;
}

.home-filter-item.border {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.home-filter-item.underline {
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.60);
}

.home-filter-item.border.selected, .home-filter-item.border.selected i, .home-filter-item.border.selected p {
    background-color: #000000;
    color: #FFFFFF;
}

.home-filter-item.border.selected img {
    filter: invert(1);
}

.home-filter-item.underline.selected {
    border-bottom: 1px solid rgba(0, 0, 0);
    color: rgba(0, 0, 0);
}

.loadingMessage {
    position: absolute;
    top: 50%;
    left: 50%;
}

.dots::after {
    content: '';
    display: inline-block;
    animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-header {
        font-size: medium; /* Reduce font size */
        /*margin: 5px; !* Add more compact margins *!*/
    }

    .carousal-videos {
        /*min-width: 175px;*/
        /*min-height: 312px;*/
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .description-container {
        background-image: linear-gradient(0deg,rgba(0,0,0,.4),transparent);
        padding: 18px 8px 8px;
        position: absolute;
        bottom: 0;
        border-radius: 8px;
        width: 100%;
    }

    .video-description {
        max-width: 180px;
        font-size: 14px;
        color: white;
    }

    .video-views {
        color: white;
    }

    .slide-container {
        /*overflow-x: scroll; !* Allow horizontal scrolling *!*/
        flex-wrap: nowrap; /* Prevent wrapping on mobile */
    }

    .carousal-container {
       /* max-height: 300px; !* Limit vertical scrolling height on mobile *!*/
    }

    .interactions-container {
        flex-direction: row; /* Align interactions horizontally */
        justify-content: space-around; /* Spread items evenly */
    }

    .pagination {
        bottom: 68px;
    }

    .pagination button {
        opacity: 0.7;
    }

    .grid-items {
        gap: 4px 8px;
        min-height: 1280px; // 3 videos height
    }

    .carousal-videos:hover {
        transform: scale(1); // no scale
    }

    .grid-container {
        margin-top: 12px;
    }

    .loadingMessage {
        left: 40%;
    }
}
