/* =========================================================
   BEAUTYHUB — DESIGN SYSTEM
   ========================================================= */

:root{
  --bh-primary: #8E3A6B;
  --bh-primary-dark: #6E2B52;
  --bh-secondary: #D98AAE;
  --bh-gold: #E7B86A;
  --bh-gold-dark: #C99548;
  --bh-bg: #FFF8FA;
  --bh-dark: #2B1B24;
  --bh-white: #FFFFFF;
  --bh-muted: #8A7482;
  --bh-border: #F0DEE6;
  --bh-shadow: 0 10px 30px rgba(142,58,107,0.10);
  --bh-shadow-lg: 0 20px 50px rgba(142,58,107,0.16);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
}

*{box-sizing:border-box;}

body{
  font-family: var(--font-body);
  background: var(--bh-bg);
  color: var(--bh-dark);
  margin:0;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,.font-heading{
  font-family: var(--font-heading);
  color: var(--bh-dark);
  font-weight:700;
}

a{ text-decoration:none; color: inherit; }
img{ max-width:100%; display:block; }

.container{ max-width:1240px; }

::selection{ background: var(--bh-secondary); color:#fff; }

/* ---------- Buttons ---------- */
.bh-btn-primary{
  background: linear-gradient(135deg, var(--bh-primary), var(--bh-primary-dark));
  color:#fff; border:none; padding:13px 28px; border-radius: 50px;
  font-weight:600; font-size:.95rem; transition:.25s ease; box-shadow: var(--bh-shadow);
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
}
.bh-btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--bh-shadow-lg); color:#fff; }

.bh-btn-gold{
  background: linear-gradient(135deg, var(--bh-gold), var(--bh-gold-dark));
  color: var(--bh-dark); border:none; padding:11px 22px; border-radius:50px;
  font-weight:600; font-size:.9rem; transition:.25s ease;
}
.bh-btn-gold:hover{ transform: translateY(-2px); color: var(--bh-dark); }

.bh-btn-outline{
  border:1.5px solid var(--bh-primary); color: var(--bh-primary);
  padding:10px 22px; border-radius:50px; font-weight:600; font-size:.9rem; transition:.2s;
}
.bh-btn-outline:hover{ background: var(--bh-primary); color:#fff; }

.bh-btn-ghost{
  color: var(--bh-dark); font-weight:500; padding:10px 16px; border:none; background:none;
}
.bh-btn-ghost:hover{ color: var(--bh-primary); }

.bh-btn-sm{ padding:8px 16px; font-size:.82rem; }

/* ---------- Navbar ---------- */
.bh-navbar{
  position: sticky; top:0; z-index:1000;
  background: rgba(255,248,250,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bh-border);
  padding: 14px 0;
}
.bh-logo{ display:flex; align-items:center; gap:10px; font-family: var(--font-heading); font-size:1.5rem; font-weight:700; }
.bh-logo-mark{
  width:38px;height:38px;border-radius:50%;
  background: linear-gradient(135deg, var(--bh-primary), var(--bh-gold));
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.1rem;
}
.bh-logo-text em{ font-style:normal; color: var(--bh-primary); }

.bh-nav-links{ gap:30px; }
.bh-nav-links a{ font-size:.92rem; font-weight:500; color: var(--bh-dark); position:relative; padding:6px 0; }
.bh-nav-links a:hover{ color: var(--bh-primary); }
.bh-nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--bh-gold); transition:.25s;
}
.bh-nav-links a:hover::after{ width:100%; }

.bh-nav-actions{ gap:8px; }

.bh-mobile-toggle{ background:none; border:none; font-size:1.4rem; color: var(--bh-primary); }
.bh-mobile-menu{
  display:none; flex-direction:column; padding: 10px 24px 20px; gap:14px;
  background: var(--bh-white); border-top:1px solid var(--bh-border);
}
.bh-mobile-menu.open{ display:flex; }
.bh-mobile-menu a{ font-weight:500; padding:6px 0; border-bottom:1px solid var(--bh-border); }
.bh-mobile-menu a.text-gold{ color: var(--bh-gold-dark); font-weight:600; }

/* ---------- Hero ---------- */
.bh-hero{
  position:relative; overflow:hidden;
  background: linear-gradient(160deg, #FFF8FA 0%, #FCEEF3 55%, #FBE6EE 100%);
  padding: 90px 0 70px;
}
.bh-hero-blob{
  position:absolute; border-radius:50%; filter: blur(60px); opacity:.35; z-index:0;
  animation: float 8s ease-in-out infinite;
}
.bh-hero-blob.b1{ width:280px;height:280px; background: var(--bh-secondary); top:-60px; right:8%; }
.bh-hero-blob.b2{ width:200px;height:200px; background: var(--bh-gold); bottom:-40px; left:4%; animation-delay:2s; }
@keyframes float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-20px);} }

