/* ==========================================
   DESIGN SYSTEM - CHEF LETÍCIA ÁREA DE MEMBROS
   Design Profissional, Limpo e Sem Emojis
   ========================================== */

:root {
  /* Palette de Cores Refinada */
  --bg-primary: #F8F6F4;         /* Creme Suave Neutro */
  --card-bg: #FFFFFF;            /* Branco Puro */
  --border-subtle: #E8E2DC;      /* Borda Fina Suave */
  --border-active: #D9A066;      /* Borda de Destaque */
  
  --text-dark: #1E293B;          /* Slate Escuro Principal */
  --text-muted: #64748B;         /* Slate Secundário */
  --text-light: #94A3B8;         /* Texto Muted */
  
  --brand-gold: #C58038;         /* Dourado / Bronze Elegante */
  --brand-gold-hover: #B06F2A;   /* Dourado Dark */
  --brand-gold-light: #FAF4ED;   /* Fundo Dourado Suave */
  
  --badge-green-bg: #ECFDF5;     /* Verde Fundo */
  --badge-green-border: #A7F3D0; /* Verde Borda */
  --badge-green-text: #047857;   /* Verde Texto */
  
  --badge-locked-bg: #F1F5F9;    /* Cinza Fundo */
  --badge-locked-border: #CBD5E1;/* Cinza Borda */
  --badge-locked-text: #475569;  /* Cinza Texto */

  --tag-bonus-bg: #FFFBEB;       /* Âmbar Fundo */
  --tag-bonus-border: #FDE68A;   /* Âmbar Borda */
  --tag-bonus-text: #B45309;     /* Âmbar Texto */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 10px 25px -4px rgba(30, 41, 59, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}


/* ==========================================
   🎬 PRELOADER SÓBRIO (4 FASES)
   ========================================== */

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.preloader-icon-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.preloader-icon {
  position: absolute;
  transition: all 0.35s ease;
}

.preloader-icon.phase-hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.preloader-icon.phase-active {
  opacity: 1;
  transform: scale(1);
}

.silver-lock-svg {
  width: 48px;
  height: 48px;
  color: #64748B;
}

.check-circle-pulse {
  width: 52px;
  height: 52px;
  background: #ECFDF5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #10B981;
}

.green-check-svg {
  width: 28px;
  height: 28px;
  color: #10B981;
}

.preloader-text-wrapper {
  margin-bottom: 20px;
  min-height: 60px;
}

.preloader-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.preloader-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.preloader-progress-track {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand-gold);
  border-radius: 10px;
  transition: width 0.4s ease;
}


/* ==========================================
   🔒 TELA DE ACESSO NÃO AUTORIZADO
   ========================================== */

.unauthorized-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.unauthorized-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 40px 28px;
  text-align: center;
}

.unauthorized-icon-badge {
  width: 56px;
  height: 56px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #EF4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.unauthorized-icon-badge svg {
  width: 28px;
  height: 28px;
}

.unauthorized-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #DC2626;
  background: #FEE2E2;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.unauthorized-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.unauthorized-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.unauthorized-footer {
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}


/* ==========================================
   🏠 DASHBOARD PRINCIPAL DA ÁREA DE MEMBROS
   ========================================== */

.dashboard-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Banner de Topo Completo Sem Cortes */
.top-banner-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0 24px;
}

.top-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .top-banner-container {
    padding: 12px 16px 0 16px;
  }
}

/* Header Banner */
.header-banner {
  padding: 20px 24px 28px 24px;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.chef-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-gold);
  box-shadow: var(--shadow-sm);
}

.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--brand-gold);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  border: 2px solid #FFF;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.vip-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-gold);
}

.header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.header-greeting {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card de Progresso */
.progress-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 240px;
  box-shadow: var(--shadow-sm);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.progress-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.progress-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand-gold);
  border-radius: 10px;
  transition: width 0.6s ease;
}


/* Main Container */
.main-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

@media (max-width: 680px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   📦 CARDS OTIMIZADOS (ESTRUTURA DE 2 BLOCOS)
   Sem Espaço Branco Vazio + Imagens Maiores
   ========================================== */

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.product-card.card-featured {
  border: 1px solid var(--brand-gold);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6F2 100%);
}

/* Bloco Superior: Imagem Ampliada + Informações */
.card-main-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

/* Miniatura da Capa Ampliada (110px x 110px no Desktop / 100px x 100px no Mobile) */
.card-thumb-wrapper {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #F8FAFC;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detalhes do Produto */
.card-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-header-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* Badges Compactas sem Quebra de Linha */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-unlocked {
  background-color: var(--badge-green-bg);
  border: 1px solid var(--badge-green-border);
  color: var(--badge-green-text);
}

.badge-unlocked .badge-dot {
  background-color: #10B981;
}

.badge-locked {
  background-color: var(--badge-locked-bg);
  border: 1px solid var(--badge-locked-border);
  color: var(--badge-locked-text);
}

.badge-locked .badge-dot {
  background-color: #64748B;
}

.badge-bonus {
  background-color: var(--tag-bonus-bg);
  border: 1px solid var(--tag-bonus-border);
  color: var(--tag-bonus-text);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Bloqueado */
.product-card.card-locked {
  background-color: #FAF8F5;
  border-color: #E5DDD5;
}

.product-card.card-locked .card-thumb-wrapper {
  filter: grayscale(30%);
  opacity: 0.8;
}

.product-card.card-locked .card-title {
  color: #475569;
}

/* Bloco Inferior: Botões de Ação ocupando 100% da largura do card */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}


/* ==========================================
   🔘 BOTÕES E CTAS CLEAN
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex: 1;
}

.btn-primary-gold {
  background-color: var(--brand-gold);
  color: #FFFFFF;
}

.btn-primary-gold:hover {
  background-color: var(--brand-gold-hover);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-subtle);
}

.btn-secondary-outline:hover {
  background-color: var(--brand-gold-light);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-unlock-cta {
  background-color: #10B981;
  color: #FFFFFF;
  width: 100%;
}

.btn-unlock-cta:hover {
  background-color: #059669;
}


/* ==========================================
   🦶 RODAPÉ DISCRETO
   ========================================== */

.main-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 24px;
  margin-top: auto;
  text-align: center;
}

.footer-container p {
  font-size: 0.78rem;
  color: var(--text-light);
}


/* RESPONSIVIDADE MOBILE */
@media (max-width: 520px) {
  .product-card {
    padding: 12px;
    gap: 12px;
  }

  .card-main-info {
    gap: 12px;
  }

  .card-thumb-wrapper {
    width: 96px;
    height: 96px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-description {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
    padding: 9px 12px;
  }
}
