/* ==========================================================================
   MEIRELLEZ STORE - MINIMALIST MONOCHROME DESIGN (BLACK & WHITE)
   Baseado no projeto GH IMPORTS - adaptado para Meirellez
   ========================================================================== */

:root {
  /* Cores Preto & Branco */
  --bg-dark: #050507;
  --card-bg: rgba(16, 16, 20, 0.78);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-hover-border: rgba(255, 255, 255, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.25s ease-in-out;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 36px;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Fundo com Imagem Nítida e Opacidade Controlada */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.15) brightness(0.65);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.72) 0%, rgba(5, 5, 7, 0.88) 100%);
}

.bg-glow {
  display: none;
}

/* Container Principal */
.main-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

/* Header / Perfil */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 6px;
}

.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 14px;
}

.avatar-glow {
  display: none;
}

.profile-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.verified-badge {
  position: absolute;
  bottom: 0px;
  right: 2px;
  background: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
}

.profile-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.profile-username {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  margin-bottom: 8px;
}

.profile-username:hover {
  background: #ffffff;
  color: #000000;
}

.profile-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
  max-width: 320px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.info-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  color: #f3f4f6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-badge i {
  color: #ffffff;
}

/* ==========================================================================
   NOVA SEÇÃO: SITE PREVIEW COM BOTÃO SOBREPOSTO
   Imagem acima do botão, botão sobrepõe parte de baixo da imagem
   ========================================================================== */
.site-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-preview-wrap {
  position: relative;
  width: 100%;
  /* Reserva espaço para metade do botão que fica para fora da imagem */
  padding-bottom: 30px;
}

.site-image-card {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  line-height: 0;
  position: relative;
}

.site-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
  /* Garante que a imagem mantenha proporção elegante em mobile */
  aspect-ratio: 16 / 9;
}

.site-image-card::after {
  /* Gradiente sutil na base da imagem para fusão com o botão */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(5,5,7,0.35) 0%, transparent 100%);
  pointer-events: none;
}

/* Botão que sobrepõe a imagem - escrita em BRANCO */
.btn-site-overlap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  z-index: 3;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* Elevação extra para destacar sobre a imagem */
}

.btn-site-overlap .btn-icon {
  background: #ffffff;
  color: #000000;
}

.btn-site-overlap .btn-label {
  color: #ffffff;
}

.btn-site-overlap .btn-sub {
  color: #d1d5db;
}

.btn-site-overlap .btn-arrow {
  color: #ffffff;
}

.btn-site-overlap:hover {
  background: #111114;
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.btn-site-overlap:active {
  transform: scale(0.98);
}

/* Seção de Links / Botões */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  transform: translateY(-2px);
  background: rgba(26, 26, 32, 0.95);
  border-color: var(--card-hover-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.action-btn:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-right: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}

.action-btn:hover .btn-icon {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.btn-text-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-family: var(--font-heading);
  color: #ffffff;
}

.btn-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.btn-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.action-btn:hover .btn-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* Variações monocromáticas para WhatsApp / Grupo / Instagram */
.btn-whatsapp, .btn-instagram, .btn-group {
  border-color: var(--card-border);
  background: var(--card-bg);
}

.glow-pulse {
  animation: none;
}

/* Seção cabeçalhos genéricos */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-accent {
  color: #ffffff;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.section-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Seção Loja Física / Localização */
.location-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.address-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.address-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.address-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  display: block;
}

.address-street {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.address-city {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.map-wrapper {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 0;
}

.map-wrapper iframe {
  filter: grayscale(90%) invert(92%) hue-rotate(180deg) contrast(1.1);
}

.btn-location {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  padding: 12px 16px;
}

.btn-location .btn-icon {
  background: #000000;
  color: #ffffff;
}

.btn-location .btn-label {
  color: #000000;
}

.btn-location .btn-sub {
  color: #4b5563;
}

.btn-location .btn-arrow {
  color: #000000;
}

.btn-location:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Footer */
.profile-footer {
  text-align: center;
  padding: 12px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-status {
  font-size: 0.72rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Responsividade */
@media (max-width: 380px) {
  body {
    padding: 16px 10px;
  }
  
  .profile-title {
    font-size: 1.4rem;
  }
  
  .badges-row {
    flex-direction: column;
    width: 100%;
  }

  .info-badge {
    justify-content: center;
  }

  .site-preview-wrap {
    padding-bottom: 32px;
  }

  .btn-site-overlap {
    left: 10px;
    right: 10px;
    padding: 11px 12px;
  }

  .btn-site-overlap .btn-icon {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    font-size: 1.15rem;
  }

  .site-image-card img {
    aspect-ratio: 16 / 10;
  }
}

/* Animação suave de entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main-container > * {
  animation: fadeInUp 0.45s ease both;
}
.main-container > *:nth-child(2) { animation-delay: 0.06s; }
.main-container > *:nth-child(3) { animation-delay: 0.12s; }
.main-container > *:nth-child(4) { animation-delay: 0.18s; }
.main-container > *:nth-child(5) { animation-delay: 0.24s; }
