/* 6Ponds homepage UI — scoped to / only, light theme */

:root {
  --sixp-brand: #3b49df;
  --sixp-brand-dark: #2f3ab2;
  --sixp-brand-soft: rgba(59, 73, 223, 0.1);
  --sixp-price: #078a06;
  --sixp-bg: #f4f6fb;
  --sixp-card: #ffffff;
  --sixp-border: #e4e7ec;
  --sixp-text: #111827;
  --sixp-muted: #6b7280;
  --sixp-radius: 12px;
  --sixp-radius-lg: 16px;
  --sixp-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sixp-shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --sixp-container: 1180px;
}

body#home.sixp-home-ui {
  color-scheme: light only;
  background: var(--sixp-bg);
  color: var(--sixp-text);
}

body#home.sixp-home-ui .content {
  background: transparent;
}

body#home.sixp-home-ui .container,
body#home.sixp-home-ui .container.cmain {
  max-width: var(--sixp-container);
}

/* Neutralize theme section backgrounds — use cards instead */
body#home.sixp-home-ui > .content > section {
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Hero ── */
body#home.sixp-home-ui > .content > section.home-search {
  background: linear-gradient(180deg, #fff 0%, var(--sixp-bg) 100%) !important;
  padding: 20px 0 44px;
}

body#home.sixp-home-ui .home-search .box {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body#home.sixp-home-ui .home-search h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--sixp-text);
  margin-bottom: 12px;
}

body#home.sixp-home-ui .home-search .sixp-hero-sub {
  margin: 0 0 20px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--sixp-muted);
  font-weight: 500;
}

body#home.sixp-home-ui .home-search form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 12px;
}

body#home.sixp-home-ui .home-search .input-box {
  flex: 1 1 280px;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

body#home.sixp-home-ui .home-search input[name="sPattern"] {
  height: 48px;
  border: 1px solid var(--sixp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--sixp-text);
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

body#home.sixp-home-ui .home-search input[name="sPattern"]:focus {
  border-color: var(--sixp-brand);
  box-shadow: 0 0 0 3px rgba(59, 73, 223, 0.12);
  text-decoration: none;
}

body#home.sixp-home-ui .home-search .btn {
  flex: 0 0 150px;
  width: 150px !important;
  float: none !important;
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: var(--sixp-brand);
}

body#home.sixp-home-ui .home-search .btn:hover {
  background: var(--sixp-brand-dark);
}

body#home.sixp-home-ui .home-search .latest-search a {
  background: #fff;
  border: 1px solid var(--sixp-border);
  border-radius: 999px;
  color: var(--sixp-muted);
  font-weight: 500;
}

body#home.sixp-home-ui .home-search .latest-search a:hover {
  background: var(--sixp-brand-soft);
  border-color: rgba(59, 73, 223, 0.25);
  color: var(--sixp-text);
  text-decoration: none;
}

body#home.sixp-home-ui .home-search h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sixp-muted);
  font-weight: 700;
  margin-top: 28px;
}

/* Categories — keep circular icons, light touch */
body#home.sixp-home-ui #home-cat a:hover,
body#home.sixp-home-ui #home-cat a.all:hover {
  transform: translateY(-2px);
}

body#home.sixp-home-ui #home-cat a > h3 span {
  font-weight: 600;
  color: var(--sixp-text);
}

/* ── Section blocks ── */
body#home.sixp-home-ui section.home-blog,
body#home.sixp-home-ui section.home-latest,
body#home.sixp-home-ui section.home-location,
body#home.sixp-home-ui section.home-premium,
body#home.sixp-home-ui section.home-favorite,
body#home.sixp-home-ui section.home-business,
body#home.sixp-home-ui section.home-users,
body#home.sixp-home-ui section.home-recent {
  margin: 0 0 20px;
  padding: 0;
}

body#home.sixp-home-ui section .block {
  background: var(--sixp-card);
  border: 1px solid var(--sixp-border);
  border-radius: var(--sixp-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--sixp-shadow);
}

