/**
 * Index View Styles
 * 
 * This file contains all the CSS styles specific to the index page.
 */

/* Stories Header */
.stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Group Stories */
.stories-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin-bottom: 1.5rem;
    position: relative;
}

.stories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Navigation Buttons */
.stories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stories-nav:hover {
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.stories-nav--prev {
    left: 0.5rem;
}

.stories-nav--next {
    right: 0.5rem;
}

/* Story Card */
.story-card {
    position: relative;
    width: 140px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0.5rem 0;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.story-card__media {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.story-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.5) 40%, 
        rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.story-card:hover .story-card__overlay {
    opacity: 0.95;
}

.story-card__avatar-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.story-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-card__avatar {
    transform: scale(1.1);
}

.story-card__content {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    padding: 0 12px;
    text-align: center;
    color: white;
    z-index: 2;
}

.story-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

.story-card__meta {
    font-size: 0.7rem;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* Post Card Animation */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.post-card.animated {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Media Queries */
@media (max-width: 576px) {
    .story-card {
        width: 120px;
        height: 180px;
    }
    
    .story-card__avatar {
        width: 40px;
        height: 40px;
    }
    
    .stories-nav {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 992px) {
    .story-card {
        width: 160px;
        height: 220px;
    }
    
    .story-card__avatar {
        width: 52px;
        height: 52px;
    }
}

/* Carrossel Lateral */
.group-carousel1 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.group-carousel-item {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 1px;
}

.group-carousel-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.5) 40%, 
        rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.group-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.group-carousel-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.text-shadow {
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
