/* ==========================================================================
   PERFIL DO USUÁRIO — SIM, ACEITO! (perfil.css)
   Design Moderno, Luxuoso e Serenity Blue (Azul Nobre)
   ========================================================================== */

:root {
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-page: #f0f5fa;
  --bg-card: #ffffff;
  --text-main: #142232;
  --text-muted: #5e768f;
  --border-color: #d0e1f0;
  --primary-blue: #4d7eb8;
  --primary-hover: #3a6a9e;
  --primary-dark: #2a5a8e;
  --accent-blue: #709ed2;
  --accent-light: #eff5fb;
  --radius-card: 20px;
  --radius-btn: 12px;
  --shadow-sm: 0 4px 16px rgba(32, 69, 107, 0.05);
  --shadow-md: 0 10px 30px rgba(77, 126, 184, 0.18);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOPBAR DE NAVEGAÇÃO
   ========================================================================== */
.profile-header-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.profile-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-logo img {
  width: 26px;
  height: 26px;
}

.profile-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-nav-btn:hover {
  border-color: #9dbddf;
  background: #eff5fb;
  color: var(--primary-hover);
}

.profile-nav-btn--master {
  background: #eff5fb;
  border-color: #bfdbfe;
  color: #1e40af;
  font-weight: 700;
}

.profile-nav-btn--master:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.profile-nav-btn--danger {
  color: #dc2626;
  border-color: #fee2e2;
  background: #fef2f2;
}

.profile-nav-btn--danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL
   ========================================================================== */
.profile-main {
  max-width: 1140px;
  width: 100%;
  margin: 1.8rem auto 3.5rem;
  padding: 0 1.25rem;
  flex: 1;
}

/* ==========================================================================
   CARD DO USUÁRIO (HERO LUXUOSO SERENITY)
   ========================================================================== */
.profile-card-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eff5fb 100%);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f 0%, #10233b 100%);
  color: #eff5fb;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #78a2cc;
  box-shadow: 0 0 0 3px rgba(120, 162, 204, 0.28), 0 6px 16px rgba(16, 35, 59, 0.2);
  flex-shrink: 0;
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-user-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-badge--master {
  background: #eff5fb;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.profile-badge--couple {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BOTÃO CRIAR NOVO SITE (AZUL SERENITY)
   ========================================================================== */
.profile-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(54, 96, 137, 0.28);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.profile-create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(54, 96, 137, 0.38);
  filter: brightness(1.06);
}

.profile-create-btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   CABEÇALHO DA SEÇÃO DE SITES
   ========================================================================== */
.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 0.75rem;
}

.profile-section-head__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.profile-section-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-hover);
  background: #eff5fb;
  border: 1px solid #d0e1f0;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
}

/* ==========================================================================
   GRID E CARDS DOS SITES DE CASAMENTO (SERENITY)
   ========================================================================== */
.profile-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.profile-site-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-top: 3.5px solid var(--accent-blue);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.profile-site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #9dbddf;
}

.profile-site-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.profile-site-couple {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.profile-site-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

.profile-site-tag--official {
  background: #eff5fb;
  color: #1e40af;
  border-color: #bfdbfe;
}

.profile-site-link {
  font-size: 0.82rem;
  color: var(--primary-blue);
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 0.65rem;
  display: inline-block;
  font-weight: 600;
}

.profile-site-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.profile-site-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-site-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.55rem;
}

.profile-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.profile-site-btn--primary {
  background: var(--primary-dark);
  color: #ffffff;
  border: 1px solid var(--primary-dark);
}

.profile-site-btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.profile-site-btn--secondary {
  background: #eff5fb;
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
}

.profile-site-btn--secondary:hover {
  background: #ffffff;
  border-color: #9dbddf;
}

/* ==========================================================================
   ESTADO VAZIO
   ========================================================================== */
.profile-empty-state {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-card);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 520px;
  margin: 1rem auto;
}

.profile-empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.profile-empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER DO PERFIL
   ========================================================================== */
.profile-footer {
  text-align: center;
  padding: 1.35rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE
   ========================================================================== */
@media (max-width: 680px) {
  .profile-nav-inner {
    padding: 0.65rem 1rem;
  }
  
  .profile-main {
    margin: 1.2rem auto 2.5rem;
    padding: 0 1rem;
  }

  .profile-card-hero {
    padding: 1.25rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .profile-user-info {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
  }

  .profile-name {
    font-size: 1.35rem;
  }

  .profile-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .profile-hero-actions .profile-nav-btn,
  .profile-hero-actions .profile-create-btn {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .profile-section-title {
    font-size: 1.15rem;
  }

  .profile-sites-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-site-card {
    padding: 1.15rem;
  }

  .profile-site-actions {
    grid-template-columns: 1fr 1.3fr;
    gap: 0.45rem;
  }

  .profile-site-btn {
    font-size: 0.78rem;
    padding: 0.52rem 0.4rem;
  }
}
