/* Kyracom DiviDin - LinkedIn Feed Slider */

.diky_module {
    position: relative;
}

.diky-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 50px;
    /* Colonnes par breakpoint, injectées en inline style par le module. */
    --diky-gap: 20px;
    --diky-cols: var(--diky-cols-desktop, 3);
}

.diky-slider-track {
    display: flex;
    gap: var(--diky-gap, 20px);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    padding-bottom: 20px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.diky-slider-track:active {
    cursor: grabbing;
}

.diky-slider-track::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Post Card */
.diky-post {
    width: calc((100% - (var(--diky-cols, 3) - 1) * var(--diky-gap, 20px)) / var(--diky-cols, 3));
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.diky-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Post Image */
.diky-post-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.diky-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content Wrapper */
.diky-post-content-wrapper {
    padding: 15px;
}

/* Post Title */
.diky-post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
    margin: 0 0 10px 0;
}

/* Post Meta */
.diky-post-meta {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
}

/* Post Content */
.diky-post-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 12px;
}

/* Read More Link */
.diky-read-more {
    color: #0073b1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.diky-read-more:hover {
    color: #005582;
    text-decoration: underline;
}

/* Post Footer */
.diky-post-footer {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666666;
}

.diky-post-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.diky-post-footer span:hover {
    color: #0073b1;
}

/* Slider Arrows */
/* Slider Arrows */
.diky-slider-arrow {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.diky-slider-arrow.prev {
    left: 0;
}

.diky-slider-arrow.next {
    right: 0;
}

.diky-slider-arrow:hover {
    background: rgba(0, 115, 177, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.diky-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.diky-slider-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1);
}

/* Slider Dots */
.diky-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    align-items: center;
}

.diky-slider-dot {
    width: 12px;
    height: 12px;
    background: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
    transition: all 0.3s ease;
}

.diky-slider-dot:hover {
    background: #999999;
}

.diky-slider-dot.active {
    background: #0073b1;
    width: 32px;
    border-radius: 6px;
}

/* Responsive Styles */
@media (max-width: 980px) {
    .diky-slider-container {
        --diky-cols: var(--diky-cols-tablet, 2);
    }

    .diky-post-title {
        font-size: 16px;
    }
    
    .diky-post-content {
        font-size: 13px;
    }
    
    .diky-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .diky-slider-container {
        padding: 0 35px;
        --diky-cols: var(--diky-cols-phone, 1);
    }

    .diky-post-title {
        font-size: 15px;
    }
    
    .diky-post-content {
        font-size: 12px;
    }
    
    .diky-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .diky-slider-dots {
        margin-top: 15px;
    }
}

/* Loading State */
.diky-slider-container.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diky-slider-container.loading::after {
    content: "Chargement des posts LinkedIn...";
    font-size: 16px;
    color: #666;
}
