/* --- RESET E ESTILOS GLOBAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
    /* ... (suas variáveis de cor continuam aqui) ... */
    --page-bg: #F8F9FA;
    --container-bg: #FFFFFF;
    --text-color: #1a1a1a;
    /* ... etc ... */
}

/* CORREÇÃO FINAL: Reseta completamente o body e o html 
  para remover qualquer espaçamento padrão do navegador.
*/
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; 
    font-family: var(--font-family);
    background-color: var(--page-bg);
    color: var(--text-color);
    -webkit-text-size-adjust: 100%; /* Previne zoom automático de fontes no iOS */
    -webkit-tap-highlight-color: transparent; /* <- ESTA É A LINHA MÁGICA */
}

/* ... (o resto do seu CSS continua normalmente daqui para baixo) ... */




@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
    --page-bg: #F8F9FA; /* Cor de fundo da página um pouco mais clara */
    --container-bg: #FFFFFF;
    --text-color: #1a1a1a;
    --username-color: #6c6c6c;
    --primary-gradient: linear-gradient(90deg, #FFDDC9, #FFB38E);
    --secondary-gradient: linear-gradient(90deg, #FFC8B4, #FF9A73);
    --border-color: #F0F0F0;
    --locked-bg: #F5F1ED;
    --icon-color: #BDBDBD;
    --active-color: #E87A54;
    --check-color: #E87A54;
    --font-family: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background-color: var(--page-bg);
    color: var(--text-color);
}

/* --- ATUALIZAÇÃO: HEADER FULL-WIDTH --- */
.top-header {
    width: 100%;
    background-color: #FFF;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0; /* Padding vertical, sem padding horizontal */
    position: relative;
}

.header-content {
    max-width: 900px; /* Largura máxima para o conteúdo do header */
    margin: 0 auto;   /* Centraliza o conteúdo do header */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 100px; /* Adiciona padding lateral para telas menores */
    min-height: 35px;
}

.header-content img {
    padding: 0px 280px;
}

.logo { height: 18px; width: auto; }
.top-header .fa-globe { font-size: 1.5em; color: #555; display: none; }

/* --- ATUALIZAÇÃO: CONTAINER PRINCIPAL CENTRALIZADO --- */
.page-container {
    max-width: 1110px; /* Largura do conteúdo principal */
    width: 100%;
    margin: -0px auto 20px auto; /* Margem negativa para "subir" e centralizar */
    background-color: var(--container-bg);
    border-radius: 25px; /* Bordas arredondadas apenas no container principal */
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    position: relative; /* Para garantir o efeito de sobreposição */
    border: 1px solid #dbdbdb;
    z-index: 2;
}

.main-container { width: 100%; }

/* O resto do CSS permanece o mesmo */
.profile-header .cover-photo { height: 90px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-color); }
.profile-info-bar { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 25px; margin-top: -50px; position: relative; }
.profile-pic { width: 100px; height: 100px; border-radius: 50%; border: 5px solid #FFF; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.stats { display: flex; gap: 15px; font-size: 0.9em; font-weight: 500; padding: 10px 10px; margin-bottom: 5px;}
.stats i { margin-right: 5px; color: var(--icon-color); }

.content { padding: 25px; }
.profile-details h1 { margin-top: -15px; font-size: 1.1em; font-weight: 900; display: flex; align-items: center; }
.profile-details .fa-check-circle { color: var(--check-color); font-size: 0.7em; margin-left: 10px; border: 1.5px solid var(--check-color); border-radius: 50%; }
.profile-details .username { color: var(--username-color); margin-bottom: 15px; font-size: 1.1em; }
.description { font-size: 1em; line-height: 1.6; margin-bottom: 20px; }
.description .hidden { display: none; }
#toggle-text-btn { color: var(--active-color); font-weight: 700; text-decoration: none; cursor: pointer; }

.social-links { display: flex; gap: 20px; font-size: 1.4em; color: #333; }
.subscription { margin: 25px 0; }
.subscription h2 { font-size: 1em; font-weight: 700; color: var(--username-color); margin: 15px 0 10px; }
.promo-header { display: flex; justify-content: space-between; align-items: center; }
.promo-header i { color: var(--username-color); }
.plan-button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 20px; margin-bottom: 10px; border-radius: 15px; border: none; font-size: 1em; font-weight: 700; color: #4F2E1B; background: linear-gradient(90deg,rgba(246, 148, 73, 1) 0%, rgba(250, 197, 158, 1) 50%, rgba(247, 168, 153, 1) 100%); cursor: pointer; }
.plan-button.promo { background: linear-gradient(90deg,rgba(246, 148, 73, 1) 0%, rgba(250, 197, 158, 1) 50%, rgba(247, 168, 153, 1) 100%); }

.content-tabs-section { border-top: 1px solid var(--border-color); margin-top: 25px; padding-top: 20px; }
.tabs { display: flex; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.tab-button { flex: 1; padding: 15px; background-color: #FFF; border: none; font-size: 0.95em; font-weight: 700; color: var(--username-color); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.tab-button.active-tab { color: var(--active-color); border: none; background-color: #FFF; border-bottom: 3px solid var(--active-color); }
.tab-button i { margin-right: 8px; }
.tab-content { display: none; margin-top: 20px; }
.tab-content.active-content { display: block; }

.post-card { border: 1px solid var(--border-color); border-radius: 15px; overflow: hidden; }
.post-header { display: flex; align-items: center; padding: 12px; }
.post-profile-pic { width: 45px; height: 45px; border-radius: 50%; margin-right: 12px; }
.post-user-info { flex-grow: 1; display: flex; flex-direction: column; }
.post-username { font-weight: 700; font-size: 1em; }
.post-username .fa-check-circle { font-size: 0.7em; }
.post-handle { color: var(--username-color); font-size: 0.9em; }
.post-header .fa-ellipsis-h { color: var(--username-color); }
.post-content-locked { background-color: var(--locked-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background-image: radial-gradient(circle, rgba(232, 122, 84, 0.1), transparent 70%); }
.lock-icon-wrapper { font-size: 2.5em; color: #777; }
.locked-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; color: #555; font-weight: 700; font-size: 0.9em; }
.locked-stats i { margin-right: 5px; color: var(--icon-color); }
.post-actions { display: flex; justify-content: space-between; padding: 15px; font-size: 1.5em; color: #555; }
.action-left { display: flex; gap: 20px; }
.action-left .fa-dollar-sign { border: 2px solid #555; border-radius: 50%; font-size: 0.8em; padding: 5px; width: 22px; height: 22px; display: inline-flex; justify-content: center; align-items: center; }

.media-filter { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.filter-button { background: none; border: none; color: var(--username-color); font-weight: 700; cursor: pointer; padding: 8px 18px; border-radius: 10px; font-size: 0.9em; transition: all 0.3s ease; }
.filter-button.active-filter { color: var(--active-color); background-color: #FEF0E9; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.media-item.locked { aspect-ratio: 1 / 1; background-color: var(--locked-bg); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.8em; color: var(--icon-color); background-image: radial-gradient(circle, rgba(200, 200, 200, 0.1), transparent 70%); }


.fa-badge-check {
 width: 20px;
 height: 20px;
 color: #F6842C;
 padding-top: 5px;
}

.feed-video {
	width: 100%;
    }

@media (max-width: 758px) {
    .feed-video {
	width: 100%;
    }
}


/* --- ESTILOS DO POPUP DE COOKIES --- */

.cookie-popup-container {
    /* Posição e Visibilidade */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Garante que fique acima de tudo */
    
    /* Estilo */
    background-color: #F1F1F1;
    border-top: 1px solid #F0F0F0;
    padding: 20px;
    
    /* Animação de entrada */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

/* Classe para mostrar o popup */
.cookie-popup-container.show {
    transform: translateY(0);
}

.cookie-popup-content {
    max-width: 1110px; /* Alinha com o conteúdo do desktop */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
	margin-right: 0px;
	margin-bottom: 0;
	font-size: 16px;
	font-weight: 500;
	color: #535353;
}

.cookie-text a {
    color: #E87A54; /* Cor base do link */
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #E87A54; /* Cor do sublinhado */
    text-decoration-thickness: 2px;
}

.cookie-accept-button {
	width: 100%;
	font-size: 14px;
	font-weight: 700;
	outline: none;
	box-shadow: none;
	border-radius: 30px;
	padding: 8px 18px 9px;
	background: linear-gradient(45deg, #F58170, #F9AF77);
	color: #fefefe;
	border: none;
	margin-left: 0px;
}

.cookie-accept-button:hover {
    background: linear-gradient(45deg, #F58170, #F9AF77);
}

/* --- RESPONSIVIDADE PARA DESKTOP --- */
@media (min-width: 768px) {
    
    /* ===== CÓDIGO ATUALIZADO PARA O POPUP DE COOKIES ===== */

.cookie-popup-container {
	width: 100%;
	max-width: 100%;
	bottom: 0;
	left: 0;
	border-radius: 0;
	border: none;
	background-color: #f1f1f1;
	backdrop-filter: blur(8px);
	padding: 40px 0;
	box-shadow: 0 2px 5px -2px #0d0b0b69;
}

.cookie-popup-content {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	max-width: 1300px;
	width: 100%;
	padding: 0 0px;
	box-sizing: border-box;
}

.cookie-text {
	margin-right: 30px;
	margin-bottom: 0;
	font-size: 16px;
	font-weight: 500;
	color: #535353;
}

.cookie-accept-button {
	width: 100%;
	max-width: 250px;
	font-size: 14px;
	font-weight: 700;
	outline: none;
	box-shadow: none;
	border-radius: 30px;
	padding: 8px 18px 9px;
	background: linear-gradient(45deg, #F58170, #F9AF77);
	color: #fefefe;
	border: none;
	margin-left: 32px;
}

.cookie-accept-button:hover {
    background: linear-gradient(45deg, #F58170, #F9AF77);
}

    /* Animação para a barra subir */
    .cookie-popup-container {
        transform: translateY(120%); /* Começa totalmente fora da tela */
    }
    .cookie-popup-container.show {
        transform: translateY(0);
    }
}




/* --- AJUSTES DE RESPONSIVIDADE PARA CELULARES PEQUENOS (375px ou menos) --- */
@media (max-width: 375px) {

    /* --- Cabeçalho e Perfil --- */
    .header-content {
        /* Remove o padding excessivo do header */
        padding: 0 20px;
    }
    .header-content img {
        /* Remove o padding da imagem do logo */
        padding: 0;
    }

    .profile-info-bar {
        /* Reduz o padding para dar mais espaço */
        padding: 0 15px;
    }

    .stats {
        /* Diminui um pouco os stats para não quebrar a linha */
        gap: 10px;
        font-size: 0.85em;
        padding: 8px 10px;
        flex-wrap: wrap; /* Permite que os itens quebrem a linha se necessário */
        justify-content: flex-end;
        padding-top: 50px;
    }

    /* --- Conteúdo Principal --- */
    .content {
        /* Reduz o padding geral do conteúdo */
        padding: 20px 15px;
    }

    .profile-details h1 {
        /* Diminui o título principal */
        font-size: 1em;
    }

    .plan-button {
        /* Reduz o padding dos botões de assinatura */
        padding: 14px 15px;
        font-size: 0.95em;
    }
    
    /* --- Abas e Filtros --- */
    .tabs {
        /* Permite que as abas fiquem menores */
        flex-direction: column;
    }

    .tab-button {
        font-size: 0.9em;
    }

    .filter-button {
        /* Reduz o padding e a fonte dos botões de filtro */
        padding: 6px 10px;
        font-size: 0.85em;
    }
    
    /* --- Post e Ações --- */
    .post-actions {
        font-size: 1.3em;
    }
    .action-left {
        gap: 15px;
    }
    
    /* --- Popup de Cookies --- */
    .cookie-text {
        font-size: 0.9em;
    }
}

/* --- ESTILOS PARA O DROPDOWN DE PROMOÇÕES --- */

/* Estilo para o cabeçalho ser clicável */
.promo-header {
    cursor: pointer;
}

/* Animação suave para a rotação da seta */
#promo-arrow {
    transition: transform 0.3s ease-in-out;
}

/* Quando o dropdown estiver fechado, a seta gira 180 graus (aponta para baixo) */
#promo-arrow.closed {
    transform: rotate(180deg);
}

/* Animação de "sanfona" para os botões aparecerem e desaparecerem */
#promo-buttons {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    max-height: 200px; /* Altura suficiente para mostrar os dois botões */
}

#promo-buttons.closed {
    max-height: 0;
}
