/* ═══════════════════════════════════════════════════════════════════════════════
   NORDESTE RP - PAGE-SPECIFIC ENHANCEMENTS
   Estilos por pagina: Home hero, PDP, Checkout, Login
   Trust banners, cart icon fixes, responsividade
   Usa tokens --nr-* de core.css
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   HOME PAGE - HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Titulo hero */
.nr-store .container section h1,
.nr-store .container > div h1:not(header h1) {
  font-weight: var(--nr-fw-black);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

/* Gradiente no texto primario do hero */
.nr-store .container section h1 .text-primary,
.nr-store .container > div h1:not(header h1) .text-primary {
  background: linear-gradient(135deg, var(--nr-primary), var(--nr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Subtitulo hero */
.nr-store .container p.max-w-\[600px\] {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--nr-text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: var(--nr-fw-medium);
}

/* CTA principal hero */
.nr-store .container .btn-primary {
  min-height: 52px;
  font-size: 1rem;
  padding: 14px 28px;
}

/* Grid de produtos - gap */
.nr-store .grid.grid-cols-2,
.nr-store .grid.grid-cols-3,
.nr-store .grid.grid-cols-5 {
  gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Container PDP */
.package-wrapper {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Imagem do produto - proporcao natural */
#package-image {
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
  object-fit: contain;
  height: auto;
  max-height: 400px;
  max-width: 100%;
  width: auto;
}

/* Nome do produto */
#package-name {
  font-weight: var(--nr-fw-black);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--nr-text);
  margin-bottom: 1rem;
}

/* Preco principal com glow */
#package-price {
  font-weight: var(--nr-fw-bold);
  font-size: 2.5rem;
  color: var(--nr-primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 224, 164, 0.3);
}

/* Badges de status no PDP */
#package-stock,
.package-wrapper [class*="bg-white/10"] {
  background: rgba(16, 185, 129, 0.15);
  color: var(--nr-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: var(--nr-fw-semibold);
  border-radius: 999px;
}

/* Badge "Entrega automatica" */
.package-wrapper [class*="bg-primary"] {
  background: linear-gradient(135deg, var(--nr-primary), var(--nr-accent));
  color: var(--nr-bg);
  font-weight: var(--nr-fw-bold);
  box-shadow: 0 0 15px rgba(0, 224, 164, 0.3);
}

/* CTAs no PDP */
.package-wrapper .btn-primary {
  font-size: 1.05rem;
  padding: 14px 24px;
  min-height: 52px;
}

/* CTA secundario PDP */
.package-wrapper .btn-outline {
  background: rgba(16, 19, 24, 0.8);
  border: 2px solid rgba(0, 224, 164, 0.3);
  font-weight: var(--nr-fw-semibold);
}

.package-wrapper .btn-outline:hover {
  background: rgba(0, 224, 164, 0.08);
}

/* Sidebar de beneficios */
.package-wrapper .space-y-4 > div {
  background: var(--nr-grad-surface);
  border: 1px solid rgba(0, 224, 164, 0.08);
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
  transition: border-color 0.2s var(--nr-ease), transform 0.2s var(--nr-ease);
}

.package-wrapper .space-y-4 > div:hover {
  border-color: rgba(0, 224, 164, 0.2);
  transform: translateY(-2px);
}

/* Icones da sidebar */
.package-wrapper [data-lucide="package-check"],
.package-wrapper [data-lucide="shield-check"],
.package-wrapper [data-lucide="credit-card"] {
  color: var(--nr-primary);
  width: 1.5rem;
  height: 1.5rem;
}

/* Lista de variacoes */
#variation-list button {
  background: rgba(16, 19, 24, 0.6);
  border: 1px solid rgba(0, 224, 164, 0.08);
  color: var(--nr-text);
  transition: background 0.2s var(--nr-ease), border-color 0.2s var(--nr-ease);
}

#variation-list button span.font-medium {
  color: rgba(234, 236, 239, 0.95);
}

#variation-list button:hover {
  background: rgba(0, 224, 164, 0.06);
  border-color: rgba(0, 224, 164, 0.2);
}

