/* Estilos Gerais e Variáveis */
:root {
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.75rem;
}

* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  padding-top: 40px; /* Espaço para o banner */
}

.container {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Banner de Promoção */
.promo-banner {
  background-color: #ff641c;
  color: #ffffff;
  text-align: center;
  padding: 10px 20px;
  font-weight: bold;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  font-size: 15px;
}

/* Cabeçalho */
.header {
  position: sticky;
  top: 40px;
  z-index: 10;
  background-color: white;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
}

.logo-image {
  height: 32px;
  width: auto;
}

/* Conteúdo Principal */
main {
  padding: 2rem 1rem;
}

/* Seção do Perfil */
.profile-section {
  position: relative;
  margin-bottom: 4rem;
}

.banner {
  position: relative;
  width: 100%;
  height: 12rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 60%;
  transform: scale(1.4);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.banner-content {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: white;
}

.banner-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.banner-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.profile-image-container {
  position: absolute;
  bottom: -3.5rem;
  left: 1.5rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow);
  z-index: 5;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.3);
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

.card-content {
  padding: 1.5rem;
}

.profile-card {
  padding-top: 0.5rem;
  margin-top: 0px;
}

.profile-info-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-info-header span {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.verified-badge {
  width: 18px;
  height: 18px;
}

.username {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.bio {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Botões de Assinatura */
.subscription-link {
  display: block;
  text-decoration: none;
  margin-bottom: 0.75rem;
}



.subscription-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3.5rem;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-button {
  background: linear-gradient(to right, var(--orange-400), var(--orange-500));
  color: white;
}

.primary-button:hover {
  background: linear-gradient(to right, var(--orange-500), var(--orange-600));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.outline-button {
  background-color: white;
  border: 1px solid var(--orange-200);
  color: var(--gray-800);
}

.outline-button:hover {
  background-color: var(--orange-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge, .badge-popular, .badge-extra {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--orange-100);
  color: var(--orange-800);
  width: fit-content;
}

.badge-popular {
  margin-bottom: 0.5rem;
}

.badge-extra {
  margin-top: -12px;
  margin-bottom: 1rem;
  font-weight: bold;
}

.price {
  font-weight: 700;
}

.highlight {
  color: var(--orange-600);
}

/* Animação Pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Promoções */
.promotions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.promotions-header h4 {
  font-size: 0.875rem;
  font-weight: 500;
}

.chevron {
  color: var(--gray-400);
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.promotions-body {
  display: block;
}

/* Abas e Posts */
.content-tabs {
  margin-top: 2rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.tab {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  background-color: var(--gray-100);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
  font-weight: 500;
}

.tab.active {
  background-color: white;
  color: var(--orange-500);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tab-content {
  display: none;
  padding-top: 1rem;
}

.tab-content.active {
  display: block;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.post-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.post-user h4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.post-username {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.post-menu {
  color: var(--gray-500);
}

.post-media-content {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #f0f0f0;
}

.post-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lock-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.post-stats {
  position: absolute;
  bottom: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  display: flex;
  gap: 8px;
}

.post-actions {
  display: flex;
  align-items: center;
  padding: 4px 8px;
}

.action-icon {
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

.action-icon.bookmark {
  margin-left: auto;
}

/* Responsividade */
@media (max-width: 480px) {
  .banner-stats { font-size: 0.75rem; }
  .profile-image-container { width: 4.5rem; height: 4.5rem; bottom: -2.25rem; }
}