/* stories-widget.css - Widget de stories */
.stories-widget-container {
    position: fixed;
    left: 20px;
    bottom: 120px;
    z-index: 10000;
    cursor: grab;
    background: transparent;
    padding: 0;
    text-align: center;
}
.stories-widget-container:active { cursor: grabbing; }
.stories-widget-container.oculto { display: none; }

/* Bolinha do story */
.stories-widget-item {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #f09433, #d62976, #c13584);
    padding: 3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}
.stories-widget-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.stories-widget-item img,
.stories-widget-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid white;
    border-radius: 17px;
    display: block;
}

/* Label STORIES com gradiente */
.stories-widget-label {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #f09433, #d62976, #c13584);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* Botão fechar - BEM PEQUENO */
.stories-widget-fechar {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    cursor: pointer;
    font-weight: bold;
    z-index: 15;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: background 0.2s;
    line-height: 1;
}
.stories-widget-fechar:hover {
    background: #cc0000;
}

/* Modal de tela cheia */
.stories-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 20000;
}
.stories-modal-overlay.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stories-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stories-modal-content img,
.stories-modal-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stories-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 20001;
    transition: background 0.2s;
}
.stories-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.stories-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 20001;
    transition: background 0.2s;
}
.stories-modal-nav:hover {
    background: rgba(255,255,255,0.3);
}
.stories-modal-prev { left: 20px; }
.stories-modal-next { right: 20px; }

.stories-modal-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    z-index: 20001;
}
.stories-modal-progress-bar {
    height: 100%;
    background: #ff69b4;
    width: 0%;
    transition: width 0.1s linear;
}

.stories-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    z-index: 20001;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stories-widget-item { width: 70px; height: 70px; border-radius: 18px; }
    .stories-widget-container { bottom: 100px; left: 15px; }
    .stories-widget-label { font-size: 10px; }
}
@media (max-width: 480px) {
    .stories-widget-item { width: 60px; height: 60px; border-radius: 16px; }
    .stories-widget-container { bottom: 90px; left: 10px; }
}