/* =============================================================================
   SPONZAR MY PAGE / PROFILE — PREMIUM AESTHETIC LAYER v3
   Platform color: #609960 | Dark: #4a7a4a
   Supports: [data-bs-theme="dark"] AND body.dark-mode (both signals)
   ============================================================================= */

/* ─── Design tokens ─── */
:root {
  --sp-green:         #609960;
  --sp-green-dark:    #4a7a4a;
  --sp-green-light:   #7ab87a;
  --sp-green-glow:    rgba(96,153,96,.25);
  --sp-green-tint:    rgba(96,153,96,.08);
  --sp-green-tint-md: rgba(96,153,96,.15);
  --profile-trans:    0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --profile-spring:   0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Light theme surface tokens */
  --profile-surface:       #ffffff;
  --profile-surface-alt:   #f9fafb;
  --profile-border:        rgba(0,0,0,.07);
  --profile-text:          #111827;
  --profile-text-muted:    #6b7280;
  --profile-shadow:        0 2px 14px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --profile-shadow-hover:  0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
}

/* Dark theme token overrides */
html[data-bs-theme="dark"],
body.dark-mode {
  --profile-surface:      #1e2028;
  --profile-surface-alt:  #16181e;
  --profile-border:       rgba(255,255,255,.07);
  --profile-text:         #f3f4f6;
  --profile-text-muted:   #9ca3af;
  --profile-shadow:       0 2px 16px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.2);
  --profile-shadow-hover: 0 10px 40px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. COVER — gradient vignette overlay
   ───────────────────────────────────────────────────────────────────────────── */
.jumbotron-cover-user.home {
  border-radius: 0 0 24px 24px !important;
  box-shadow: 0 6px 32px rgba(0,0,0,.2) !important;
}

/* Bottom-to-top gradient vignette */
.jumbotron-cover-user.home::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. AVATAR SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.img-profile-user {
  position: relative;
  z-index: 5;
  margin-top: -75px !important;
  padding-top: 0 !important;
}

/* Avatar ring */
.avatar-wrap {
  overflow: visible !important;
}

.img-profile-user .img-user.avatarUser {
  border: 4px solid #fff !important;
  box-shadow:
    0 0 0 4px var(--sp-green-glow),
    0 8px 32px rgba(0,0,0,.28) !important;
  transition: box-shadow var(--profile-trans), border-color var(--profile-trans);
  object-fit: cover;
  position: relative;
  z-index: 5;
}

/* Dark mode: swap white border for dark surface */
html[data-bs-theme="dark"] .img-profile-user .img-user.avatarUser,
body.dark-mode .img-profile-user .img-user.avatarUser {
  border-color: var(--profile-surface) !important;
}

/* Camera upload overlay */
.button-avatar-upload {
  display: flex !important;
  align-items: center; justify-content: center;
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.7) !important;
  border: 2px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  font-size: 1rem !important;
  transition: background var(--profile-trans), transform var(--profile-spring);
  z-index: 10 !important;
  padding: 0 !important;
}
.button-avatar-upload:hover {
  background: var(--sp-green) !important;
  transform: scale(1.15) !important;
}
.live-span {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 99px;
  text-transform: uppercase; color: #fff;
  box-shadow: 0 2px 10px rgba(239,68,68,.45);
  animation: liveBadgePulse 1.5s ease-in-out infinite;
}
@keyframes liveBadgePulse {
  0%,100% { box-shadow: 0 2px 10px rgba(239,68,68,.4); }
  50%      { box-shadow: 0 2px 20px rgba(239,68,68,.75); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. CREATOR NAME & BADGES
   ───────────────────────────────────────────────────────────────────────────── */
.media-body h4 {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: var(--profile-text) !important;
  margin-bottom: 2px !important;
}

.media-body small.verified {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sp-green) !important;
  color: #fff !important;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px var(--sp-green-glow);
  vertical-align: middle;
  margin-left: 4px;
}
.media-body small.verified i { color: #fff !important; }

.media-body small.text-featured {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #fff !important;
  font-size: 0.75rem;
  vertical-align: middle;
  margin-left: 4px;
  box-shadow: 0 2px 8px rgba(251,191,36,.4);
}

/* Profession / last seen */
.media-body > p {
  color: var(--profile-text-muted) !important;
  font-size: 0.88rem; margin-bottom: 12px !important;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. CTA BUTTON ROW
   ───────────────────────────────────────────────────────────────────────────── */
.d-flex-user {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  justify-content: center;
  margin-bottom: 16px !important;
}

.btn-profile {
  border-radius: 99px !important;
  padding: 9px 22px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center; gap: 6px;
  transition:
    transform var(--profile-spring),
    box-shadow var(--profile-trans),
    filter var(--profile-trans) !important;
}
.btn-profile:hover  { transform: translateY(-2px) scale(1.03) !important; }
.btn-profile:active { transform: translateY(0) scale(0.97) !important; }

/* ── Primary (Edit Page, Subscribe, Book Now) ── */
.btn-profile.btn-primary {
  background: linear-gradient(135deg, var(--sp-green) 0%, var(--sp-green-dark) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--sp-green-glow) !important;
}
.btn-profile.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(96,153,96,.48) !important;
  filter: brightness(1.07) !important;
}

/* ── Dark (Tip, Gift, Message, Share) ── */
.btn-profile.btn-dark {
  background: rgba(15,18,25,.85) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.2) !important;
  backdrop-filter: blur(6px);
}
.btn-profile.btn-dark:hover {
  background: rgba(30,35,45,.92) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.3) !important;
}
/* In light mode make dark buttons legible */
html:not([data-bs-theme="dark"]) body:not(.dark-mode) .btn-profile.btn-dark {
  background: rgba(20,22,30,.8) !important;
  color: #f3f4f6 !important;
}

