/* ============================================================
   WEB STORIES - BOLINHAS ESTILO PORTAL
   ============================================================ */

/* ============================================================
   1. BOLINHAS SIMPLES (SEM TÍTULO) - ESTILO PORTAL
   ============================================================ */
.aws-bolinhas-simples-wrapper {
    margin: 12px 0;
    padding: 8px 0;
    background: transparent;
}

.aws-bolinhas-simples-container {
    display: flex;
    gap: 16px;
    padding: 4px 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.aws-bolinhas-simples-container::-webkit-scrollbar {
    display: none;
}

.aws-bolinhas-simples-container:active {
    cursor: grabbing;
}

.aws-bolinha-simples-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 72px;
    transition: transform 0.2s ease;
}

.aws-bolinha-simples-item:hover {
    transform: scale(1.05);
}

.aws-bolinha-simples-item:active {
    transform: scale(0.92);
}

/* ============================================================
   CÍRCULO DA BOLINHA
   ============================================================ */
.aws-bolinha-simples-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8e8e8;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* ============================================================
   ANEL GRADIENTE (ESTILO INSTAGRAM)
   ============================================================ */
.aws-bolinha-simples-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: aws-ring-spin 3s linear infinite;
}

@keyframes aws-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   ANEL PARA STORY JÁ VISUALIZADO (CINZA)
   ============================================================ */
.aws-bolinha-simples-item.visto .aws-bolinha-simples-ring {
    background: #c4c4c4;
    animation: none;
}

/* ============================================================
   PLACEHOLDER PARA SEM IMAGEM
   ============================================================ */
.aws-bolinha-simples-circle.has-image .aws-bolinha-simples-placeholder {
    display: none;
}

.aws-bolinha-simples-placeholder {
    font-size: 28px;
    color: #8e8e8e;
    background: #f0f0f0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   LABEL (NOME DA CATEGORIA)
   ============================================================ */
.aws-bolinha-simples-label {
    font-size: 11px;
    color: #262626;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   BOLINHAS COM TÍTULO (VERSÃO COMPLETA)
   ============================================================ */
.aws-bolinhas-wrapper {
    margin: 20px 0;
    padding: 16px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.aws-bolinhas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px 16px;
}

.aws-bolinhas-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   BOTÃO "VER TODAS" COM FONT AWESOME
   ============================================================ */
.aws-bolinhas-ver-todas {
    font-size: 13px;
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aws-bolinhas-ver-todas i {
    font-size: 12px;
}

.aws-bolinhas-ver-todas:hover {
    text-decoration: underline;
}

/* ============================================================
   CONTAINER DAS BOLINHAS - CORRIGIDO
   ============================================================ */
.aws-bolinhas-container {
    display: flex;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.aws-bolinhas-container::-webkit-scrollbar {
    display: none;
}

.aws-bolinhas-container:active {
    cursor: grabbing;
}

.aws-bolinha-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 72px;
    transition: transform 0.2s ease;
}

.aws-bolinha-item:hover {
    transform: scale(1.05);
}

.aws-bolinha-item:active {
    transform: scale(0.92);
}

.aws-bolinha-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8e8e8;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.aws-bolinha-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: aws-ring-spin 3s linear infinite;
}

.aws-bolinha-circle.has-image .aws-bolinha-placeholder {
    display: none;
}

.aws-bolinha-placeholder {
    font-size: 28px;
    color: #8e8e8e;
    background: #f0f0f0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aws-bolinha-label {
    font-size: 11px;
    color: #262626;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 480px) {
    .aws-bolinha-simples-circle {
        width: 56px;
        height: 56px;
    }
    
    .aws-bolinha-simples-item {
        width: 64px;
    }
    
    .aws-bolinha-simples-label {
        font-size: 10px;
        max-width: 64px;
    }
    
    .aws-bolinha-circle {
        width: 56px;
        height: 56px;
    }
    
    .aws-bolinha-item {
        width: 64px;
    }
    
    .aws-bolinha-label {
        font-size: 10px;
        max-width: 64px;
    }
    
    .aws-bolinhas-simples-container {
        gap: 12px;
        padding: 4px 2px;
    }
    
    .aws-bolinhas-container {
        gap: 12px;
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .aws-bolinha-simples-circle {
        width: 48px;
        height: 48px;
    }
    
    .aws-bolinha-simples-item {
        width: 56px;
    }
    
    .aws-bolinha-circle {
        width: 48px;
        height: 48px;
    }
    
    .aws-bolinha-item {
        width: 56px;
    }
    
    .aws-bolinhas-simples-container {
        gap: 8px;
    }
    
    .aws-bolinhas-container {
        gap: 8px;
    }
}