/* ─────────────────────────────────────────────
   Vibemarket — WP Admin-style Front-end CSS
   Reuses wp-admin.min.css as base, adds shell layout
───────────────────────────────────────────── */

/* Body reset */
html { background: #f0f0f1 !important; }
body.vibemarket-theme {
  background: #f0f0f1 !important;
  font-size: 14px;
  overflow: hidden;
  height: 100vh;
}

/* ── APP SHELL ── */
#vm-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 9000;
}

/* ── SIDEBAR ── */
#vm-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #1d2327;
  color: #a7aaad;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width 0.2s;
}
#vm-sidebar.collapsed { width: 46px; }
#vm-sidebar.collapsed .vm-brand a span:not(.dashicons),
#vm-sidebar.collapsed .vm-brand small,
#vm-sidebar.collapsed .vm-nav-heading,
#vm-sidebar.collapsed #vm-nav li a span:not(.dashicons),
#vm-sidebar.collapsed .vm-sidebar-cta a span:not(.dashicons) { display: none; }

.vm-brand {
  padding: 14px 16px;
  border-bottom: 1px solid #2c3338;
  flex-shrink: 0;
}
.vm-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
}
.vm-brand a:hover { color: #72aee6 !important; }
.vm-brand .dashicons { font-size: 22px; width: 22px; height: 22px; color: #72aee6; }
.vm-brand small {
  display: block;
  font-size: 11px;
  color: #6e7378;
  margin-top: 2px;
  padding-left: 30px;
}

.vm-nav-heading {
  font-size: 10px;
  font-weight: 700;
  color: #50575e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px 3px;
}
.vm-sep {
  border: none;
  border-top: 1px solid #2c3338;
  margin: 6px 0;
}
#vm-nav ul { list-style: none; margin: 0; padding: 0; }
#vm-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #a7aaad !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all 0.12s;
  white-space: nowrap;
  overflow: hidden;
}
#vm-nav ul li a .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
  line-height: 17px;
  color: #6e7378;
  flex-shrink: 0;
}
#vm-nav ul li a:hover {
  background: #2c3338;
  color: #fff !important;
  border-left-color: #ffffff33;
}
#vm-nav ul li a:hover .dashicons { color: #c3c4c7; }
#vm-nav ul li.current > a {
  background: #2c3338;
  color: #fff !important;
  border-left-color: #72aee6;
  font-weight: 600;
}
#vm-nav ul li.current > a .dashicons { color: #72aee6; }

