/**
 * Styles pour Feed Links Shortcode
 */

 #tbl-next-up{z-index: 999 !important;}
.feed-links-shortcode {
    margin: 20px 0;
}

.feed-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.feed-links-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e1e1e1;
}

.feed-links-list li:last-child {
    border-bottom: none;
}

.feed-links-list a {
    text-decoration: none;
    color: #0073aa;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.feed-links-list a:hover {
    color: #005177;
    text-decoration: underline;
}

.feed-links-list a::before {
    content: "📄 ";
    margin-right: 5px;
}


/* Popin mobile qui glisse depuis le bas */
.fls-popin {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -30vh; /* cachée initialement */
    height: 20vh; /* 20% de la hauteur écran */
    background: #ffffff;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
    z-index: 99999999999;
    transform: translateY(0);
    transition: bottom 0.35s ease;
}

.fls-popin.fls-popin--visible { bottom: 0; }

.fls-popin__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000000000;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

.fls-popin__close:hover,
.fls-popin__close:focus {
    background: rgba(0, 0, 0, 0.1);
    color: #111827;
    outline: none;
}

.fls-popin__close:active {
    background: rgba(0, 0, 0, 0.15);
}

.fls-popin__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.fls-popin__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1da1f2, #00c389);
    transition: width 0.15s linear;
}

.fls-popin__container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 12px 14px;
    gap: 8px;
}

.fls-popin__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fls-popin__label {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.fls-popin__domain {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fls-popin__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.fls-popin__image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: block;
}

.fls-popin__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fls-popin__image:empty {
    display: none;
}

.fls-popin__text {
    flex: 1;
    min-width: 0;
}

.fls-popin__title {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fls-popin__right {
    margin-top: auto;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    /* on privilégie l’apparition sur mobile */
    .fls-popin { display: none; }
}