#variation-list button[data-selected="true"] {
  background: rgba(0, 224, 164, 0.12);
  border-color: var(--nr-primary);
  box-shadow: 0 0 15px rgba(0, 224, 164, 0.15);
}

#variation-list button[data-selected="true"] span.font-medium {
  color: #fff;
}

/* Badge de desconto animado */
.nr-store .package [class*="bg-primary/10"],
.package-wrapper [class*="bg-primary/10"] {
  background: rgba(255, 210, 74, 0.15);
  color: var(--nr-accent);
  border: 1px solid rgba(255, 210, 74, 0.3);
  font-weight: var(--nr-fw-semibold);
  animation: pulse-glow 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

#checkout {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#checkout h1 {
  font-weight: var(--nr-fw-black);
  font-size: 2.25rem;
  color: var(--nr-text);
  margin-bottom: 0.5rem;
}

#checkout h4 {
  font-weight: var(--nr-fw-bold);
  color: var(--nr-text);
  font-size: 1.25rem;
}

/* Inputs especificos do checkout */
#checkout input[type="text"],
#checkout input[type="email"],
#checkout select {
  min-height: 48px;
  font-size: 16px;
  padding: 14px 16px;
}

#checkout input[type="text"]:focus,
#checkout input[type="email"]:focus,
#checkout select:focus {
  background: var(--nr-surface);
}

/* Badge de pagamento seguro */
#checkout [class*="bg-emerald-500/10"] {
  animation: pulse-secure 3s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Glow ambiente decorativo */
.login-page {
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 224, 164, 0.08), transparent 70%);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

/* Card de login glassmorphism */
.login-page .border.border-foreground\/5,
.login-page .rounded-xl {
  background: linear-gradient(135deg, rgba(16, 19, 24, 0.92), rgba(26, 29, 36, 0.75));
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(0, 224, 164, 0.12);
  box-shadow: var(--nr-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--nr-radius-lg);
  position: relative;
  z-index: 1;
}

/* Titulo do login */
.login-page h1 {
  font-weight: var(--nr-fw-black);
  font-size: 1.75rem;
  background: var(--nr-grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botoes de login social */
.login-page button[onclick*="requestGoogle"],
.login-page button[onclick*="requestDiscord"] {
  background: rgba(16, 19, 24, 0.8);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius-sm);
  transition: border-color 0.2s var(--nr-ease), box-shadow 0.2s var(--nr-ease), transform 0.2s var(--nr-ease);
}

/* Google hover - glow azul */
.login-page button[onclick*="requestGoogle"]:hover {
  border-color: #4285F4;
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
  transform: translateY(-2px);
}

/* Discord hover - glow roxo */
.login-page button[onclick*="requestDiscord"]:hover {
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
  transform: translateY(-2px);
}

/* OTP inputs */
.login-page .otp-input {
  transition: border-color 0.2s var(--nr-ease), box-shadow 0.2s var(--nr-ease), transform 0.15s var(--nr-ease);
}

.login-page .otp-input:focus {
  border-color: var(--nr-primary);
  box-shadow: 0 0 0 3px rgba(0, 224, 164, 0.15);
  transform: scale(1.05);
}

/* Botao de submit do login */
.login-page .submit-button {
  min-height: 48px;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CART ICON & BADGE
   ═══════════════════════════════════════════════════════════════════════════════ */

.open-cart {
  position: relative;
  overflow: visible;
}

button.open-cart {
  padding-right: 12px;
  padding-top: 8px;
}

/* Icone do carrinho */
.open-cart i[data-lucide="shopping-cart"],
.open-cart svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 1;
  visibility: visible;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* Badge do carrinho */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--nr-accent);
  color: var(--nr-bg);
  font-size: 9px;
  font-weight: var(--nr-fw-bold);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border: 1px solid var(--nr-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  min-width: 16px;
  min-height: 16px;
  line-height: 1;
  transform: none;
  animation: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TRUST BANNERS - HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.trust-banners {
  margin-top: 3rem;
  width: 100%;
  max-width: 56rem;
}

.trust-banners .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-banners .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Card de confiabilidade */
.trust-banner {
  background: linear-gradient(135deg, rgba(16, 19, 24, 0.9), rgba(26, 29, 36, 0.8));
  border: 1px solid rgba(0, 224, 164, 0.12);
  border-radius: var(--nr-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s var(--nr-ease), border-color 0.3s var(--nr-ease), box-shadow 0.3s var(--nr-ease);
  box-shadow: var(--nr-shadow);
  position: relative;
  overflow: hidden;
}

.trust-banner:hover {
  transform: translateY(-4px);
  border-color: var(--nr-primary);
  box-shadow: var(--nr-shadow-lg), 0 0 20px rgba(0, 224, 164, 0.08);
}

/* Shimmer no hover */
.trust-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 164, 0.05), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.trust-banner:hover::before {
  left: 100%;
}

/* Icone */
.trust-icon {
  background: rgba(0, 224, 164, 0.1);
  border: 1px solid rgba(0, 224, 164, 0.2);
  border-radius: 50%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
}

.trust-icon i {
  color: var(--nr-primary);
  width: 1.5rem;
  height: 1.5rem;
}

/* Conteudo */
.trust-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: var(--nr-fw-black);
  color: var(--nr-primary);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 224, 164, 0.3);
}