body#home.sixp-home-ui section .block h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sixp-text);
}

body#home.sixp-home-ui section .block h2 > span {
  flex: 1 1 auto;
}

body#home.sixp-home-ui .btn-secondary {
  border-radius: 10px;
  border: 1px solid var(--sixp-border);
  background: var(--sixp-card);
  color: var(--sixp-text);
  font-weight: 600;
}

body#home.sixp-home-ui .btn-secondary:hover {
  background: var(--sixp-brand-soft);
  border-color: rgba(59, 73, 223, 0.3);
}

/* ── Blog ── */
body#home.sixp-home-ui .home-blog .blog-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

/* Theme hides posts after the 3rd — show all configured on homepage */
body#home.sixp-home-ui .home-blog .blog-box > a:nth-child(1n+4) {
  display: flex !important;
}

body#home.sixp-home-ui .home-blog .blog-box.list > a,
body#home.sixp-home-ui .home-blog .blog-box.grid > a {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--sixp-card);
  border: 1px solid var(--sixp-border);
  border-radius: var(--sixp-radius);
  box-shadow: var(--sixp-shadow);
  overflow: hidden;
  padding: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body#home.sixp-home-ui .home-blog .blog-box > a:hover {
  border-color: rgba(59, 73, 223, 0.35);
  box-shadow: var(--sixp-shadow-md);
  transform: translateY(-2px);
  background: var(--sixp-brand-soft);
  text-decoration: none;
}

body#home.sixp-home-ui .home-blog .blog-box > a > img {
  flex: 0 0 120px;
  width: 120px;
  height: 100px;
  margin-right: 14px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: none;
}

body#home.sixp-home-ui .home-blog .blog-box > a > .data {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 0;
}

body#home.sixp-home-ui .home-blog .blog-box > a h3 {
  color: var(--sixp-text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  max-height: none;
  margin-bottom: 6px;
}

body#home.sixp-home-ui .home-blog .blog-box > a .desc {
  color: var(--sixp-muted);
  font-size: 14px;
  line-height: 1.45;
  height: auto;
  max-height: 4.35em;
  overflow: hidden;
}

/* ── Listing cards (polish only — keep theme flex/scroll layout) ── */
body#home.sixp-home-ui .simple-prod .simple-wrap {
  background: var(--sixp-card);
  border: 1px solid var(--sixp-border);
  border-radius: var(--sixp-radius);
  box-shadow: var(--sixp-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body#home.sixp-home-ui .simple-prod:hover .simple-wrap {
  border-color: rgba(59, 73, 223, 0.35);
  box-shadow: var(--sixp-shadow-md);
  transform: translateY(-2px);
}

body#home.sixp-home-ui .simple-prod .img-wrap > a img {
  border-radius: 10px;
}

body#home.sixp-home-ui .simple-prod .title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sixp-text);
}

body#home.sixp-home-ui .simple-prod .sixp-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--sixp-price);
  margin: 0 0 6px;
}

body#home.sixp-home-ui .simple-prod .sixp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

body#home.sixp-home-ui .simple-prod .sixp-card-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--sixp-brand);
  background: var(--sixp-brand-soft);
  border-radius: 999px;
  padding: 4px 8px;
}

body#home.sixp-home-ui .simple-prod .sixp-card-snippet {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sixp-muted);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body#home.sixp-home-ui .simple-prod.sixp-enhanced .sixp-dup-price,
body#home.sixp-home-ui .simple-prod.sixp-enhanced .description,
body#home.sixp-home-ui .simple-prod.sixp-enhanced .sixp-hidden-desc {
  display: none !important;
}

body#home.sixp-home-ui .simple-prod .extra span.sixp-empty-meta {
  display: none;
}

/* ── Featured businesses ── */
body#home.sixp-home-ui .home-business .bpr-title {
  display: none;
}

body#home.sixp-home-ui .home-business #bpr-seller.bpr-block .bpr-inside-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

body#home.sixp-home-ui .home-business #bpr-seller.bpr-block .bpr-comp {
  width: 100%;
}

