/* ============================================= */
/*      NETFLIX-STYLE HORIZONTAL SCROLL LIST     */
/* ============================================= */

.horizontal-scroll-container {
    position: relative;
    padding: 20px 0 40px 0;               /* extra bottom for arrows */
    background: linear-gradient(135deg, var(--color-one, #ffffff) 0%, rgba(240, 240, 240, 0.8) 100%);
    width: 100vw;
    max-width: none;
    margin: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;                     /* We hide overflow on parent now */
}

/* Real scrollable area */
.horizontal-scroll-container .timeline_list_container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 15px 60px;                   /* space for arrows + padding */
    gap: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar completely (all browsers) */
.horizontal-scroll-container .timeline_list_container::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll-container .timeline_list_container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Fade edges – exactly like Netflix */
.horizontal-scroll-container::before,
.horizontal-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 10;
}
.horizontal-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.horizontal-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* Left / Right Arrow Buttons – Netflix style */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-arrow:hover { background: rgba(0,0,0,0.8); }
.scroll-arrow.left  { left: 10px; }
.scroll-arrow.right { right: 10px; }

/* Show arrows only on hover (desktop) */
.horizontal-scroll-container:hover .scroll-arrow {
    opacity: 1;
}

/* Show arrows permanently on touch devices if needed */
@media (max-width: 768px) {
    .scroll-arrow { opacity: 0.8; }
}

/* Your existing card styles – unchanged */
.horizontal-scroll-container .random-posts-list {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.horizontal-scroll-container .random-posts-list li {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 auto;
    /* … all your existing card styles stay exactly the same … */
}

/* Mouse wheel → horizontal scroll (magic for laptops) */
.horizontal-scroll-container .timeline_list_container {
    scroll-snap-align: start;
}
.horizontal-scroll-container {
    touch-action: pan-x;
}

/* Enable horizontal wheel scrolling on desktop */
.horizontal-scroll-container {
    overflow-x: hidden;
}
.js-horizontal-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.horizontal-scroll-container-kepek .post-content{
    display: none!important;
}
.horizontal-scroll-container-kepek .emoji-rating-wrapper{
    display: none!important;
}







/* 🎬 Lists Page Full-Width Container */
.horizontal-scroll-container {
    position: relative;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--color-one, #ffffff) 0%, rgba(240, 240, 240, 0.8) 100%);
    width: 100vw;
    max-width: none;
    margin: 0;
    left: 0;
    overflow-x: hidden;
}

/* 🎯 Section Title */
.horizontal-scroll-container .wp-block-heading {
    color: var(--color-two, #1a3c1a);
    font-size: 2em;
    font-weight: 700;
    padding-left: 20px;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 🚀 Scrollable List - Full Width */
.horizontal-scroll-container .timeline_list_container {
    width: 100%;
    max-width: none;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
}

/* 🚀 Hide Scrollbar */
.horizontal-scroll-container .timeline_list_container::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll-container .timeline_list_container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 🔥 Post List */
.horizontal-scroll-container .random-posts-list {
    display: flex;
    gap: 20px;
    padding: 0 15px;
    width: auto;
    min-width: 100%;
    align-items: stretch;
}

/* 🔥 Individual Post Items */
.horizontal-scroll-container .random-posts-list li {
    position: relative;
    display: flex;
    flex-direction: column;
    list-style: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 260px;
    max-width: 320px;
    flex: 0 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 15px;
    background: var(--color-one, #ffffff);
    overflow: hidden;
    scroll-snap-align: start;
}

.horizontal-scroll-container .random-posts-list li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 2px var(--color-four, #4299e1);
}

/* Conditionally hide post-content when has-image is present */
.horizontal-scroll-container .random-posts-list li.has-image .post-content {
    display: none;
}

/* Hide unwanted elements */
.horizontal-scroll-container .random-posts-list .post-content img,
.horizontal-scroll-container .random-posts-list .post-date,
.horizontal-scroll-container .random-posts-list .emoji-rating,
.horizontal-scroll-container .timeline_list_container .post-title,
.horizontal-scroll-container .emoji-container {
    display: none;
}

/* 🖼️ Post Images */
.horizontal-scroll-container .post-featured-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--color-three, #e0e0e0);
}

.horizontal-scroll-container .random-posts-list li:hover .post-featured-image img {
    transform: scale(1.05);
    opacity: 0.95;
}

/* ✅ Content Styling */
.horizontal-scroll-container .random-posts-list a .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px 12px 12px 12px;
    background: transparent;
    color: var(--color-two, #1a3c1a);
    font-size: 0.9em;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    text-decoration: none;
    min-height: 100px;
    transition: color 0.3s ease;
}
.category_list_front a {
    color: var(--color-two)!important;
    text-transform: uppercase;
    font-weight: 500;
}


.horizontal-scroll-container .random-posts-list a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 100%;
    height: 100%;
    color: white;
}

.horizontal-scroll-container .random-posts-list a .post-content p,
.horizontal-scroll-container .random-posts-list a .post-content * {
    margin: 0;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

/* 👤 Author Positioning */
.horizontal-scroll-container .post-author {
    position: absolute;
    top: 10px;
    right: 40px;
    font-size: 11px;
    color: var(--color-two, #1a3c1a);
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-size: 8px !important
}

.horizontal-scroll-container .post-author a {
    text-decoration: none;
    color: inherit;
}

.horizontal-scroll-container .random-posts-list li:hover .post-author {
    color: var(--color-four, #4299e1);
}

.horizontal-scroll-container .post-author-avatar {
    position: absolute;
    top: 8px;
    right: 8px;
}

.horizontal-scroll-container .post-author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-one, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 🎨 Category Styling */
.horizontal-scroll-container .post-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-four, #4299e1);
    color: var(--color-one, #ffffff);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.horizontal-scroll-container .random-posts-list li:hover .post-category {
    background: var(--color-two, #1a3c1a);
}
.timeline_list_container i{
    color: var(--color-two);
    font-size: 11px;
}

/* 📱 Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .horizontal-scroll-container {
        padding: 15px 0;
        width: 100vw;
        left: 0;
    }

    .horizontal-scroll-container .wp-block-heading {
        font-size: 1.5em;
        padding-left: 15px;
    }

    .horizontal-scroll-container .timeline_list_container {
        padding: 10px 0;
    }

    .horizontal-scroll-container .random-posts-list {
        gap: 15px;
        padding: 0 10px;
    }

    .horizontal-scroll-container .random-posts-list li {
        min-width: 200px;
        max-width: 240px;
        padding: 12px;
        border-radius: 12px;
    }

    .horizontal-scroll-container .post-featured-image img {
        max-height: 140px;
    }

    .horizontal-scroll-container .post-content {
        font-size: 0.8em;
        min-height: 80px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .horizontal-scroll-container .post-author {
        font-size: 9px;
        right: 35px;
    }

    .horizontal-scroll-container .post-author-avatar img {
        width: 20px;
        height: 20px;
    }

    .horizontal-scroll-container .post-category a{
        font-size: 9px!important;
        padding: 3px 6px;
    }
    .horizontal-scroll-container .post-category {
        padding: 3px 6px;
    }
}
/* 🔥 Desktop: horizontal mouse wheel support */
.horizontal-scroll-container .timeline_list_container {
    overflow-y: hidden; /* prevent vertical scrollbar */
}

.horizontal-scroll-container {
    overflow-x: auto; /* already changed above */
}

/* Optional: show a subtle scrollbar on desktop only */
@media screen and (min-width: 769px) {
    .horizontal-scroll-container .timeline_list_container::-webkit-scrollbar {
        height: 8px;
    }
    .horizontal-scroll-container .timeline_list_container::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
        border-radius: 4px;
    }
    .horizontal-scroll-container .timeline_list_container::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 4px;
    }
    .horizontal-scroll-container .timeline_list_container::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.5);
    }
}
/* Scaled-down version – only ~70% width and less tall */
/* Desktop */
.horizontal-scroll-container_single_post {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Tablet & Mobile – float above bottom nav */
@media (max-width: 1024px) {
    .horizontal-scroll-container_single_post {
        bottom: 82px !important;     /* safe value for 99% of mobile footers */
        width: 99vw !important;
        border-radius: 18px !important;
    }
    .horizontal-scroll-container_single_post .scroll-arrow {
        display: none;
    }
    .horizontal-scroll-container .scroll-arrow {
        display: none;
    }
}

/* Make the list take full width inside and enable horizontal scrolling */
.horizontal-scroll-container_single_post ul {
    display: flex;
    overflow-x: auto;
    padding: 0 10px;
    margin: 0;
    gap: 10px;
    scrollbar-width: none;           /* Firefox */
}

.horizontal-scroll-container_single_post ul::-webkit-scrollbar {
    display: none;                   /* Chrome/Safari */
}

/* Smaller items but still fully visible */
.horizontal-scroll-container_single_post ul li {
    flex: 0 0 auto;
    height: 100px !important;        /* reduced from 150px → 100px (or even 90px if you want smaller) */
    width: 180px;                    /* adjust to your thumbnail size */
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.horizontal-scroll-container_single_post .post-content{
        padding: 2px 2px 2px 2px!important;
        font-size: 11px!important;
        justify-content: normal!important;
} 
.horizontal-scroll-container_single_post .post-category a{
    font-size: 11px!important;
} 
