/* ============================================
   LOCALBIZ DIRECTORY - MAIN STYLESHEET
   ============================================ */

:root {
  --primary:      #E84C1B;
  --primary-dark: #c43d12;
  --primary-light:#fdf0ec;
  --secondary:    #1B2A4E;
  --accent:       #F5A623;
  --success:      #28a745;
  --text:         #2c2c2c;
  --text-muted:   #6c757d;
  --border:       #e8e8e8;
  --bg-light:     #f8f9fc;
  --white:        #ffffff;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --radius:       12px;
  --radius-sm:    8px;
  --font-head:    'Fraunces', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --transition:   0.25s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--secondary);
  color: #fff;
  padding: 6px 0;
  font-size: 0.82rem;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 14px 0;
  z-index: 1000;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.brand-text { color: var(--secondary); font-family: var(--font-head); }
.navbar .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.navbar .nav-link:hover { background: var(--primary-light); color: var(--primary) !important; }
.btn-add-biz {
  background: var(--primary);
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-add-biz:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,76,27,0.3);
}
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
}
.dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 8px 14px;
  font-weight: 500;
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d4a8a 60%, #1a3566 100%);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-section h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-section h1 span { color: var(--accent); }
.hero-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* SEARCH BOX */
.search-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.search-box .form-control,
.search-box .form-select {
  border: none;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}
.search-box .form-control:focus,
.search-box .form-select:focus {
  box-shadow: none;
  background: var(--primary-light);
}
.search-box .btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
}
.search-box .btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex; gap: 32px;
  margin-top: 30px;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.hero-stat .lbl {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 500;
  display: block;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--secondary); margin-bottom: 12px; }
.section-sub { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; color: #fff; }
.category-card:hover::before { opacity: 1; }
.category-card .icon-wrap {
  width: 60px; height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  transition: all var(--transition);
  position: relative; z-index: 1;
}
.category-card:hover .icon-wrap { background: rgba(255,255,255,0.2); color: #fff; }
.category-card .cat-name {
  font-weight: 700;
  font-size: 0.95rem;
  position: relative; z-index: 1;
  transition: color var(--transition);
}
.category-card .cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative; z-index: 1;
  transition: color var(--transition);
}
.category-card:hover .cat-count { color: rgba(255,255,255,0.8); }

/* ============================================
   BUSINESS CARDS
   ============================================ */
.biz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.biz-card-img {
  height: 180px;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}
.biz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.biz-card:hover .biz-card-img img { transform: scale(1.06); }
.biz-card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 6px;
}
.badge-featured { background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.badge-verified { background: var(--success); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.biz-card-body { padding: 18px; }
.biz-logo {
  width: 50px; height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-top: -35px;
  position: relative;
  background: #fff;
}
.biz-name { font-weight: 700; font-size: 1rem; margin: 10px 0 4px; }
.biz-name a { color: var(--secondary); }
.biz-name a:hover { color: var(--primary); }
.biz-cat { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.biz-cat span { color: var(--primary); font-weight: 600; }
.biz-rating { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; margin-bottom: 8px; }
.biz-rating .score { font-weight: 700; color: var(--secondary); }
.biz-rating .count { color: var(--text-muted); }
.biz-location { font-size: 0.82rem; color: var(--text-muted); }
.biz-location i { color: var(--primary); margin-right: 4px; }
.biz-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.biz-plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.plan-free { background: #e8e8e8; color: #666; }
.plan-basic { background: #dbeafe; color: #1d4ed8; }
.plan-premium { background: #fef3c7; color: #92400e; }
.plan-platinum { background: #ede9fe; color: #5b21b6; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ============================================
   FORMS
   ============================================ */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--secondary); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,76,27,0.12);
}
.input-group-text { background: var(--bg-light); border: 1.5px solid var(--border); }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-cover {
  height: 260px;
  background: linear-gradient(135deg, var(--secondary), #2d4a8a);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-logo {
  width: 90px; height: 90px;
  border-radius: 20px;
  border: 4px solid #fff;
  background: #fff;
  object-fit: cover;
  position: absolute;
  bottom: -20px;
  left: 30px;
  box-shadow: var(--shadow);
}
.profile-info { padding: 40px 30px 30px; }
.profile-name { font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.profile-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text-muted); }
.profile-meta-item i { color: var(--primary); width: 16px; }

/* ============================================
   REVIEW CARDS
   ============================================ */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.reviewer-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================
   DASHBOARD PANELS
   ============================================ */
.sidebar-nav { background: var(--secondary); min-height: 100vh; padding: 0; border-radius: 0; }
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo .icon-wrap { background: var(--primary); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.sidebar-nav .nav-link {
  color: rgba(255,255,255,0.7);
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  transition: all var(--transition);
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; }
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.sidebar-nav .nav-link.active { border-left: 3px solid var(--primary); }
.sidebar-section { padding: 16px 20px 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.stat-card .stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.stat-card .stat-badge { position: absolute; top: 16px; right: 16px; }

/* ============================================
   ADMIN TABLE
   ============================================ */
.admin-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table .table { margin: 0; }
.admin-table .table thead th {
  background: var(--bg-light);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: none;
  padding: 14px 16px;
}
.admin-table .table tbody td {
  padding: 14px 16px;
  border-color: var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}
.table-actions { display: flex; gap: 6px; }
.table-actions .btn { padding: 4px 10px; font-size: 0.78rem; }

/* STATUS BADGES */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-read { background: #f3f4f6; color: #374151; }
.status-replied { background: #d1fae5; color: #065f46; }

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d4a8a 100%);
  padding: 60px 0;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 8px; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-brand { color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.footer-heading { color: #fff; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.88rem; align-items: flex-start; }
.footer-contact i { color: var(--primary); margin-top: 3px; width: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 40px 0 0; }
.footer-bottom { padding: 20px 0; font-size: 0.82rem; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.footer-legal-links a:hover { color: #fff; }

/* ============================================
   ALERTS
   ============================================ */
.alert { border-radius: var(--radius-sm); border: none; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link { border-radius: var(--radius-sm); margin: 0 2px; color: var(--primary); border-color: var(--border); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-link:hover { background: var(--primary-light); }

/* ============================================
   MISC / UTILITIES
   ============================================ */
.section-pad { padding: 80px 0; }
.bg-light-gray { background: var(--bg-light); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 16px; }
.empty-state h5 { color: var(--secondary); }

/* Responsive */
@media(max-width: 768px) {
  .search-box { flex-wrap: wrap; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .form-card { padding: 24px; }
  .sidebar-nav { min-height: auto; }
  .topbar { display: none; }
}