body#home.sixp-home-ui .bpr-comp {
  border-radius: var(--sixp-radius);
  border: 1px solid var(--sixp-border);
  overflow: hidden;
  box-shadow: var(--sixp-shadow);
  background: var(--sixp-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body#home.sixp-home-ui .bpr-comp:hover {
  transform: translateY(-2px);
  box-shadow: var(--sixp-shadow-md);
  text-decoration: none;
}

body#home.sixp-home-ui .bpr-comp .bpr-title {
  font-weight: 700;
  color: var(--sixp-text);
}

body#home.sixp-home-ui .bpr-comp .bpr-loc {
  color: var(--sixp-muted);
}

body#home.sixp-home-ui .bpr-comp .bpr-cover {
  background: linear-gradient(135deg, var(--sixp-brand-soft), #eef2ff);
}

body#home.sixp-home-ui .bpr-comp.sixp-empty-company {
  display: none !important;
}

/* ── Provider carousel ── */
body#home.sixp-home-ui #users-list .user {
  background: var(--sixp-card);
  border: 1px solid var(--sixp-border);
  border-radius: var(--sixp-radius);
  box-shadow: var(--sixp-shadow);
}

body#home.sixp-home-ui #users-list .user:hover {
  border-color: rgba(59, 73, 223, 0.35);
  box-shadow: var(--sixp-shadow-md);
  transform: translateY(-2px);
}

/* ── Provider CTA promo (footer) ── */
body#home.sixp-home-ui section.promo {
  background: linear-gradient(135deg, var(--sixp-brand), #7c58d0) !important;
  box-shadow: none;
}

/* ── Header stays light ── */
body#home.sixp-home-ui header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--sixp-border);
}

body#home.sixp-home-ui header .logo img {
  filter: none;
}

body#home.sixp-home-ui .banner-box.sixp-empty-ad {
  display: none !important;
}

/* Force light if OS prefers dark */
@media (prefers-color-scheme: dark) {
  body#home.sixp-home-ui,
  body#home.sixp-home-ui > .content > section {
    background: var(--sixp-bg) !important;
    color: var(--sixp-text);
  }

  body#home.sixp-home-ui > .content > section.home-search {
    background: linear-gradient(180deg, #fff 0%, var(--sixp-bg) 100%) !important;
  }

  body#home.sixp-home-ui section .block,
  body#home.sixp-home-ui .home-search input[name="sPattern"],
  body#home.sixp-home-ui .home-search .latest-search a,
  body#home.sixp-home-ui .simple-prod .simple-wrap,
  body#home.sixp-home-ui .home-blog .blog-box > a,
  body#home.sixp-home-ui .bpr-comp,
  body#home.sixp-home-ui #users-list .user {
    background: var(--sixp-card);
    border-color: var(--sixp-border);
    color: var(--sixp-text);
  }

  body#home.sixp-home-ui header {
    background: rgba(255, 255, 255, 0.96);
  }

  body#home.sixp-home-ui header .logo img {
    filter: none;
  }
}

@media screen and (max-width: 767px) {
  body#home.sixp-home-ui .home-search form {
    flex-direction: column;
  }

  body#home.sixp-home-ui .home-search .input-box,
  body#home.sixp-home-ui .home-search .btn {
    flex: 1 1 auto;
    width: 100% !important;
  }

  body#home.sixp-home-ui .home-search .sixp-hero-sub {
    font-size: 15px;
  }

  body#home.sixp-home-ui section .block {
    padding: 18px 16px;
  }

  body#home.sixp-home-ui .home-business #bpr-seller.bpr-block .bpr-inside-all {
    grid-template-columns: 1fr;
  }

  body#home.sixp-home-ui .home-blog .blog-box {
    grid-template-columns: 1fr;
  }

  body#home.sixp-home-ui .home-blog .blog-box > a > img {
    flex: 0 0 96px;
    width: 96px;
    height: 80px;
    margin-right: 12px;
  }
}