@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
/* --- RESET BÁSICO (Original do seu projeto) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #F4F4F4;
    color: #262626;
    /* Removido overflow: hidden para permitir a rolagem fluida do feed */
}

/* --- CONTAINER DE ROLAGEM (Ajustado para Feed Fluido) --- */
#feed-container {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* Ativa o snap seletivo */
    scroll-snap-type: y proximity; 
}

.post-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background-color: #F4F4F9;
    padding-bottom: 0px;
    /* Remove o snap para permitir rolagem fluida no texto */
    scroll-snap-align: none; 
}

/* --- CAPA (Original preservada) --- */
.cover-page {
    background-color: #f4f4f4;
    display: flex; /* Garante o alinhamento do conteúdo */
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
    /* Faz a tela "grudar" aqui */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.agency-logo {
    max-width: 120px;
    margin-bottom: 30px;
}

.client-name {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 15px;
}

.divider {
    width: 40px;
    height: 2px;
    background-color: #d4af37;
    margin-bottom: 15px;
}

.presentation-title {
    font-size: 1.1rem;
    color: #555;
    font-weight: 400;
    line-height: 1.4;
}

.swipe-hint {
    margin-top: 60px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* --- CARD ESTILO INSTAGRAM (Agora com altura dinâmica) --- */
.insta-card {
    width: 100%;
    max-width: 420px; /* Seu valor original */
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 8px; /* Seu valor original */
    box-shadow: 0 1px 10px rgba(0,0,0,0.2);
    margin: 10px auto; /* Adicionado margem para não colar no topo */
    height: auto; /* O card cresce com a legenda */
}

/* 1. Header (Original) */
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #efefef;
    background: #fff;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

.profile-pic-container {
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 14px;
}

.location {
    font-size: 11px;
}

/* 2. Área da Imagem (Original com ajuste de Cover) */
.post-image-container {
    width: 100%;
    aspect-ratio: 4 / 5; /* Sua proporção original */
    position: relative;
    overflow: hidden;
    background-color: #fafafa;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.post-img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajustado para preencher a tela sem bordas brancas */
    background-color: #fff;
}

/* Controles do Carrossel (Original) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 10;
}
.dot {
    height: 6px;
    width: 6px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
}
.dot.active { background-color: #fff; }

/* 3. Ações (Original) */
.insta-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
}

.action-left { display: flex; gap: 14px; }
.insta-icon { font-size: 26px; cursor: pointer; }

/* 4. Legenda (Ajustado para expandir totalmente) */
.post-details {
    padding: 0 14px;
    font-size: 13px; /* Seu valor original */
    background: #fff;
    height: auto; /* Removido scroll interno e altura fixa */
    overflow: visible; 
}

.caption-text {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    margin-top: 5px;
    color: #262626;
}

.username-caption {
    font-weight: 600;
    margin-right: 5px;
}

.post-time {
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    margin: 10px 0 20px 0;
    display: block;
}

/* 5. Área de Aprovação (Fixada ao final do post) */
.approval-section {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: #fafafa;
    border-top: 1px solid #efefef;
    margin-top: 10px;
}

.action-btn {
    width: 50px; /* Seu valor original */
    height: 50px; /* Seu valor original */
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.btn-reject { background: #fff; color: #ed4956; border: 1px solid #ed4956; }
.btn-approve { background: #fff; color: #0095f6; border: 1px solid #0095f6; }

/* --- TELA FINAL (Original) --- */
.final-slide { background-color: #fff; align-items: center;}

.success-icon {
    font-size: 80px;
    color: #4caf50;
    margin-bottom: 20px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: 0.2s;
}