/* Estilos base */
.wsg-story-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

/* Barra de progresso */
.wsg-story-progress-bar {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 20;
}

.wsg-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.wsg-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width linear;
    border-radius: 3px;
}

/* Slides */
.wsg-story-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.wsg-story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.wsg-story-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Conteúdo dos slides */
.wsg-slide-content {
    position: relative;
    width: 100%;
    padding: 40px 20px 30px;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.6) 50%,
        transparent 100%);
    color: #fff;
    z-index: 2;
}

.wsg-slide-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.wsg-slide-excerpt,
.wsg-slide-text {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 90%;
}

/* Slides de imagem */
.wsg-slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wsg-image-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 12px;
    font-size: 15px;
    backdrop-filter: blur(5px);
}

/* CTA */
.wsg-cta-content {
    text-align: center;
    padding: 20px;
}

.wsg-cta-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

.wsg-cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.wsg-cta-button:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
    transform: scale(1.05);
}

/* Navegação */
.wsg-story-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 20;
    pointer-events: none;
}

.wsg-story-nav button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.wsg-story-nav button:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.wsg-story-nav button:active {
    transform: scale(0.95);
}

/* Header da story */
.wsg-story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 30;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.wsg-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.wsg-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.wsg-story-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsividade */
@media (min-width: 768px) {
    body {
        background: #111;
    }
    
    .wsg-fullscreen-story {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: #0a0a0a;
    }
    
    .wsg-story-container {
        width: 380px;
        height: 680px;
        border-radius: 40px;
        box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8);
    }
    
    .wsg-story-progress-bar {
        top: 20px;
        left: 20px;
        right: 20px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wsg-slide.active .wsg-slide-content {
    animation: fadeIn 0.5s ease forwards;
}