/* =========================================================
   VIVASTREET-LLC — styles.css
   Adult classifieds / personals. Mobile-first.
   All classes prefixed with `vs-` for namespace isolation.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --vs-header:         #2d2d2d;
  --vs-header-hover:   #3a3a3a;
  --vs-accent:         #7ab932;
  --vs-accent-hover:   #5f9a1e;
  --vs-accent-light:   rgba(122, 185, 50, 0.08);
  --vs-online:         #22c55e;
  --vs-recent:         #a78bfa;

  --vs-bg:             #f2f2f2;
  --vs-card:           #ffffff;
  --vs-text:           #2d2d2d;
  --vs-muted:          #6b6b6b;
  --vs-border:         #e0e0e0;
  --vs-border-strong:  #c8c8c8;

  --vs-radius:         8px;
  --vs-radius-sm:      6px;

  --vs-shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
  --vs-shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
  --vs-shadow-md:  0 6px 20px rgba(0, 0, 0, 0.10);

  --vs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             Helvetica, Arial, sans-serif;

  --vs-header-h: 56px;
  --vs-max-w: 1160px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--vs-font);
  background: var(--vs-bg);
  color: var(--vs-text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Container ---------- */
.vs-container {
  width: 100%;
  max-width: var(--vs-max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- Buttons ---------- */
.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--vs-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.vs-btn:active { transform: translateY(1px); }

.vs-btn-accent {
  background: var(--vs-accent);
  color: #fff;
  border-color: var(--vs-accent);
}
.vs-btn-accent:hover { background: var(--vs-accent-hover); border-color: var(--vs-accent-hover); }

.vs-btn-outline {
  background: transparent;
  color: var(--vs-header);
  border-color: var(--vs-border-strong);
}
.vs-btn-outline:hover { background: var(--vs-header); color: #fff; border-color: var(--vs-header); }

.vs-btn-block { width: 100%; }

/* ---------- Header ---------- */
.vs-header {
  background: #fff;
  color: var(--vs-text);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  min-height: var(--vs-header-h);
  border-bottom: 1px solid #dadada;
}

.vs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--vs-header-h);
}

.vs-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--vs-text);
}
.vs-logo-icon {
  height: 26px;
  width: auto;
  margin-right: 0.4rem;
}
.vs-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #6d6e71;
}
.vs-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.15rem 0.4rem;
  background: var(--vs-accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Burger */
.vs-burger {
  background: none;
  border: 0;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border-radius: 6px;
}
.vs-burger:hover { background: rgba(0,0,0,0.05); }
.vs-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vs-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.vs-burger span + span { margin-top: 5px; }
.vs-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vs-burger.is-active span:nth-child(2) { opacity: 0; }
.vs-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav */
.vs-nav {
  position: fixed;
  top: var(--vs-header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--vs-border);
  padding: 0.75rem 1rem 1.25rem;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  max-height: calc(100vh - var(--vs-header-h));
  overflow-y: auto;
}
.vs-nav.is-open { transform: translateY(0); }

.vs-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.vs-nav a {
  display: block;
  color: var(--vs-text);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: var(--vs-radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease;
  letter-spacing: 0.01em;
}
.vs-nav a:hover { background: var(--vs-bg); }
.vs-nav .vs-btn-accent {
  margin-top: 0.5rem;
  text-align: center;
  color: #fff;
}
.vs-nav .vs-btn-accent:hover { background: var(--vs-accent-hover); }

/* ---------- Breadcrumb ---------- */
.vs-breadcrumb {
  padding: 0.9rem 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--vs-muted);
  letter-spacing: 0.01em;
}
.vs-breadcrumb a {
  color: var(--vs-accent);
  text-decoration: none;
  font-weight: 600;
}
.vs-breadcrumb a:hover { text-decoration: underline; }
.vs-breadcrumb span { margin-inline: 0.35rem; }
.vs-breadcrumb [aria-current="page"] { color: var(--vs-muted); font-weight: 500; }

/* ---------- Page header ---------- */
.vs-page-head {
  padding: 0.75rem 0 1.25rem;
}
.vs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vs-accent);
  margin-bottom: 0.5rem;
}
.vs-eyebrow-badge {
  background: var(--vs-accent);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
}
.vs-page-head h1 {
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--vs-header);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.vs-page-head .vs-tagline {
  color: var(--vs-muted);
  font-size: 0.875rem;
  max-width: 70ch;
  line-height: 1.55;
}


