/* ============================================================
   GlowNaija Design System — main.css
   Uses CSS custom properties (variables) for consistent theming
   ============================================================ */

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

:root {
  --ink:       #1C1008;
  --ink2:      #3D2B1F;
  --ink3:      #8C7B6E;
  --page:      #FFF9F5;
  --page2:     #F5EDE6;
  --border:    #E8D5C4;
  --rose:      #E8607A;
  --rose2:     #C94D66;
  --gold:      #F5A623;
  --ng:        #2D7A3A;
  --plum:      #5B2D8E;
  --white:     #FFFFFF;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r:         14px;
  --shadow:    0 2px 16px rgba(28,16,8,.08);
  --shadow-md: 0 4px 24px rgba(28,16,8,.12);
}

/* ── BASE ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--page); color: var(--ink); line-height: 1.6; min-height: 100vh; }
a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
button { font-family: var(--font); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section     { padding: 48px 0; }
.grid-2      { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid-3      { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-4      { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,249,245,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 1px 8px rgba(28,16,8,.04);
}
.nav-inner    { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo         { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo-accent  { color: var(--gold); font-weight: 300; font-style: italic; }
.nav-links    { display: flex; align-items: center; gap: 2px; }
.nav-link     { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink2); transition: all .2s; }
.nav-link:hover, .nav-link.active { color: var(--rose); background: #FEE8ED; }
.nav-right    { display: flex; align-items: center; gap: 8px; }
.nav-icon     { position: relative; padding: 8px; color: var(--ink2); font-size: 20px; cursor: pointer; border: none; background: none; line-height: 1; }
.badge        { position: absolute; top: 2px; right: 2px; background: var(--rose); color: white; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-user     { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; background: white; color: var(--ink); transition: all .2s; }
.nav-user:hover { border-color: var(--rose); }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: white; border: 1.5px solid var(--border); border-radius: var(--r); min-width: 190px; box-shadow: var(--shadow-md); z-index: 200; overflow: hidden; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 11px 18px; font-size: 13px; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--border); transition: background .15s; }
.dropdown-menu a:last-child { border: none; }
.dropdown-menu a:hover { background: var(--page2); color: var(--ink); }
.dropdown-signout { color: var(--rose) !important; }
.mobile-toggle { display: none; padding: 8px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); line-height: 1; }
.mobile-menu   { display: none; flex-direction: column; padding: 12px 0; border-top: 1.5px solid var(--border); }
.mobile-menu a { display: block; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--ink2); transition: background .15s; }
.mobile-menu a:hover { background: var(--page2); }

/* ── NOTIFICATION PANEL ───────────────────────────────────── */
.notif-panel  { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 320px; background: white; border: 1.5px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md); z-index: 300; overflow: hidden; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.notif-header button { font-size: 12px; color: var(--rose); background: none; border: none; cursor: pointer; font-family: var(--font); }
.notif-list   { max-height: 300px; overflow-y: auto; }
.notif-item   { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.notif-item:hover, .notif-item.unread { background: #FFF5F7; }
.notif-item-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.notif-item-body  { font-size: 12px; color: var(--ink3); }
.notif-empty  { padding: 28px 16px; text-align: center; color: var(--ink3); font-size: 13px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn          { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; font-size: 14px; font-weight: 700; border-radius: 12px; border: none; cursor: pointer; transition: all .2s; text-align: center; line-height: 1; font-family: var(--font); }
.btn-primary  { background: var(--rose); color: white; }
.btn-primary:hover  { background: var(--rose2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,96,122,.3); }
.btn-green    { background: var(--ng); color: white; }
.btn-green:hover    { background: #235F2C; transform: translateY(-1px); }
.btn-outline  { background: white; border: 1.5px solid var(--border); color: var(--ink2); }
.btn-outline:hover  { border-color: var(--rose); color: var(--rose); }
.btn-ghost    { background: none; border: none; color: var(--ink2); padding: 8px 14px; font-size: 14px; font-weight: 600; }
.btn-ghost:hover    { background: var(--page2); }
.btn-sm       { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-block    { display: flex; width: 100%; }

/* ── CARDS ────────────────────────────────────────────────── */
.card       { background: white; border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #F0A0B4; box-shadow: var(--shadow); }
.card-body  { padding: 16px; }

/* ── SALON CARDS ──────────────────────────────────────────── */
.salon-img  { position: relative; height: 185px; background: linear-gradient(135deg, var(--ink), #3B1F6B); overflow: hidden; }
.salon-img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .3s; }
.salon-img:hover img { transform: scale(1.04); }
.salon-emoji-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.salon-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge-pill   { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; line-height: 1.4; }
.badge-gold   { background: var(--gold); color: white; }
.badge-green  { background: var(--ng); color: white; }
.badge-open   { background: var(--ng); color: white; }
.badge-closed { background: rgba(0,0,0,.55); color: white; }
.salon-info   { padding: 14px 16px; }
.salon-name   { font-weight: 700; font-size: 15px; margin-bottom: 3px; color: var(--ink); }
.salon-area   { font-size: 12px; color: var(--ink3); margin-bottom: 10px; }
.salon-meta   { display: flex; justify-content: space-between; align-items: center; }
.salon-rating { font-size: 13px; font-weight: 700; color: var(--ink); }
.salon-price  { font-size: 12px; color: var(--ink3); }
.salon-tags   { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tag          { font-size: 10px; font-weight: 600; padding: 2px 8px; background: var(--page2); color: var(--ink3); border-radius: 20px; }

/* ── PRODUCT CARDS ────────────────────────────────────────── */
.product-img { position: relative; height: 200px; background: var(--page2); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-badge { position: absolute; top: 8px; left: 8px; }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group   { margin-bottom: 16px; }
.form-label   { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); margin-bottom: 5px; }
.form-input   { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; color: var(--ink); background: white; outline: none; transition: border-color .2s, box-shadow .2s; font-family: var(--font); }
.form-input:focus  { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(232,96,122,.12); }
select.form-input  { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C7B6E' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert         { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-error   { background: #FEE8ED; color: #C94D66; border-color: #F8BFCB; }
.alert-success { background: #E8F5EA; color: #1E6B2A; border-color: #B2D9B9; }
.alert-info    { background: #EEF2FF; color: #3730A3; border-color: #C7D2FE; }

/* ── STATUS BADGES ────────────────────────────────────────── */
.status           { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status-pending   { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #D1FAE5; color: #065F46; }
.status-completed { background: #DBEAFE; color: #1E40AF; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-no_show   { background: #F3F4F6; color: #6B7280; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: #1C1008;
  background: linear-gradient(135deg, #1C1008 0%, #3B1F6B 100%);
  padding: 64px 20px 56px;
  text-align: center;
}
.hero-eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.hero-title   { font-size: clamp(34px, 5.5vw, 58px); font-weight: 800; color: white; line-height: 1.1; margin-bottom: 18px; }
.hero-title span { color: var(--gold); font-weight: 300; font-style: italic; }
.hero-sub     { color: rgba(255,255,255,.65); font-size: 18px; max-width: 520px; margin: 0 auto 36px; line-height: 1.6; }
.search-form  { position: relative; max-width: 560px; margin: 0 auto; }
.search-input { width: 100%; padding: 16px 130px 16px 22px; background: rgba(255,255,255,.13); border: 1.5px solid rgba(255,255,255,.22); border-radius: 16px; color: white; font-size: 14px; outline: none; font-family: var(--font); transition: border-color .2s, background .2s; }
.search-input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.search-input::placeholder { color: rgba(255,255,255,.45); }
.search-btn   { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 10px 20px; background: var(--rose); color: white; font-weight: 700; font-size: 13px; border-radius: 11px; border: none; cursor: pointer; font-family: var(--font); transition: background .2s; }
.search-btn:hover { background: var(--rose2); }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar    { background: var(--rose); padding: 18px 20px; }
.stats-grid   { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; gap: 16px; }
.stat-val     { font-size: 24px; font-weight: 800; color: white; line-height: 1.2; }
.stat-lbl     { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ── CATEGORY GRID ────────────────────────────────────────── */
.cat-grid     { display: grid; grid-template-columns: repeat(8,1fr); gap: 10px; }
.cat-card     { padding: 16px 8px; text-align: center; cursor: pointer; text-decoration: none; display: block; }
.cat-card:hover { border-color: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-emoji    { font-size: 28px; margin-bottom: 8px; display: block; line-height: 1; }
.cat-label    { font-size: 11px; font-weight: 700; color: var(--ink2); line-height: 1.3; }
.cat-card:hover .cat-label { color: var(--rose); }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero    { background: #1C1008; background: linear-gradient(135deg, #1C1008, #3B1F6B); padding: 36px 20px; }
.page-title   { font-size: 28px; font-weight: 800; color: white; margin-bottom: 4px; }
.page-sub     { color: rgba(255,255,255,.65); font-size: 14px; }
.breadcrumb   { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: white; }

/* ── FILTERS & TABS ───────────────────────────────────────── */
.filters      { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.filter-pill  { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--ink2); cursor: pointer; transition: all .2s; background: white; text-decoration: none; }
.filter-pill:hover, .filter-pill.active { background: var(--rose); color: white; border-color: var(--rose); }
.tabs         { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.tab          { padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; background: var(--page2); color: var(--ink2); transition: all .2s; text-decoration: none; display: inline-block; font-family: var(--font); }
.tab.active   { background: var(--rose); color: white; }
.tab:hover:not(.active) { background: var(--border); }

/* ── SLOT PICKER ──────────────────────────────────────────── */
.slots-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.slot-btn     { padding: 10px 8px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; background: white; transition: all .2s; text-align: center; font-family: var(--font); }
.slot-btn:hover:not(:disabled) { border-color: var(--rose); color: var(--rose); }
.slot-btn.selected { background: var(--rose); color: white; border-color: var(--rose); }
.slot-btn:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; background: var(--page2); }

/* ── STARS ────────────────────────────────────────────────── */
.stars { display: flex; gap: 6px; }
.star  { font-size: 26px; color: var(--border); cursor: pointer; transition: color .1s; user-select: none; }
.star.active, .star:hover { color: var(--gold); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination   { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 28px 0; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer       { background: var(--ink); color: white; padding: 52px 20px 24px; margin-top: 64px; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.7; margin: 10px 0 18px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { font-size: 22px; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-social a:hover { color: white; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: white; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a  { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-cities { display: flex; flex-wrap: wrap; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; align-items: center; }
.footer-cities span { color: rgba(255,255,255,.3); }
.footer-cities a { color: rgba(255,255,255,.45); transition: color .2s; }
.footer-cities a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-bottom-links a:hover { color: white; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes spin  { to{transform:rotate(360deg)} }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-spin  { animation: spin 1s linear infinite; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn-ghost, .nav-right .btn-primary, .nav-dropdown { display: none !important; }
  .mobile-toggle { display: block !important; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 44px 16px 40px; }
  .hero-sub { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .slots-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 500px) {
  .cat-grid { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .cat-emoji { font-size: 22px; }
  .cat-label { font-size: 10px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .page-title { font-size: 22px; }
  .stats-grid { gap: 8px; }
  .stat-val { font-size: 20px; }
}
