/* ============================================
   DESIGNER HUB - Global CSS
   Colors: #6B21A8 (deep purple), #D946A8 (rose)
   Font: Inter (clean, simple)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6B21A8;
  --primary-light: #7C3AED;
  --primary-dark: #581C87;
  --primary-bg: #F5F0FF;
  --secondary: #D946A8;
  --secondary-light: #E879AA;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  --white: #FFFFFF;
  --bg: #F8F8FA;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --text-dark: #1F2937;
  --text-medium: #4B5563;
  --text-light: #9CA3AF;
  --text-muted: #D1D5DB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 50px;
  --nav-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Inter', sans-serif; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: 'Inter', sans-serif; }
ul, ol { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-box {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.logo-text-wrap span { display: block; font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.2; }
.logo-text-wrap small { font-size: 10px; color: var(--text-light); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 4px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-bg); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-location-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-medium); font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.nav-location-btn:hover { border-color: var(--primary); color: var(--primary); }

.nav-loc-wrapper { position: relative; }

.nav-loc-dropdown {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  z-index: 1000; width: 260px;
  max-height: 320px; overflow: hidden;
}

.nav-loc-search {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}

.nav-loc-search input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; outline: none; font-family: 'Inter', sans-serif;
}

.nav-loc-search input:focus { border-color: var(--primary); }

.nav-loc-list { max-height: 260px; overflow-y: auto; }

.nav-loc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; font-size: 13px; color: var(--text-medium);
  cursor: pointer; transition: background 0.15s;
}

.nav-loc-item:hover { background: var(--primary-bg); color: var(--primary); }

.nav-loc-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }

.nav-bell-btn {
  position: relative; padding: 7px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center;
}
.nav-bell-btn .notif-dot {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; background: var(--secondary);
  color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff;
}

.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
}
.nav-user-btn span { font-size: 13px; font-weight: 500; color: var(--text-dark); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; border: none;
  transition: all 0.15s; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #C026D3; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-bg); }
.btn-outline-gray { background: #fff; color: var(--text-medium); border: 1px solid var(--border); }
.btn-outline-gray:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 12px 24px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500;
}
.badge-success { background: #DCFCE7; color: #16A34A; }
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-secondary { background: #FCE7F3; color: var(--secondary); }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-error { background: #FEE2E2; color: #DC2626; }
.badge-gray { background: #F3F4F6; color: var(--text-medium); }

/* ---- FORM ELEMENTS ---- */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-medium); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-dark); background: #fff;
  transition: border-color 0.15s; outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 36px; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

/* ---- TAGS ---- */
.tag {
  display: inline-block; padding: 3px 8px;
  background: #F3F4F6; color: var(--text-medium);
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 500;
}

/* ---- SECTION HEADINGS ---- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.section-link { color: var(--primary); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 3px; }
.section-link:hover { text-decoration: underline; }

/* ---- PAGE WRAPPER ---- */
.page-wrapper { max-width: 1360px; margin: 0 auto; padding: 20px 24px; }