/* ── Success (Subscribed) ── */
.btn-profile.btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.3) !important;
}

/* ── Warning (Confirm Payment) ── */
.btn-profile.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(245,158,11,.3) !important;
}

/* Report/restrict text links */
.text-center .btn-link.text-danger {
  font-size: 0.78rem; opacity: 0.6;
  transition: opacity var(--profile-trans);
}
.text-center .btn-link.text-danger:hover { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────────────────
   5. PROFILE STATS NAV TABS
   ───────────────────────────────────────────────────────────────────────────── */
.nav-profile {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--profile-border) !important;
  padding: 6px 4px 0 !important;
  margin-top: 14px !important;
  gap: 2px;
}

.nav-profile .nav-link {
  border: none !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition:
    background var(--profile-trans),
    color var(--profile-trans),
    transform var(--profile-spring) !important;
}
.nav-profile .nav-link:hover {
  background: var(--sp-green-tint) !important;
  transform: translateY(-1px);
}
.nav-profile .nav-link.active {
  background: var(--sp-green-tint-md) !important;
}
.nav-profile .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--sp-green);
  border-radius: 99px;
}

/* Count number */
.nav-profile .nav-link small.sm-btn-size {
  display: block;
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: var(--profile-text);
  line-height: 1;
  margin-bottom: 3px;
}

/* Icon + label */
.nav-profile .nav-link a {
  font-size: 0.78rem; font-weight: 700;
  color: var(--profile-text-muted);
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color var(--profile-trans);
}
.nav-profile .nav-link:hover a       { color: var(--sp-green); }
.nav-profile .nav-link.active a      { color: var(--sp-green) !important; }
.nav-profile .nav-link.active a i    { color: var(--sp-green) !important; }
.nav-profile .nav-link a i           { font-size: 1.1rem; }

/* ─────────────────────────────────────────────────────────────────────────────
   6. SIDEBAR CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.rounded-large { border-radius: 18px !important; }

.shadow-large {
  background: var(--profile-surface) !important;
  border: 1px solid var(--profile-border) !important;
  box-shadow: var(--profile-shadow) !important;
  transition: box-shadow var(--profile-trans), transform var(--profile-trans) !important;
}
.shadow-large:hover {
  box-shadow: var(--profile-shadow-hover) !important;
  transform: translateY(-2px);
}

/* Card title label */
.col-lg-4 h6.card-title,
.col-lg-4 .card-title {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--profile-text-muted) !important;
  margin-bottom: 12px !important;
}

/* Goal progress bar */
.card .progress {
  border-radius: 99px !important;
  overflow: hidden;
  background: rgba(96,153,96,.12);
  height: 10px !important;
}
.card .progress-bar.bg-success {
  background: linear-gradient(90deg, var(--sp-green), var(--sp-green-light)) !important;
  border-radius: 99px !important;
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. SOCIAL LINKS
   ───────────────────────────────────────────────────────────────────────────── */
.profile-smart-links a,
.social-link-profile {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--profile-surface-alt);
  color: var(--profile-text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid var(--profile-border);
  transition: background var(--profile-spring), transform var(--profile-spring), color var(--profile-trans);
}
.profile-smart-links a:hover,
.social-link-profile:hover {
  background: var(--sp-green) !important;
  color: #fff !important;
  transform: scale(1.18) translateY(-2px);
  border-color: var(--sp-green) !important;
  box-shadow: 0 4px 16px var(--sp-green-glow);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. SHARE MODAL SOCIAL ICONS
   ───────────────────────────────────────────────────────────────────────────── */
.share-modal .social-share {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px !important;
  border-radius: 14px;
  color: var(--profile-text-muted);
  text-decoration: none !important;
  transition: background var(--profile-trans), transform var(--profile-spring), color var(--profile-trans);
}
.share-modal .social-share:hover {
  background: var(--sp-green-tint);
  transform: translateY(-3px) scale(1.05);
  color: var(--sp-green) !important;
}
.share-modal .social-share i { font-size: 1.8rem !important; margin-bottom: 6px; }

/* ─────────────────────────────────────────────────────────────────────────────
   9. ENTRY ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes profileFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.img-profile-user { animation: profileFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.media-body       { animation: profileFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.06s both; }
.nav-profile      { animation: profileFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.12s both; }

/* ─────────────────────────────────────────────────────────────────────────────
   10. MAIN CONTENT AREA
   ───────────────────────────────────────────────────────────────────────────── */
.container-fluid.container-lg-3.py-4.pb-5 {
  padding-top: 24px !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .jumbotron-cover-user.home { height: 200px !important; border-radius: 0 0 14px 14px !important; }
  .img-profile-user { margin-top: -50px !important; }
  .media-body h4    { font-size: 1.25rem !important; }
  .btn-profile      { padding: 8px 16px !important; font-size: 0.8rem !important; }
  .nav-profile .nav-link { padding: 6px 6px !important; }
}