.bh-hero-content{ position:relative; z-index:2; text-align:center; max-width:780px; margin:0 auto; }
.bh-hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; background:#fff; color: var(--bh-primary);
  padding:7px 18px; border-radius:50px; font-size:.8rem; font-weight:600; box-shadow: var(--bh-shadow); margin-bottom:22px;
}
.bh-hero h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height:1.15; margin-bottom:18px; }
.bh-hero h1 span{ color: var(--bh-primary); }
.bh-hero p.lead{ color: var(--bh-muted); font-size:1.08rem; margin-bottom:36px; }

/* Search Box */
.bh-search-box{
  background:#fff; border-radius: 20px; box-shadow: var(--bh-shadow-lg);
  padding: 14px; display:flex; gap:10px; flex-wrap:wrap; position:relative; z-index:3;
}
.bh-search-field{
  flex:1; min-width:170px; display:flex; flex-direction:column; padding:8px 16px;
  border-right:1px solid var(--bh-border);
}
.bh-search-field:last-of-type{ border-right:none; }
.bh-search-field label{ font-size:.72rem; color: var(--bh-muted); font-weight:600; text-transform:uppercase; letter-spacing:.03em; margin-bottom:3px;}
.bh-search-field input, .bh-search-field select{
  border:none; outline:none; font-family:var(--font-body); font-size:.94rem; background:transparent; width:100%;
}
.bh-search-submit{ display:flex; align-items:center; }

/* ---------- Sections ---------- */
.bh-section{ padding: 70px 0; }
.bh-section-title{ text-align:center; max-width:640px; margin:0 auto 44px; }
.bh-eyebrow{
  display:inline-block; color: var(--bh-primary); font-weight:700; font-size:.8rem;
  text-transform:uppercase; letter-spacing:.09em; margin-bottom:10px;
}
.bh-section-title h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.bh-section-title p{ color: var(--bh-muted); margin-top:10px; }

/* ---------- Category Cards ---------- */
.bh-cat-card{
  background:#fff; border-radius: var(--radius); padding: 26px 20px; text-align:center;
  box-shadow: var(--bh-shadow); transition:.28s ease; border:1px solid transparent; height:100%;
}
.bh-cat-card:hover{ transform: translateY(-6px); box-shadow: var(--bh-shadow-lg); border-color: var(--bh-secondary); }
.bh-cat-icon{ font-size:2.1rem; margin-bottom:12px; }
.bh-cat-card h5{ font-family:var(--font-heading); margin-bottom:6px; }
.bh-cat-card p{ color: var(--bh-muted); font-size:.84rem; margin-bottom:8px; }
.bh-cat-count{ font-size:.76rem; color: var(--bh-gold-dark); font-weight:600; }

