/* Instagram-style profile header (H2 Photography Studios) */

.toolbar--profile {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .toolbar--profile {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

.toolbar-logo-sm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.toolbar-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.toolbar-logo-sm .toolbar-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 400px) {
  .toolbar-logo-sm .toolbar-brand-name {
    font-size: 0.85rem;
  }
}

.btn-book {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.profile-header {
  text-align: center;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--profile-header-bg, #000);
  border-bottom: 1px solid var(--profile-header-border, rgba(255, 255, 255, 0.08));
  overflow: visible;
}

[data-theme="light"] .profile-header {
  --profile-header-bg: var(--bg);
  --profile-header-border: var(--border);
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-avatar-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600), var(--orange-800));
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.45);
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  background: #0a0a0a;
  object-fit: cover;
}

.profile-avatar-ring img[src*='h2-studio-logo'] {
  object-fit: contain;
  padding: 8px;
}

[data-theme="light"] .profile-avatar-ring img {
  border-color: var(--bg-elevated);
  background: var(--bg-elevated);
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 0.35rem;
  padding: 6px 0;
  overflow: visible;
  max-width: 100%;
}

.profile-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Image badge — bypasses inline-SVG text-line clipping (all browsers) */
.verified-badge-img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: none !important;
  max-height: none !important;
  flex: 0 0 22px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.profile-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  max-width: 28ch;
  margin: 0 auto 1.1rem;
  line-height: 1.4;
}

.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.1rem;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.profile-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.profile-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-bio {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36ch;
  margin: 0 auto 1.25rem;
}

.profile-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 320px;
  margin: 0 auto;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform 0.15s;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.btn-whatsapp:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-email-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn-email-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Floating WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 140;
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.whatsapp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

body.tab-reels .whatsapp-fab {
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 1rem);
}

/* Home tab dark band */
#tab-home .profile-header + .stories-section {
  background: var(--profile-header-bg, #000);
  padding-top: 0.5rem;
}

[data-theme="light"] #tab-home .profile-header + .stories-section {
  background: var(--bg);
}

#tab-home .feed-section {
  padding-top: 0.5rem;
}
