/* CSS para Lightweight Insta Stories */

:root {}

.lis-stories-plugin-container {
    font-family: var(--lis-primary-font, "Helvetica, Arial, sans-serif");
}

.lis-carousel-container {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 15px 0;
    gap: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lis-carousel-container::-webkit-scrollbar {
    display: none;
}

.lis-story-item {
    text-align: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.lis-story-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    box-sizing: border-box;
    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lis-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.lis-story-title-snippet {
    font-size: 13px;
    color: #262626;
    margin-top: 8px;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lis-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}

.lis-lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 400px;
    height: 95%;
    max-height: 700px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lis-lightbox-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 1002;
    padding: 5px 10px;
    transition: color 0.3s;
}

.lis-lightbox-close-btn:hover {
    color: #ccc;
}

.lis-lightbox-story-view {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.lis-lightbox-story-view img.lis-story-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.lis-lightbox-story-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0) 100%
    );
    box-sizing: border-box;
}

.lis-lightbox-story-info .lis-story-link {
    text-decoration: none;
    display: block;
}

.lis-lightbox-story-info h3.lis-story-title-lightbox {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #FFFFFF;
    font-weight: bold;
}

.lis-lightbox-story-info p.lis-story-excerpt {
    font-size: 14px;
    margin: 0 0 15px 0;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.4;
    color: #FFFFFF;
}

.lis-lightbox-read-article-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #000000;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: 0.3s ease;
}

.lis-lightbox-read-article-btn:hover {
    opacity: 0.9;
}

.lis-progress-bar-container {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 1001;
}

.lis-progress-bar {
    flex-grow: 1;
    height: 3px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.lis-progress-bar-inner {
    height: 100%;
    background-color: #fff;
    width: 0%;
    border-radius: 2px;
}

.lis-nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    cursor: pointer;
    z-index: 1000;
}

.lis-nav-prev {
    left: 0;
}

.lis-nav-next {
    right: 0;
}

@media (max-width: 768px) {
    .lis-story-avatar {
        width: 75px;
        height: 75px;
    }

    .lis-story-title-snippet {
        max-width: 80px;
        font-size: 12px;
    }
}