/* ---------- Artist Cards ---------- */
.bh-artist-card{
  background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--bh-shadow);
  transition:.28s ease; height:100%; display:flex; flex-direction:column; position:relative;
}
.bh-artist-card:hover{ transform: translateY(-6px); box-shadow: var(--bh-shadow-lg); }
.bh-artist-photo-wrap{ position:relative; aspect-ratio: 4/3; overflow:hidden; background:#f2dbe4;}
.bh-artist-photo-wrap img{ width:100%; height:100%; object-fit:cover; transition:.4s ease; }
.bh-artist-card:hover .bh-artist-photo-wrap img{ transform: scale(1.06); }
.bh-verified-badge{
  position:absolute; top:12px; left:12px; background:#fff; color: var(--bh-primary);
  font-size:.72rem; font-weight:700; padding:4px 10px; border-radius:50px; box-shadow: var(--bh-shadow);
  display:flex; align-items:center; gap:4px;
}
.bh-save-btn{
  position:absolute; top:12px; right:12px; width:34px; height:34px; border-radius:50%;
  background: rgba(255,255,255,0.92); display:flex; align-items:center; justify-content:center;
  color: var(--bh-primary); border:none; transition:.2s;
}
.bh-save-btn:hover{ background: var(--bh-primary); color:#fff; }
.bh-save-btn.active{ background: var(--bh-primary); color:#fff; }

.bh-artist-body{ padding: 18px 18px 20px; flex:1; display:flex; flex-direction:column; }
.bh-artist-body h5{ font-family:var(--font-heading); margin-bottom:2px; font-size:1.08rem; }
.bh-artist-loc{ color: var(--bh-muted); font-size:.8rem; margin-bottom:6px; }
.bh-artist-service-tag{
  display:inline-block; background: #FBEAF1; color: var(--bh-primary); font-size:.72rem; font-weight:600;
  padding:3px 10px; border-radius:50px; margin-bottom:10px; width:fit-content;
}
.bh-artist-rating{ font-size:.82rem; color: var(--bh-gold-dark); margin-bottom:10px; }
.bh-artist-rating i{ font-size:.78rem; }
.bh-artist-price{ font-weight:700; color: var(--bh-primary); margin-top:auto; margin-bottom:12px; }
.bh-artist-actions{ display:flex; gap:8px; }
.bh-artist-actions .bh-btn-primary, .bh-artist-actions .bh-btn-outline{ flex:1; text-align:center; padding:9px 10px; font-size:.82rem; }

/* ---------- Location Cards ---------- */
.bh-loc-card{
  position:relative; border-radius: var(--radius); overflow:hidden; height:180px;
  display:flex; align-items:flex-end; box-shadow: var(--bh-shadow); transition:.25s;
}
.bh-loc-card:hover{ transform: translateY(-5px); box-shadow: var(--bh-shadow-lg); }
.bh-loc-card::before{
  content:''; position:absolute; inset:0; background: linear-gradient(135deg, var(--bh-primary), rgba(43,27,36,.55));
}
.bh-loc-card-body{ position:relative; z-index:2; padding:18px; color:#fff; }
.bh-loc-card-body h5{ color:#fff; margin-bottom:2px; font-size:1.1rem; }
.bh-loc-card-body span{ font-size:.78rem; opacity:.9; }

/* ---------- How It Works ---------- */
.bh-step-card{ text-align:center; padding: 20px; }
.bh-step-num{
  width:64px;height:64px;border-radius:50%; margin:0 auto 16px;
  background: linear-gradient(135deg, var(--bh-primary), var(--bh-gold));
  color:#fff; display:flex; align-items:center; justify-content:center; font-family: var(--font-heading);
  font-size:1.4rem; font-weight:700; box-shadow: var(--bh-shadow);
}
.bh-step-card h5{ margin-bottom:8px; }
.bh-step-card p{ color: var(--bh-muted); font-size:.88rem; }

/* ---------- Why BeautyHub ---------- */
.bh-feature-card{ display:flex; gap:16px; padding:18px 0; }
.bh-feature-icon{
  width:52px;height:52px;border-radius:14px; flex-shrink:0; background:#FBEAF1; color: var(--bh-primary);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
}
.bh-feature-card h6{ margin-bottom:4px; }
.bh-feature-card p{ color: var(--bh-muted); font-size:.86rem; margin:0; }

/* ---------- Testimonials ---------- */
.bh-testimonial-card{
  background:#fff; border-radius: var(--radius); padding:26px; box-shadow: var(--bh-shadow); height:100%;
}
.bh-testimonial-card .stars{ color: var(--bh-gold-dark); margin-bottom:10px; }
.bh-testimonial-card p{ color: var(--bh-dark); font-size:.92rem; font-style:italic; }
.bh-testimonial-user{ display:flex; align-items:center; gap:10px; margin-top:16px; }
.bh-testimonial-user img{ width:42px;height:42px;border-radius:50%; object-fit:cover; }
.bh-testimonial-user strong{ font-size:.86rem; display:block; }
.bh-testimonial-user span{ font-size:.75rem; color: var(--bh-muted); }

/* ---------- Artist CTA ---------- */
.bh-cta-band{
  background: linear-gradient(135deg, var(--bh-primary), var(--bh-primary-dark));
  border-radius: 28px; padding: 56px 40px; color:#fff; text-align:center; position:relative; overflow:hidden;
}
.bh-cta-band h2{ color:#fff; }
.bh-cta-band p{ opacity:.9; max-width:520px; margin:10px auto 26px; }

/* ---------- Footer ---------- */
.bh-footer{ background: var(--bh-dark); color:#E9DCE2; padding: 60px 0 20px; margin-top:40px; }
.bh-footer h5.footer-brand{ color:#fff; font-size:1.4rem; }
.bh-footer h5.footer-brand em{ font-style:normal; color: var(--bh-gold); }
.bh-footer .footer-tagline{ color:#C7A9B7; font-size:.85rem; }
.bh-footer h6{ color:#fff; font-size:.9rem; margin-bottom:14px; text-transform:uppercase; letter-spacing:.05em; }
.bh-footer ul{ list-style:none; padding:0; margin:0; }
.bh-footer ul li{ margin-bottom:9px; }
.bh-footer ul li a{ color:#C7A9B7; font-size:.86rem; transition:.2s; }
.bh-footer ul li a:hover{ color: var(--bh-gold); }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-social a{
  width:36px;height:36px;border-radius:50%; background: rgba(255,255,255,0.08); display:flex; align-items:center;
  justify-content:center; color:#fff; transition:.2s;
}
.footer-social a:hover{ background: var(--bh-gold); color: var(--bh-dark); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); margin-top:36px; padding-top:20px; text-align:center; font-size:.8rem; color:#9c8590; }

/* ---------- Flash Toasts ---------- */
.flash-wrap{ position:fixed; top:90px; right:20px; z-index:2000; display:flex; flex-direction:column; gap:10px; max-width:320px; }
.flash-toast{ box-shadow: var(--bh-shadow-lg); border:none; border-radius:12px; animation: slideIn .35s ease; }
@keyframes slideIn{ from{ opacity:0; transform: translateX(30px);} to{ opacity:1; transform:none; } }

/* ---------- Generic Cards / Forms ---------- */
.bh-card{ background:#fff; border-radius: var(--radius); box-shadow: var(--bh-shadow); padding:28px; }
.bh-form label{ font-weight:600; font-size:.86rem; margin-bottom:6px; }
.bh-form .form-control, .bh-form .form-select{
  border-radius: 10px; border:1.5px solid var(--bh-border); padding:11px 14px; font-size:.92rem;
}
.bh-form .form-control:focus, .bh-form .form-select:focus{
  border-color: var(--bh-primary); box-shadow: 0 0 0 3px rgba(142,58,107,0.12);
}
.bh-auth-wrap{ min-height:80vh; display:flex; align-items:center; justify-content:center; padding: 60px 16px; }
.bh-auth-card{ max-width:460px; width:100%; }

/* ---------- Badges / Status pills ---------- */
.bh-pill{ display:inline-block; padding:4px 12px; border-radius:50px; font-size:.74rem; font-weight:600; }
.bh-pill-pending{ background:#FFF4DC; color:#9A6B00; }
.bh-pill-confirmed, .bh-pill-approved, .bh-pill-paid, .bh-pill-active{ background:#E4F6EA; color:#1E7B41; }
.bh-pill-cancelled, .bh-pill-rejected, .bh-pill-suspended{ background:#FDEAEA; color:#B23838; }
.bh-pill-completed{ background:#E6EEFC; color:#2A56B5; }

/* ---------- Dashboard shell ---------- */
.bh-dash-shell{ display:flex; min-height:80vh; }
.bh-dash-sidebar{
  width:250px; background:#fff; border-right:1px solid var(--bh-border); padding:26px 16px; flex-shrink:0;
}
.bh-dash-sidebar a{
  display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px; font-size:.88rem;
  font-weight:500; color: var(--bh-dark); margin-bottom:4px;
}
.bh-dash-sidebar a:hover, .bh-dash-sidebar a.active{ background: #FBEAF1; color: var(--bh-primary); }
.bh-dash-main{ flex:1; padding: 30px; }
.bh-stat-card{ background:#fff; border-radius: var(--radius-sm); padding:20px; box-shadow: var(--bh-shadow); }
.bh-stat-card .num{ font-family: var(--font-heading); font-size:1.8rem; font-weight:700; color: var(--bh-primary); }
.bh-stat-card .label{ font-size:.8rem; color: var(--bh-muted); }

@media (max-width: 991px){
  .bh-dash-shell{ flex-direction:column; }
  .bh-dash-sidebar{ width:100%; display:flex; overflow-x:auto; gap:4px; border-right:none; border-bottom:1px solid var(--bh-border); padding:14px; }
  .bh-dash-sidebar a{ white-space:nowrap; margin-bottom:0; }
}

/* ---------- Skeleton loading ---------- */
.skeleton{ background: linear-gradient(90deg, #f2e3ea 25%, #fbeef3 37%, #f2e3ea 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: 10px; }
@keyframes skeleton{ 0%{ background-position: 100% 50%;} 100%{ background-position: 0 50%; } }

/* ---------- Fade / animation utility ---------- */
.fade-up{ opacity:0; transform: translateY(24px); transition: .6s cubic-bezier(.2,.8,.2,1); }
.fade-up.in-view{ opacity:1; transform:none; }

/* ---------- Filters sidebar ---------- */
.bh-filters{ background:#fff; border-radius: var(--radius); padding:22px; box-shadow: var(--bh-shadow); }
.bh-filters h6{ font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; color: var(--bh-muted); margin: 16px 0 10px; }
.bh-filters h6:first-child{ margin-top:0; }

/* Lightbox */
.bh-lightbox-overlay{
  position:fixed; inset:0; background: rgba(43,27,36,.92); z-index:3000; display:none;
  align-items:center; justify-content:center; padding:20px;
}
.bh-lightbox-overlay.open{ display:flex; }
.bh-lightbox-overlay img{ max-height:88vh; border-radius:10px; }
.bh-lightbox-close{ position:absolute; top:20px; right:26px; color:#fff; font-size:1.8rem; background:none; border:none; }
