/* ==================================================== */
/* 🔻 Título da Seção */
/* ==================================================== */
.titulo-stories {
    font-size: 28px;
    color: #2196f3;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.titulo-stories i {
    font-size: 32px;
    color: #2196f3;
}

/* ==================================================== */
/* 🔻 Container Principal */
/* ==================================================== */
.stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    overflow: hidden;
    margin-bottom: 0%;
}

/* ==================================================== */
/* 🔻 Grid de Stories (carrossel horizontal) */
/* ==================================================== */
.stories-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin: 0 15px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.stories-grid::-webkit-scrollbar {
    display: none;
}

/* ==================================================== */
/* 🔻 Card estilo Storie (imagem de fundo com sobreposição) */
/* ==================================================== */
.story-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 180px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.story-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.75);
}

/* Sobreposição de conteúdo */
.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 10px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.story-overlay h4 {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.story-overlay p {
    font-size: 14px;
    text-align: center;
    margin: 0;
    color: #ddd;
}

/* ==================================================== */
/* 🔻 Botões de Compartilhamento */
/* ==================================================== */
.compartilhar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.btn-instagram,
.btn-tiktok {
    font-size: 16px;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.btn-instagram:hover {
    background-color: #E1306C;
}

.btn-tiktok:hover {
    background-color: #000;
}

.btn-instagram i {
    color: #E1306C;
}

.btn-tiktok i {
    color: #00F2EA;
}

/* ==================================================== */
/* 🔻 Wrapper com botões do carrossel */
/* ==================================================== */
.stories-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================================== */
/* 🔻 Botões de navegação */
/* ==================================================== */
.btn-carousel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(33, 150, 243, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.btn-carousel:hover {
    background-color: #1976d2;
}

.btn-prev {
    left: -25px;
}

.btn-next {
    right: -25px;
}

/* ==================================================== */
/* 🔻 Responsividade */
/* ==================================================== */
@media (max-width: 1024px) {
    .story-card {
        width: 150px; /* 4 cards por linha */
        height: 250px;
    }

    .titulo-stories {
        font-size: 24px;
    }

    .story-overlay h4 {
        font-size: 14px;
    }

    .story-overlay p {
        font-size: 13px;
    }

    .btn-carousel {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .story-card {
        width: 180px;
        height: 280px;
    }

    .titulo-stories {
        font-size: 22px;
    }

    .story-overlay h4 {
        font-size: 14px;
    }

    .story-overlay p {
        font-size: 13px;
    }

    .btn-carousel {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .story-card {
        width: 160px; /* Cards maiores para o celular */
        height: 250px;
    }

    .titulo-stories {
        font-size: 20px;
    }

    .story-overlay h4 {
        font-size: 14px;
    }

    .story-overlay p {
        font-size: 13px;
    }

    .btn-carousel {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
