/* ================================================================
   profile_style.css — Alizay Beauty · Lavender & Purple Theme
   Inspired by Treatwell & Fresha profile pages
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --pf-plum:         #3b0764;
  --pf-purple-dark:  #6d28d9;
  --pf-purple:       #7c3aed;
  --pf-purple-soft:  #a78bfa;
  --pf-purple-light: #ddd6fe;
  --pf-purple-pale:  #f5f3ff;
  --pf-lavender:     #ede9fe;
  --pf-cream:        #faf9ff;
  --pf-white:        #ffffff;
  --pf-text:         #1e1b4b;
  --pf-text-muted:   #6b7280;
  --pf-text-light:   #9ca3af;
  --pf-border:       rgba(167,139,250,0.25);
  --pf-shadow-sm:    0 1px 8px rgba(109,40,217,0.07);
  --pf-shadow-md:    0 6px 24px rgba(109,40,217,0.12);
  --pf-gradient:     linear-gradient(135deg, #3b0764 0%, #5b21b6 40%, #7c3aed 75%, #a78bfa 100%);
  --pf-radius:       12px;
  --pf-transition:   0.22s ease;
}

/* ── Base ───────────────────────────────────────────────────── */
.pf-page {
  background: var(--pf-cream);
  min-height: 80vh;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--pf-text);
}

/* ================================================================
   HERO BANNER
   ================================================================ */
.pf-hero {
  background: var(--pf-gradient);
  padding: 36px 0 56px;
  position: relative;
  overflow: hidden;
}
.pf-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.pf-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.pf-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.pf-hero__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--pf-white);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.pf-hero__info { flex: 1; min-width: 0; }
.pf-hero__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--pf-white);
  margin: 0 0 3px;
  line-height: 1.15;
}
.pf-hero__email {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 10px;
}
.pf-hero__edit {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50px;
  padding: 5px 13px;
  text-decoration: none;
  transition: all var(--pf-transition);
}
.pf-hero__edit:hover {
  background: rgba(255,255,255,0.22);
  color: var(--pf-white);
}

/* Stats strip (overlapping hero bottom) */
.pf-stats-wrap {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding: 0 0 28px;
}
.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pf-stat {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--pf-shadow-md);
}
.pf-stat__icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--pf-purple-pale);
  border: 1px solid var(--pf-purple-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--pf-purple);
  flex-shrink: 0;
}
.pf-stat__num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--pf-text);
  line-height: 1;
  display: block;
}
.pf-stat__label {
  font-size: 11px; font-weight: 600;
  color: var(--pf-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
@media (max-width: 575px) {
  .pf-stats { grid-template-columns: 1fr; gap: 10px; }
  .pf-stats-wrap { margin-top: -20px; }
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.pf-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) {
  .pf-layout { grid-template-columns: 1fr; }
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.pf-sidebar {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.pf-sidebar__section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-text-light);
  padding: 14px 16px 6px;
}
.pf-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pf-text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 0;
  transition: all var(--pf-transition);
  position: relative;
  border-left: 3px solid transparent;
}
.pf-nav-item:hover {
  background: var(--pf-purple-pale);
  color: var(--pf-purple-dark);
  text-decoration: none;
  border-left-color: var(--pf-purple-light);
}
.pf-nav-item.active {
  background: var(--pf-purple-pale);
  color: var(--pf-purple-dark);
  font-weight: 700;
  border-left-color: var(--pf-purple);
}
.pf-nav-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--pf-purple-pale);
  border: 1px solid var(--pf-purple-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--pf-purple);
  transition: all var(--pf-transition);
}
.pf-nav-item:hover .pf-nav-icon,
.pf-nav-item.active .pf-nav-icon {
  background: var(--pf-gradient);
  border-color: transparent;
  color: var(--pf-white);
}
.pf-sidebar__divider {
  height: 1px;
  background: var(--pf-border);
  margin: 6px 0;
}
.pf-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 16px 14px;
  transition: all var(--pf-transition);
  border-left: 3px solid transparent;
}
.pf-signout:hover {
  background: #fef2f2;
  border-left-color: #fca5a5;
  color: #b91c1c;
}
.pf-signout-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: #fef2f2; border: 1px solid #fecaca;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #dc2626;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.pf-main { display: flex; flex-direction: column; gap: 22px; }