.vm-sidebar-cta {
  padding: 12px;
  margin-top: auto;
  border-top: 1px solid #2c3338;
}
.vm-sidebar-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: #2271b1;
  color: #fff !important;
  border-radius: 3px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
}
.vm-sidebar-cta a:hover { background: #135e96; }
.vm-sidebar-cta a .dashicons { font-size: 15px; width: 15px; height: 15px; flex-shrink: 0; }

/* ── MAIN ── */
#vm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── TOP BAR ── */
#vm-topbar {
  background: #1d2327;
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}
.vm-topbar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #a7aaad;
  display: flex;
  align-items: center;
}
.vm-topbar-icon-btn:hover { color: #fff; }
.vm-topbar-icon-btn .dashicons { font-size: 20px; width: 20px; height: 20px; }

.vm-topbar-search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  background: #2c3338;
  border: 1px solid #3c4348;
  border-radius: 3px;
  padding: 5px 10px;
  gap: 7px;
  transition: border-color 0.15s;
}
.vm-topbar-search:focus-within { border-color: #72aee6; }
.vm-topbar-search .dashicons { color: #6e7378; font-size: 15px; width: 15px; height: 15px; flex-shrink: 0; }
.vm-topbar-search input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 13px !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
  padding: 0 !important;
}
.vm-topbar-search input::placeholder { color: #6e7378 !important; }

.vm-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vm-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a7aaad !important;
  text-decoration: none !important;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.15s;
  white-space: nowrap;
}
.vm-topbar-link:hover { color: #fff !important; background: #2c3338; }
.vm-topbar-link .dashicons { font-size: 15px; width: 15px; height: 15px; }
.vm-topbar-register {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
}
.vm-topbar-register .dashicons { font-size: 14px !important; width: 14px !important; height: 14px !important; margin-top: 1px !important; }

/* ── CONTENT AREA ── */
#vm-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  background: #f0f0f1;
}

/* ── PAGE TITLE ── */
.vm-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.vm-page-title h1 {
  font-size: 23px !important;
  font-weight: 400 !important;
  color: #1d2327 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── NOTICE ── */
.vm-notice {
  background: #fff;
  border-left: 4px solid #72aee6;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #3c434a;
}
.vm-notice .dashicons { color: #72aee6; font-size: 20px; width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.vm-notice-warning { border-left-color: #dba617; }
.vm-notice-warning .dashicons { color: #dba617; }
.vm-notice-success { border-left-color: #00a32a; }
.vm-notice-success .dashicons { color: #00a32a; }

/* ── AT A GLANCE ── */
.vm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.vm-stat {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.vm-stat .dashicons {
  font-size: 30px;
  width: 30px;
  height: 30px;
  color: #72aee6;
}
.vm-stat p { font-size: 12px; color: #646970; margin: 0 0 2px; }
.vm-stat strong { font-size: 22px; font-weight: 600; color: #1d2327; display: block; }

/* ── FILTER TABS ── */
.vm-subsubsub {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 13px;
}
.vm-subsubsub li { display: inline; }
.vm-subsubsub li a {
  color: #2271b1 !important;
  text-decoration: none !important;
  padding: 3px 8px;
  border-radius: 2px;
}
.vm-subsubsub li a:hover { text-decoration: underline !important; }
.vm-subsubsub li a.current {
  font-weight: 600;
  color: #1d2327 !important;
  background: #ddd;
  text-decoration: none !important;
  border-radius: 2px;
}
.vm-subsubsub li:not(:last-child)::after { content: " |"; color: #a7aaad; }

/* ── SECTION TITLE ── */
.vm-section-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1d2327 !important;
  margin: 0 0 12px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vm-section-title .dashicons { color: #72aee6; }

/* ── CARD GRID ── */
.vm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.vm-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: #3c434a !important;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.vm-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-color: #72aee6;
}
.vm-card-header {
  background: #f6f7f7;
  border-bottom: 1px solid #c3c4c7;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vm-card-header .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: #72aee6;
}
.vm-card-tag {
  margin-left: auto;
  font-size: 11px;
  background: #e0e0e0;
  padding: 2px 8px;
  border-radius: 2px;
  color: #646970;
  font-weight: 600;
  white-space: nowrap;
}
.vm-card-body { padding: 16px; flex: 1; }
.vm-card-body h4 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1d2327 !important;
  margin: 0 0 8px !important;
  line-height: 1.4;
}
.vm-card-body p { font-size: 13px; color: #646970; margin: 0; line-height: 1.5; }
.vm-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vm-card-price { font-size: 16px !important; font-weight: 700 !important; color: #1d2327 !important; }

.vm-card.vm-card-add {
  border-style: dashed;
  background: #fafafa;
  align-items: center;
  justify-content: center;
  min-height: 155px;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 20px;
}
.vm-card.vm-card-add:hover { background: #f0f0f1; border-color: #72aee6; }
.vm-card.vm-card-add .dashicons { font-size: 36px; width: 36px; height: 36px; color: #a7aaad; }
.vm-card.vm-card-add span { font-size: 13px; color: #646970; }

/* ── WooCommerce overrides ── */
.vm-wc-wrap { width: 100%; }
.woocommerce ul.products { margin: 0 !important; }
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 16px !important;
  transition: box-shadow 0.15s;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.woocommerce ul.products li.product .price { color: #1d2327 !important; font-weight: 700 !important; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: #2271b1 !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-size: 13px !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: #135e96 !important; }

/* ── WP Job Board overrides ── */
.apus-jobs-layout, .job-listings { background: transparent !important; }

/* ── Forms ── */
.wp-job-board-form input[type=text],
.wp-job-board-form input[type=email],
.wp-job-board-form textarea,
.wp-job-board-form select,
.woocommerce input[type=text],
.woocommerce input[type=email],
.woocommerce textarea {
  border: 1px solid #8c8f94 !important;
  border-radius: 3px !important;
  font-size: 14px !important;
  padding: 6px 10px !important;
  box-shadow: 0 0 0 transparent !important;
}
.wp-job-board-form input:focus,
.woocommerce input:focus {
  border-color: #2271b1 !important;
  box-shadow: 0 0 0 1px #2271b1 !important;
}

/* ── Responsive ── */
@media (max-width: 782px) {
  #vm-sidebar { display: none; }
  #vm-content { padding: 12px 14px; }
  body.vibemarket-theme { overflow: auto; height: auto; }
  #vm-app { position: relative; flex-direction: column; height: auto; }
  #vm-main { overflow: visible; }
  #vm-content { overflow: visible; }
  .vm-stats { grid-template-columns: 1fr 1fr; }
  .vm-cards { grid-template-columns: 1fr; }
}
