/**
 * Billing CTA styles — header + dashboard column.
 *
 * Covers the primary CTA ("Planos" / "Minha Assinatura") shown in both
 * the desktop nav and mobile menu, plus the Premium status column in
 * the advertiser dashboard listings table and the empty state card on
 * /billing/dashboard/.
 *
 * Mobile-first: base rules target narrow screens, desktop adjustments
 * live in the min-width:1024px block at the bottom.
 */

/* ==========================================================================
   Header CTA — Planos / Minha Assinatura
   ========================================================================== */

.billing-cta {
  white-space: nowrap;
  line-height: 1;
}

.billing-cta .material-symbols-outlined {
  color: var(--gf-color-accent, #f59e0b);
}

.billing-cta--active .material-symbols-outlined {
  color: var(--gf-color-success, #22c55e);
}

/* ==========================================================================
   Dashboard column — Premium badge + CTA
   ========================================================================== */

.dashboard-status-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-status-premium .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

.dashboard-status-premium--active {
  background-color: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.dashboard-status-premium--cta {
  background-color: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border: 1px dashed rgba(34, 197, 94, 0.35);
}

.dashboard-status-premium--cta:hover,
.dashboard-status-premium--cta:focus {
  background-color: rgba(34, 197, 94, 0.18);
  color: #15803d;
  text-decoration: none;
}

/* "Aguardando pagamento" — slot PENDING (sub criada, webhook ainda não veio).
   Evita confusão com Premium ativo (dourado) e com CTA "Ativar" (verde). */
.dashboard-status-premium--pending {
  background-color: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  border: 1px dashed rgba(37, 99, 235, 0.35);
}

.dashboard-status-premium--pending:hover,
.dashboard-status-premium--pending:focus {
  background-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  text-decoration: none;
}

/* ==========================================================================
   Billing dashboard empty state — premium visual
   ========================================================================== */

.billing-empty-state {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 1.25rem 2rem;
  background: var(--gf-surface, #fff);
  border: 1px solid var(--gf-color-border, rgba(0, 0, 0, 0.08));
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.billing-empty-state__hero {
  position: relative;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin: -1.75rem -1.25rem 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(21, 128, 61, 0.14), transparent 60%),
    radial-gradient(circle at 85% 100%, rgba(245, 158, 11, 0.18), transparent 55%),
    linear-gradient(180deg, #f8faf7 0%, #fff 100%);
  border-bottom: 1px solid var(--gf-color-border, rgba(0, 0, 0, 0.06));
}

.billing-empty-state__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.billing-empty-state__badge .material-symbols-outlined {
  font-size: 1rem !important;
}

.billing-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #15803d 0%, #f59e0b 100%);
  box-shadow: 0 10px 25px rgba(21, 128, 61, 0.25);
  margin-bottom: 1rem;
}

.billing-empty-state__icon .material-symbols-outlined {
  font-size: 2.5rem !important;
  color: #fff;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

/* Estado "assinatura cancelada": reusa a estrutura do empty-state, mas
   troca o verde celebratório por tons neutros (slate) — cancelamento é
   informativo, não festivo nem alarmante. */
.billing-empty-state__badge--canceled {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.22);
}

.billing-empty-state__icon--canceled {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  box-shadow: 0 10px 25px rgba(71, 85, 105, 0.22);
}

.billing-empty-state__meta {
  margin: 0.85rem auto 0;
  font-size: 0.85rem;
  color: var(--gf-color-muted, #64748b);
}

.billing-empty-state__meta strong {
  color: #0f172a;
  font-weight: 700;
}

.billing-empty-state__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.billing-empty-state__subtitle {
  color: var(--gf-color-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto;
}

.billing-empty-state__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.billing-empty-state__benefit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--gf-color-border, rgba(0, 0, 0, 0.08));
  border-radius: 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.billing-empty-state__benefit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: rgba(21, 128, 61, 0.2);
}

.billing-empty-state__benefit-icon {
  font-size: 1.5rem !important;
  color: #15803d;
  flex-shrink: 0;
  margin-top: 0.1rem;
  padding: 0.4rem;
  background: rgba(21, 128, 61, 0.1);
  border-radius: 0.6rem;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.billing-empty-state__benefit-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.billing-empty-state__benefit-body strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.billing-empty-state__benefit-body span {
  color: var(--gf-color-muted, #64748b);
  font-size: 0.875rem;
  line-height: 1.45;
}

.billing-empty-state__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.billing-empty-state__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 240px;
}

.billing-empty-state__cta-primary:hover,
.billing-empty-state__cta-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.32);
}

.billing-empty-state__cta-primary .material-symbols-outlined {
  font-size: 1.2rem !important;
  transition: transform 0.15s ease;
}

.billing-empty-state__cta-primary:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.billing-empty-state__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gf-color-muted, #64748b);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.billing-empty-state__cta-secondary:hover,
.billing-empty-state__cta-secondary:focus-visible {
  color: #15803d;
  background: rgba(21, 128, 61, 0.06);
}

.billing-empty-state__cta-secondary .material-symbols-outlined {
  font-size: 1.05rem !important;
}

@media (min-width: 768px) {
  .billing-empty-state {
    padding: 2.5rem 2rem 2.75rem;
    gap: 2rem;
  }

  .billing-empty-state__hero {
    padding: 2.75rem 2rem 2rem;
    margin: -2.5rem -2rem 0;
  }

  .billing-empty-state__title {
    font-size: 2rem;
  }

  .billing-empty-state__subtitle {
    font-size: 1.05rem;
  }

  .billing-empty-state__benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .billing-empty-state__actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .billing-empty-state__hero {
    padding: 3rem 2rem 2.25rem;
  }
}
