/* Visual connector to the post above *//* Visual connector to the post above */
.embedded-topic-carousel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
}

.embedded-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
}

.carousel-header-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.carousel-count {
    font-size: 12px;
    color: var(--secondary);
    opacity: 0.7;
    background: var(--background);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.carousel-toggle-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.carousel-toggle-btn i {
    font-size: 14px;
}

.embedded-carousel-track-container {
    position: relative;
    overflow: hidden;
    background-color: var(--background);
}

.embedded-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: space-between;
    gap: 11px;
}

.embedded-carousel-card {
    min-width: 50%;
    max-width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.embedded-card-header {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 4px;
}

.embedded-card-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.embedded-card-time {
    font-size: 11px;
    color: var(--functional);
}

.embedded-card-content {
    color: var(--primary);
    font-size: 14px;
    line-height: 1.5;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    font-weight: normal;
}

.embedded-card-whinge .whingeScore {
    font-size: 18px;
}

.embedded-carousel-nav {
    height: auto;
    width: 56px;
    background: black;
    color: white;
    border-radius: 28px;
    cursor: pointer;
    display: flex;
    padding: 10px;
    margin: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.embedded-carousel-nav:disabled {
    cursor: default;
    color: rgba(255, 255, 255, 0.3);
}

.embedded-carousel-nav-left {
    left: 0;
}

.embedded-carousel-nav-right {
    right: 0;
}

.embedded-carousel-nav:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.6);
}/* Smooth entry animation */

/* Smooth entry animation */
.embedded-topic-carousel {
    animation: embedSlideIn 0.4s ease-out;
    margin-top: 10px;
    border-top: 1px solid var(--border);
}

@keyframes embedSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* Whinge Score Borders for Carousel Cards */

/* Whinge Score Borders for Carousel Cards */
.embedded-carousel-card.whinge-level-0 {
    border-right: 0 solid var(--secondary);
}

.embedded-carousel-card.whinge-level-1 {
    border-right: 2px solid #fff9c4;
}

.embedded-carousel-card.whinge-level-2 {
    border-right: 2px solid #fff176;
}

.embedded-carousel-card.whinge-level-3 {
    border-right: 2px solid #ffeb3b;
}

.embedded-carousel-card.whinge-level-4 {
    border-right: 2px solid #ffa726;
}

.embedded-carousel-card.whinge-level-5 {
    border-right: 2px solid #ff5722;
}

.embedded-carousel-card.whinge-level-6 {
    border-right: 2px solid #d32f2f;
}

.embedded-carousel-card.whinge-level-7 {
    border-right: 2px solid #a50000;
}