.trust-label {
  font-size: 0.875rem;
  font-weight: var(--nr-fw-bold);
  color: var(--nr-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.trust-description {
  font-size: 0.75rem;
  color: var(--nr-text-muted);
  line-height: 1.3;
  font-weight: var(--nr-fw-medium);
}

/* Entrada escalonada */
.trust-banner:nth-child(1) {
  animation: trust-fade-up 0.6s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
  transform: translateY(20px);
}

.trust-banner:nth-child(2) {
  animation: trust-fade-up 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  transform: translateY(20px);
}

.trust-banner:nth-child(3) {
  animation: trust-fade-up 0.6s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER REFINEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

footer h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

footer h4 {
  color: var(--nr-text);
  font-weight: var(--nr-fw-medium);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

footer ul li a {
  font-size: 0.875rem;
  line-height: 1.5;
  display: block;
  padding: 0.25rem 0;
}

footer .text-muted-foreground strong {
  color: var(--nr-primary);
  font-weight: var(--nr-fw-semibold);
}

/* Social icons */
footer .bg-secondary\/10 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .bg-secondary\/10:hover {
  background: rgba(0, 224, 164, 0.1);
  border-color: var(--nr-primary);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE - PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Hero */
  .nr-store .container section h1,
  .nr-store .container > div h1:not(header h1) {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  /* Checkout inputs */
  #checkout input[type="text"],
  #checkout input[type="email"] {
    font-size: 16px; /* Evita zoom no iOS */
  }

  /* PDP image */
  #package-image {
    max-height: 250px;
  }

  /* Cart icon mobile */
  .open-cart i[data-lucide="shopping-cart"],
  .open-cart svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }

  /* Cart button mobile */
  button.open-cart {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  /* Cart badge mobile */
  .cart-badge {
    top: 1px;
    right: 1px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    font-size: 8px;
  }

  /* Trust banners mobile */
  .trust-banners {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .trust-banner {
    padding: 1.25rem;
    gap: 0.875rem;
  }

  .trust-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.625rem;
  }

  .trust-icon i {
    width: 1.25rem;
    height: 1.25rem;
  }

  .trust-number {
    font-size: 1.25rem;
  }

  .trust-label {
    font-size: 0.8125rem;
  }

  .trust-description {
    font-size: 0.6875rem;
  }

  /* Footer mobile */
  footer h3 {
    margin-bottom: 0.75rem;
  }

  /* Pay button mobile */
  #pay-button {
    min-height: 56px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  /* Hero extra pequeno */
  .nr-store .container section h1,
  .nr-store .container > div h1:not(header h1) {
    font-size: 2rem;
  }

  /* PDP precos */
  #package-price {
    font-size: 2rem;
  }

  /* PDP image */
  #package-image {
    max-height: 200px;
  }

  /* Trust banners compact */
  .trust-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }

  .trust-icon {
    margin: 0 auto;
  }

  .trust-content {
    align-items: center;
    text-align: center;
  }

  /* Footer compact */
  footer .text-muted-foreground {
    font-size: 0.8125rem;
  }
}