/* ---- SIDEBAR LAYOUT ---- */
.two-col { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.three-col { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }

/* ---- RATING STARS ---- */
.stars { display: flex; align-items: center; gap: 2px; }
.star-filled { color: #F59E0B; }
.star-empty { color: #D1D5DB; }

/* ---- AVATAR ---- */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 60px; height: 60px; }
.avatar-xl { width: 80px; height: 80px; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ---- TOAST / ALERT ---- */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: #1F2937; color: #fff;
  padding: 12px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  z-index: 9999; box-shadow: var(--shadow-lg);
  animation: slideInToast 0.25s ease;
  max-width: 320px;
}
.toast.success { background: #16A34A; }
.toast.error { background: #DC2626; }
@keyframes slideInToast { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; max-width: 460px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #F3F4F6; border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-medium);
}
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }

/* ---- DESIGNER CARD ---- */
.designer-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.15s;
  cursor: pointer;
}
.designer-card:hover { box-shadow: var(--shadow-md); }

.dc-img-wrap { position: relative; height: 170px; overflow: hidden; }
.dc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dc-img-grad {
  width: 100%; height: 170px;
  background: linear-gradient(135deg, #d4a574 0%, #8b5a2b 100%);
  display: flex; align-items: center; justify-content: center;
}
.dc-heart {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: none; transition: transform 0.15s;
}
.dc-heart:hover { transform: scale(1.1); }
.dc-heart.liked svg { color: var(--secondary); fill: var(--secondary); }
.dc-avail {
  position: absolute; bottom: 10px; right: 10px;
  background: var(--success); color: #fff;
  font-size: 10px; font-weight: 500;
  padding: 3px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.dc-avatar-wrap {
  position: absolute; bottom: -18px; left: 12px;
}
.dc-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid #fff; object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.dc-body { padding: 24px 12px 12px; }
.dc-name { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.dc-name svg { color: var(--info); flex-shrink: 0; }
.dc-rating { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-medium); margin: 4px 0; }
.dc-rating svg { color: #F59E0B; }
.dc-loc { display: flex; align-items: center; justify-content: space-between; margin: 3px 0; }
.dc-loc-left { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--text-light); }
.dc-dist { font-size: 11.5px; color: var(--text-light); }
.dc-price { color: var(--secondary); font-size: 13px; font-weight: 600; margin: 6px 0; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.dc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ---- SIDEBAR WIDGET ---- */
.sidebar-widget {
  background: #fff; border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.widget-title { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget-title svg { color: var(--primary); }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; gap: 5px; justify-content: center; margin-top: 20px; }
.page-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  font-size: 12.5px; font-weight: 500; color: var(--text-medium);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- STATUS PILL ---- */
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 500; }
.status-pending { background: #FEF3C7; color: #D97706; }
.status-accepted { background: #DCFCE7; color: #16A34A; }
.status-rejected { background: #FEE2E2; color: #DC2626; }
.status-completed { background: var(--primary-bg); color: var(--primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr 260px; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .navbar { padding: 0 14px; }
  .page-wrapper { padding: 14px 12px; }
  .sidebar { display: none; }
}

/* ---- MOBILE NAVIGATION ---- */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; padding: 16px;
  transform: translateX(-100%); transition: transform 0.25s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block; padding: 12px 0; font-size: 15px; font-weight: 500;
  color: var(--text-medium); border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--primary); }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: var(--text-dark);
  margin: 4px 0; transition: all 0.25s;
}

@media (max-width: 900px) {
  .hamburger { display: block; }
  .nav-links { display: none; }
  .nav-right { display: none; }
}

/* ---- HOVER LIFT FOR CARDS ---- */
.designer-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.designer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ---- BUTTON HOVER ENHANCEMENT ---- */
.btn {
  transition: all 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107,33,168,0.35);
}
.btn-outline:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- CATEGORY ICON HOVER ---- */
.cat-item:hover .cat-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(107,33,168,0.15);
}
.cat-icon {
  transition: all 0.2s ease;
}

/* ---- HEART ANIMATION ---- */
.dc-heart {
  transition: transform 0.2s ease;
}
.dc-heart:hover {
  transform: scale(1.2);
}
.dc-heart.liked svg {
  fill: #FF4F9A;
  stroke: #FF4F9A;
  animation: heartPop 0.3s ease;
}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---- STAT BADGE ---- */
.stat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600;
  transition: all 0.2s ease;
}

/* ---- SMOOTH PAGE TRANSITIONS ---- */
.page-wrapper {
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- SCROLLBAR STYLING ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ---- TOAST ANIMATION ---- */
.toast {
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(120%); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- NOTIF DOT PULSE ---- */
.notif-dot {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---- USER DROPDOWN MENU ---- */
.nav-user-menu {
  position: relative;
}

.nav-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid var(--border);
}

.nav-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--primary-bg);
}

.nav-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  transition: all 0.15s;
  cursor: pointer;
}

.nav-dropdown-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .nav-user-dropdown {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    border-radius: 0;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
  }
}
