/* ============================================
   BIZNESKS - MAIN STYLESHEET
   Design: Modern Minimal / Geometric Precision
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --black:     #0a0a0a;
  --white:     #fafaf8;
  --accent:    #c8f04a;
  --accent2:   #1a1a2e;
  --gray-100:  #f5f5f3;
  --gray-200:  #e8e8e4;
  --gray-400:  #9e9e96;
  --gray-600:  #5e5e58;
  --red:       #e84040;
  --green:     #2dcc70;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    6px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar__logo span {
  display: inline-block;
  background: var(--black);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
}

.navbar__nav { display: flex; align-items: center; gap: 8px; }

.navbar__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active { color: var(--black); background: var(--gray-100); }

.navbar__actions { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; border: none; transition: var(--transition); cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: #222; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--black); }
.btn--accent:hover { background: #b8e03a; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--black); border: 1.5px solid var(--gray-200); }
.btn--ghost:hover { background: var(--gray-100); }
.btn--sm { padding: 7px 14px; font-size: 0.8rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- HERO ---- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,240,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero__search {
  display: flex;
  gap: 0;
  max-width: 580px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(200,240,74,0.3);
}

.hero__search input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--black);
  outline: none;
}

.hero__search select {
  border: none;
  border-left: 1.5px solid var(--gray-200);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--gray-600);
  outline: none;
  background: white;
  cursor: pointer;
}

.hero__search button {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hero__search button:hover { background: #b8e03a; }

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- SECTION ---- */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--black); color: var(--white); }

.section__header { margin-bottom: 48px; }
.section__title { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.section__title span { color: var(--accent); }
.section__subtitle { color: var(--gray-600); margin-top: 10px; font-size: 1.05rem; }

/* ---- CATEGORY CARDS ---- */
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.cat-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-card__icon {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.cat-card:hover .cat-card__icon { background: var(--accent); }

.cat-card__name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.cat-card__count { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

/* ---- BUSINESS CARD ---- */
.biz-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.biz-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.biz-card__cover {
  height: 140px;
  background: linear-gradient(135deg, var(--accent2) 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.biz-card__cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.biz-card__verified {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.biz-card__featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}

.biz-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 3px solid var(--white);
  background: var(--white);
  object-fit: contain;
  margin: -30px 20px 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

.biz-card__logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 3px solid var(--white);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--black);
  margin: -30px 20px 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

.biz-card__body { padding: 12px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.biz-card__cat { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 6px; }
.biz-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.biz-card__desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.5; flex: 1; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.biz-card__meta { display: flex; justify-content: space-between; align-items: center; }
.biz-card__location { font-size: 0.8rem; color: var(--gray-400); display: flex; align-items: center; gap: 4px; }
.biz-card__rating { display: flex; align-items: center; gap: 5px; }
.biz-card__rating .stars { color: #f59e0b; font-size: 0.85rem; }
.biz-card__rating span { font-size: 0.8rem; color: var(--gray-600); }

.biz-card__footer { padding: 14px 20px; border-top: 1px solid var(--gray-200); }
.biz-card__footer .btn { width: 100%; justify-content: center; }

/* ---- BUSINESS PROFILE PAGE ---- */
.profile-hero {
  background: var(--black);
  color: var(--white);
  padding: 60px 24px 0;
  position: relative;
}

.profile-cover {
  height: 300px;
  background: linear-gradient(135deg, var(--accent2), #0f3460);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  position: relative;
}

.profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.profile-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.profile-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  border: 4px solid var(--white);
  background: var(--white);
  object-fit: contain;
  margin-top: -50px;
  box-shadow: var(--shadow-lg);
}

.profile-logo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  border: 4px solid var(--white);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--black);
  margin-top: -50px;
  box-shadow: var(--shadow-lg);
}

.profile-info { padding: 20px 0 40px; }
.profile-info__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.profile-name { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.profile-cat-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  margin-top: 8px;
  display: inline-block;
}

.verified-badge {
  background: var(--accent);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- TABS ---- */
.tabs { border-bottom: 2px solid var(--gray-200); margin-bottom: 40px; }
.tabs__list { display: flex; gap: 0; }
.tab-btn {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.tab-btn.active { color: var(--black); font-weight: 600; }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--black);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- REVIEW STARS ---- */
.star { color: var(--gray-200); font-size: 1.2rem; }
.star.filled { color: #f59e0b; }

.stars-input { display: flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { display: none; }
.stars-input label { font-size: 1.8rem; color: var(--gray-200); cursor: pointer; transition: var(--transition); }
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: #f59e0b; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }
.form-control {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--black);
  transition: var(--transition);
  background: var(--white);
  outline: none;
}
.form-control:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,0.07); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---- ALERTS ---- */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.alert--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert--info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ---- SEARCH BAR ---- */
.search-bar {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.search-bar input, .search-bar select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  color: var(--black);
  background: var(--white);
}

.search-bar input:focus, .search-bar select:focus { border-color: var(--black); }

.search-bar input[type="text"] { flex: 1; min-width: 200px; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__header { padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: center; }
.modal__title { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.modal__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); padding: 4px; }
.modal__body { padding: 20px 28px 28px; }

/* ---- AUTH TABS ---- */
.auth-tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 12px; background: none; border: none; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--gray-400); transition: var(--transition); position: relative; }
.auth-tab.active { color: var(--black); }
.auth-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--black); }
.auth-form { display: none; }
.auth-form.active { display: block; }

/* ---- FOOTER ---- */
.footer { background: var(--black); color: var(--white); padding: 64px 24px 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer__brand-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.footer__brand-desc { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer__col-title { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--black);
}
.page-btn:hover, .page-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---- ADMIN ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--black);
  color: var(--white);
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-sidebar__logo { padding: 0 20px 24px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar__logo span { color: var(--accent); }
.admin-nav { padding: 16px 0; }
.admin-nav__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); padding: 8px 20px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-nav a.active { border-right: 2px solid var(--accent); }

.admin-main { margin-left: 240px; padding: 32px; flex: 1; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; }
.stat-card__num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.stat-card__label { font-size: 0.85rem; color: var(--gray-400); margin-top: 4px; }
.stat-card__accent { color: var(--accent); }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--gray-200); }
.data-table th { background: var(--gray-100); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding: 12px 16px; text-align: left; color: var(--gray-600); }
.data-table td { padding: 14px 16px; font-size: 0.9rem; border-top: 1px solid var(--gray-200); vertical-align: middle; }
.data-table tr:hover td { background: var(--gray-100); }

.badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge--green { background: #d1fae5; color: #065f46; }
.badge--red { background: #fee2e2; color: #991b1b; }
.badge--yellow { background: #fef3c7; color: #92400e; }
.badge--gray { background: var(--gray-200); color: var(--gray-600); }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px; }
  .hero__search { flex-direction: column; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .navbar__nav { display: none; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .profile-info__top { flex-direction: column; }
  .section { padding: 48px 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
}
