/* Categorias no topo */
.categories-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-btn:hover {
    background: var(--background-color);
}

.category-btn.active {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

/* Home Header */
.home-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.home-profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-avatar {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.home-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    padding: 2px;
}

.home-details {
    flex: 1;
}

.home-details h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.home-details p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.home-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.view-profile-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .home-avatar {
        width: 60px;
        height: 60px;
    }
    
    .home-details h2 {
        font-size: 16px;
    }
    
    .home-details p {
        font-size: 13px;
    }
}

/* Main Content */
.main-content {
    max-width: 630px;
    margin: 100px auto 30px;
    padding: 0 20px;
}

/* Feed Instagram Style */
.feed {
    display: flex;
    flex-direction: column;
}

.feed-sentinel {
    height: 1px;
    width: 100%;
}

.post {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 40px;
    content-visibility: auto;
    contain-intrinsic-size: 680px;
}

.post-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: postFadeIn 0.45s ease forwards;
}

@keyframes postFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-fade-in {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.post:last-child {
    margin-bottom: 0;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
    margin-right: 10px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--white);
    object-fit: cover;
}

.post-user {
    flex: 1;
}

.post-user strong {
    display: block;
    font-size: 14px;
}

.post-user span {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-options {
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
}

.post-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.post-image {
    width: 100%;
    height: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-image:hover img {
    transform: scale(1.02);
}

/* Indicador de informações no canto da imagem */
.post-image-indicator {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-image-indicator:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* Container para ícones do canto superior direito */
.post-image-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 10;
}

.post-image-badges .post-image-indicator,
.post-image-badges .post-image-count {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.post-image-wrapper:hover .post-image-badges .post-image-indicator,
.post-image-wrapper:hover .post-image-badges .post-image-count {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   CARROSSEL DE IMAGENS - ESTILO INSTAGRAM
   ============================================ */

/* Container do carrossel */
.post-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Setas de navegação (PC) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.post-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 12px;
}

.carousel-nav.next {
    right: 12px;
}

/* Pontinhos indicadores (dots) */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Badge de quantidade de imagens */
.post-image-count {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile - swipe habilitado */
@media (max-width: 768px) {
    .carousel-nav {
        /* No mobile, usar gestos de swipe em vez de setas */
        display: none;
    }
    
    .post-carousel {
        -webkit-user-select: none;
        user-select: none;
    }
    
    .post-carousel-slides {
        cursor: grab;
    }
    
    .post-carousel-slides:active {
        cursor: grabbing;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .carousel-dot {
        width: 7px;
        height: 7px;
    }
}

/* Footer da imagem com link para detalhes */
.post-footer {
    padding: 12px 14px 0;
    border-top: 1px solid transparent;
}

.post-details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 6px 0;
}

.post-details-link:hover {
    color: var(--secondary-color);
}

.post-details-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.post-details-link:hover i {
    transform: translateX(3px);
}

.post-actions {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--background-color);
    border-color: var(--text-primary);
}

.action-btn.favorited {
    color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 700;
}

.favorite-text {
    font-size: 14px;
    font-weight: 500;
}

.action-btn.saved {
    color: var(--text-primary);
    border-color: var(--border-color);
    font-weight: 500;
}

.post-content {
    padding: 0 14px 14px;
}

.post-caption {
    font-size: 14px;
}

.post-caption strong {
    font-weight: 600;
    margin-right: 5px;
}

.post-product-title {
    font-size: 14px;
    font-weight: 600;
}

.post-description {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.5;
}

.post-time {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 8px;
}

