/* ============================
   WC Stories - Barra de Bolhas
   ============================ */

.wcs-stories-bar {
    padding: 16px 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.wcs-stories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wcs-stories-scroll::-webkit-scrollbar {
    display: none;
}

/* Bolha individual */
.wcs-bubble {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wcs-bubble:hover {
    transform: scale(1.08);
}

.wcs-bubble:active {
    transform: scale(0.95);
}

.wcs-bubble-ring {
    width: var(--bubble-size, 80px);
    height: var(--bubble-size, 80px);
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--border-color, #8b5cf6), #ec4899, #f59e0b);
    flex-shrink: 0;
}

.wcs-bubble.viewed .wcs-bubble-ring {
    background: #ccc;
}

.wcs-bubble-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    display: block;
}

.wcs-bubble-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1a2e;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.wcs-bubble-title {
    font-size: 12px;
    text-align: center;
    max-width: calc(var(--bubble-size, 80px) + 10px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    line-height: 1.3;
}


/* ============================
   Player Fullscreen (Overlay)
   ============================ */

.wcs-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wcsPlayerFadeIn 0.25s ease;
}

@keyframes wcsPlayerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wcs-player-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 100dvh;
    background: #000;
    overflow: hidden;
}

/* Barra de progresso no topo */
.wcs-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 4px;
    padding: 12px 12px 0;
    z-index: 10;
}

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

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

.wcs-progress-segment.completed .fill {
    width: 100% !important;
}

/* Header do story */
.wcs-player-header {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    z-index: 10;
}

.wcs-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcs-player-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.wcs-player-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.wcs-player-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.wcs-player-close:hover {
    transform: scale(1.1);
}

/* Vídeo */
.wcs-player-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Áreas de toque para navegar */
.wcs-tap-left,
.wcs-tap-right {
    position: absolute;
    top: 80px;
    bottom: 140px;
    width: 35%;
    z-index: 5;
    cursor: pointer;
}

.wcs-tap-left {
    left: 0;
}

.wcs-tap-right {
    right: 0;
}

/* Pause indicator */
.wcs-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 60px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 8;
}

.wcs-pause-indicator.visible {
    opacity: 1;
}

/* Card do produto */
.wcs-product-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 16px 24px;
    z-index: 10;
}

.wcs-product-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.wcs-product-card-inner:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wcs-product-card-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.wcs-product-card-info {
    flex: 1;
    min-width: 0;
}

.wcs-product-card-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcs-product-card-price {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.wcs-product-card-cta {
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    flex-shrink: 0;
    text-align: center;
    transition: background 0.2s;
}

.wcs-product-card-cta:hover {
    background: #f0f0f0;
}

/* Swipe */
.wcs-player-container.swiping {
    transition: transform 0.05s linear;
}

.wcs-player-container.snap-back {
    transition: transform 0.3s ease;
    transform: translateX(0) !important;
}

/* Responsivo - Desktop */
@media (min-width: 768px) {
    .wcs-player-container {
        max-height: 90vh;
        border-radius: 16px;
        max-width: 380px;
    }

    .wcs-player-overlay {
        background: rgba(0, 0, 0, 0.85);
    }
}

/* Navegação lateral desktop */
.wcs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s;
}

.wcs-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.wcs-nav-prev { left: 12px; }
.wcs-nav-next { right: 12px; }

@media (min-width: 768px) {
    .wcs-nav-btn {
        display: flex;
    }
    .wcs-tap-left,
    .wcs-tap-right {
        display: none;
    }
}
