/* SharkSales - Correções Minha Conta */

/* ============================================
   FIX CRÍTICO: Garantir visibilidade da página
   mesmo quando body não tem classe ss-account-page
   ============================================ */

/* Se existe .ss-account-container, aplicar estilos básicos */
body:has(.ss-account-container) {
  background: #1a2565 !important;
  min-height: 100vh;
}

/* Container principal - sempre visível */
.ss-account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: calc(var(--ss-header-height, 68px) + 2rem) !important;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Garantir que o conteúdo tenha cores visíveis */
.ss-account-container,
.ss-account-container * {
  color: inherit;
}

.ss-account-container h1,
.ss-account-container h2,
.ss-account-container h3,
.ss-account-container h4 {
  color: #ffffff !important;
}

.ss-account-container p,
.ss-account-container span,
.ss-account-container label {
  color: #d0d8f0;
}

/* Estado de loading */
#loading-state {
  background: linear-gradient(135deg, #2a3575 0%, #354088 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Estado não logado */
#not-logged-state {
  display: block;
}

#not-logged-state .ss-empty-state {
  background: linear-gradient(135deg, #2a3575 0%, #354088 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Estado logado */
#logged-state {
  display: block;
}

/* === WRAPPER GLOBAL === */
.sharksales-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === BOTÃO VOLTAR === */
.sharksales-back-button {
  margin: 0 0 20px;
  padding: 0;
}

.sharksales-back-button .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #d2d6e6;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateX(-2px);
}

.btn-back .back-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* === PÁGINA MINHA CONTA === */
.sharksales-minha-conta {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: 'Inter', sans-serif;
}

.sharksales-minha-conta .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sharksales-minha-conta .page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 24px;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* === TIPOGRAFIA GERAL === */
.sharksales-minha-conta h2,
.sharksales-minha-conta h3,
.sharksales-minha-conta h4,
.sharksales-minha-conta h5,
.sharksales-minha-conta h6 {
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

.sharksales-minha-conta p,
.sharksales-minha-conta span,
.sharksales-minha-conta label,
.sharksales-minha-conta button,
.sharksales-minha-conta a {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

/* === ACCOUNT HEADER === */
.sharksales-minha-conta .account-header {
  background: rgba(26, 27, 35, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sharksales-minha-conta .user-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
}

/* === ACCOUNT SECTIONS === */
.sharksales-minha-conta .account-section {
  background: rgba(26, 27, 35, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sharksales-minha-conta .account-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

/* === BOTÕES === */
.sharksales-minha-conta .btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 0.938rem;
  line-height: 1.4;
}

.sharksales-minha-conta .btn-primary {
  background: linear-gradient(135deg, #6f81ff 0%, #5d70e0 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(111, 129, 255, 0.3);
}

.sharksales-minha-conta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 129, 255, 0.4);
}

.sharksales-minha-conta .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d2d6e6;
}

.sharksales-minha-conta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .sharksales-minha-conta .container {
    padding: 0 16px;
  }
  
  .sharksales-minha-conta .page-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .sharksales-minha-conta .account-header {
    padding: 20px;
  }
  
  .sharksales-minha-conta .account-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .btn-back {
    font-size: 0.813rem;
    padding: 8px 14px;
  }
  
  .sharksales-minha-conta .page-header h1 {
    font-size: 1.75rem;
  }
  
  .sharksales-minha-conta .account-header {
    padding: 16px;
  }
  
  .sharksales-minha-conta .account-section {
    padding: 16px;
    margin-bottom: 16px;
  }
}