/* ---------- Layout grid ---------- */
.vs-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "listings"
    "loadmore"
    "info"
    "sidebar";
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}
.vs-listings  { grid-area: listings; }
.vs-load-more { grid-area: loadmore; }
.vs-sidebar   { grid-area: sidebar; }
.vs-info      { grid-area: info; }

/* ---------- Listing cards (horizontal) ---------- */
.vs-listings {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.vs-card {
  display: flex;
  flex-direction: row;
  background: var(--vs-card);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  overflow: hidden;
  box-shadow: var(--vs-shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.vs-card-featured {
  border-color: #fe7e22;
  border-width: 1px;
}

.vs-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vs-shadow-md);
  border-color: var(--vs-accent);
}
.vs-card:focus-visible {
  outline: 3px solid var(--vs-accent);
  outline-offset: 2px;
}

.vs-card-img {
  position: relative;
  width: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #7ab932, #2d2d2d);
  flex-shrink: 0;
}
.vs-card:nth-child(6n+1) .vs-card-img { background: linear-gradient(135deg, #7ab932, #2d2d2d); }
.vs-card:nth-child(6n+2) .vs-card-img { background: linear-gradient(135deg, #2d2d2d, #7ab932); }
.vs-card:nth-child(6n+3) .vs-card-img { background: linear-gradient(135deg, #4a8c1a, #2d2d2d); }
.vs-card:nth-child(6n+4) .vs-card-img { background: linear-gradient(135deg, #3a5f1e, #7ab932); }
.vs-card:nth-child(6n+5) .vs-card-img { background: linear-gradient(135deg, #7ab932, #4a8c1a); }
.vs-card:nth-child(6n)   .vs-card-img { background: linear-gradient(135deg, #2d2d2d, #4a8c1a); }

.vs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(45, 45, 45, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.vs-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
}
.vs-badge.online .vs-badge-dot {
  background: var(--vs-online);
  animation: vsPulse 2s infinite;
}
.vs-badge.recent .vs-badge-dot {
  background: var(--vs-recent);
}
@keyframes vsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.vs-card-time {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(45, 45, 45, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.vs-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.vs-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vs-header);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}

.vs-card-desc {
  color: var(--vs-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.vs-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  background: var(--vs-bg);
  border: 1px solid var(--vs-border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--vs-muted);
  white-space: nowrap;
}

.vs-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vs-view-btn {
  display: inline-block;
  background: var(--vs-accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--vs-radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.vs-view-btn::after { content: " \2192"; }
.vs-card:hover .vs-view-btn { background: var(--vs-accent-hover); }

.vs-card-user {
  display: block;
  font-size: 0.8125rem;
  color: var(--vs-muted);
  font-weight: 600;
  margin-bottom: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Sidebar ---------- */
.vs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.vs-widget {
  background: var(--vs-card);
  border: 1px solid var(--vs-border);
  border-left: 3px solid var(--vs-accent);
  border-radius: var(--vs-radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--vs-shadow-xs);
}

.vs-widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vs-header);
  margin-bottom: 0.75rem;
}

.vs-city-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.vs-city-list a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: var(--vs-radius-sm);
  color: var(--vs-text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
}
.vs-city-list a:hover {
  background: var(--vs-bg);
  color: var(--vs-accent);
  padding-left: 0.85rem;
}

.vs-highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.vs-highlight-list li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vs-text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}
.vs-highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  background: var(--vs-accent);
  border-radius: 50%;
}

/* ---------- Load more ---------- */
.vs-load-more {
  text-align: center;
  padding: 0.5rem 0;
}

/* ---------- Info section ---------- */
.vs-info {
  background: #fff;
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius);
  padding: 1.25rem 1.1rem;
  box-shadow: var(--vs-shadow-xs);
}
.vs-info h2 {
  font-size: 1.25rem;
  color: var(--vs-header);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.vs-info-lead {
  color: var(--vs-muted);
  font-size: 0.875rem;
  margin-bottom: 1.1rem;
  line-height: 1.65;
}
.vs-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.vs-info-card {
  background: var(--vs-bg);
  border-radius: var(--vs-radius-sm);
  padding: 1rem;
  border: 1px solid var(--vs-border);
}
.vs-info-card h3 {
  font-size: 0.875rem;
  color: var(--vs-header);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.vs-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.vs-info-card li {
  font-size: 0.8125rem;
  color: var(--vs-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}
.vs-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  background: var(--vs-accent);
  border-radius: 50%;
}

.vs-safety {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 0.85rem 1rem;
  border-radius: var(--vs-radius-sm);
  font-size: 0.8125rem;
  color: #78350f;
  line-height: 1.55;
}
.vs-safety strong { color: #78350f; }

/* ---------- Footer ---------- */
.vs-footer {
  background: var(--vs-header);
  color: #a0a0a0;
  padding: 2rem 0 1.25rem;
  margin-top: auto;
}

.vs-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem 1rem;
  margin-bottom: 1.75rem;
}

.vs-footer-brand { grid-column: 1 / -1; }
.vs-footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}
.vs-footer-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.vs-footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  background: var(--vs-accent);
  color: #fff;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.vs-footer-col p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #858585;
}
.vs-footer-heading {
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.vs-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.vs-footer-col a {
  color: #858585;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}
.vs-footer-col a:hover { color: #fff; }

.vs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #858585;
}
.vs-footer-bottom p + p { margin-top: 0.4rem; }
.vs-footer-disclaimer {
  font-size: 0.65rem;
  line-height: 1.5;
  color: #6b6b6b;
  max-width: 70ch;
  margin-inline: auto;
}

/* =========================================================
   Breakpoints
   ========================================================= */

@media (min-width: 560px) {
  .vs-card-img {
    width: 180px;
  }
  .vs-card-body { padding: 1rem 1.1rem; }
  .vs-card-desc { -webkit-line-clamp: 3; }
  .vs-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .vs-container { padding-inline: 1.5rem; }
  .vs-page-head h1 { font-size: 2rem; }
  .vs-card-img { width: 220px; }
  .vs-card-title { font-size: 1.0625rem; }
  .vs-info { padding: 1.75rem 1.5rem; }
  .vs-info h2 { font-size: 1.5rem; }
  .vs-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
  .vs-footer-brand { grid-column: auto; }
  .vs-breadcrumb { padding: 1.1rem 0 0.35rem; }
}

@media (min-width: 980px) {
  .vs-burger { display: none; }

  .vs-nav {
    position: static;
    transform: none;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .vs-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
  }
  .vs-nav a {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    color: var(--vs-text);
  }
  .vs-nav a:hover { background: var(--vs-bg); }
  .vs-nav .vs-btn-accent {
    margin-top: 0;
    margin-left: 0.4rem;
    padding: 0.6rem 1.1rem;
    color: #fff;
  }
  .vs-nav .vs-btn-accent:hover { background: var(--vs-accent-hover); }

  .vs-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas:
      "listings sidebar"
      "loadmore sidebar"
      "info     sidebar";
    gap: 1.25rem 1.75rem;
    align-items: start;
    padding-bottom: 2rem;
  }

  .vs-sidebar {
    position: sticky;
    top: calc(var(--vs-header-h) + 1rem);
    align-self: start;
  }

  .vs-page-head h1 { font-size: 2.25rem; }
  .vs-page-head { padding: 1rem 0 1.5rem; }
  .vs-card-img { width: 220px; }
  .vs-card-title { font-size: 1.125rem; }
  .vs-info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