/* Section heading */
.pf-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--pf-text); margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.pf-section-title span {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--pf-purple-dark);
  background: var(--pf-purple-pale);
  border: 1px solid var(--pf-purple-light);
  padding: 2px 8px; border-radius: 50px;
}

/* ── Upcoming appointments panel ─────────────────────────────── */
.pf-upcoming-panel {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow-sm);
  overflow: hidden;
}
.pf-upcoming-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--pf-border);
}
.pf-upcoming-panel__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--pf-text); margin: 0;
}
.pf-view-all {
  font-size: 11px; font-weight: 600;
  color: var(--pf-purple-dark);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--pf-transition);
}
.pf-view-all:hover { color: var(--pf-purple); }

/* Appointment row */
.pf-appt-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--pf-border);
  text-decoration: none; color: inherit;
  transition: background var(--pf-transition);
}
.pf-appt-row:last-of-type { border-bottom: none; }
.pf-appt-row:hover { background: var(--pf-purple-pale); }

.pf-appt-date-box {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--pf-gradient);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; text-align: center;
  box-shadow: 0 3px 10px rgba(124,58,237,0.28);
}
.pf-appt-date-box__day {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--pf-white); line-height: 1;
}
.pf-appt-date-box__mon {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.pf-appt-info { flex: 1; min-width: 0; }
.pf-appt-name {
  font-size: 12px; font-weight: 700;
  color: var(--pf-text); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-appt-meta {
  font-size: 11px; color: var(--pf-text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pf-appt-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #d1fae5; color: #065f46;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 50px;
}
.pf-appt-chevron { color: var(--pf-text-light); flex-shrink: 0; }

/* Empty state */
.pf-no-appts {
  padding: 32px 20px; text-align: center;
}
.pf-no-appts__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--pf-purple-pale); border: 1px solid var(--pf-purple-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--pf-purple);
}
.pf-no-appts__title {
  font-size: 13px; font-weight: 700; color: var(--pf-text); margin-bottom: 5px;
}
.pf-no-appts__sub { font-size: 12px; color: var(--pf-text-muted); margin-bottom: 16px; }
.pf-book-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: var(--pf-gradient); color: var(--pf-white);
  border-radius: 50px; font-size: 12px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124,58,237,0.28);
  transition: all var(--pf-transition);
}
.pf-book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
  color: var(--pf-white);
}

/* ── Quick actions grid ─────────────────────────────────────── */
.pf-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 767px) {
  .pf-actions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .pf-actions-grid { grid-template-columns: 1fr; }
}

.pf-action-link {
  display: block; text-decoration: none; color: inherit;
}
.pf-action-card {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--pf-transition);
  position: relative; overflow: hidden;
  cursor: pointer;
}
.pf-action-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--pf-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--pf-transition);
}
.pf-action-link:hover .pf-action-card,
.pf-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pf-shadow-md);
  border-color: rgba(167,139,250,0.4);
}
.pf-action-link:hover .pf-action-card::after { transform: scaleX(1); }

.pf-action-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--pf-purple-pale);
  border: 1px solid var(--pf-purple-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 11px; color: var(--pf-purple);
  transition: all var(--pf-transition);
}
.pf-action-link:hover .pf-action-icon,
.pf-action-card:hover .pf-action-icon {
  background: var(--pf-gradient);
  border-color: transparent; color: var(--pf-white);
}
.pf-action-title {
  font-size: 12px; font-weight: 700; color: var(--pf-text); margin-bottom: 4px;
}
.pf-action-desc { font-size: 11px; color: var(--pf-text-muted); line-height: 1.5; }

/* ── Shared back link (used on personal detail, upcoming, my bookings) ── */
.personal-back-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--pf-text-muted);
  border: 1px solid var(--pf-border);
  background: var(--pf-white);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.22s ease;
}
.personal-back-link:hover {
  border-color: var(--pf-purple-light);
  color: var(--pf-purple-dark);
  background: var(--pf-purple-pale);
}
