/* Base colors */
:root {
  --bg: #000;
  --muted: #bdbdbd;
  --text: #fff;
  --accent: #8a2bff;
  --card-bg: #060606;
  --border: rgba(255,255,255,0.06);
}

/* Wrapper layout */
.acf-results-wrap { color: var(--text); }
.acf-section-title {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 22px 0;
  color: var(--text);
}

/* Search bar */
.acf-searchbar {
  position: relative;
  margin: 0 0 14px 0;
}
.acf-search-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  padding: 12px 44px 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.acf-search-input::placeholder { color: var(--muted); }
.acf-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}
.acf-search-clear:hover { color: #fff; }

/* Sidebar filters */
.acf-filters-widget {
  background: transparent;
  padding: 0;
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.acf-filters-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.acf-filters-title {
  font-size:14px;
  font-weight:600;
  color:var(--text);
}
.acf-clear-filters {
  background:transparent;
  border: none !important;
  color: #fff !important;
  font-size:13px;
  cursor:pointer;
  background: none !important;
  padding: 0px !important;
}

/* Checkbox list (checkmark FIRST, then label) */
.acf-checkbox-list {
  display:flex;
  flex-direction:column;
  gap:8px;
  transition: all 0.3s ease;
}
.acf-checkbox {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  font-size:14px;
  color:var(--muted);
  user-select:none;
  padding:6px 8px;
  border-radius:6px;
  flex-direction: row-reverse;
}
.acf-checkbox:hover { background: rgba(255,255,255,0.02); color:var(--text); }
.acf-checkbox input { position:absolute; opacity:0; pointer-events:none; }

.acf-checkmark {
  width:18px; height:18px; min-width:18px;
  border-radius:4px; border:1.5px solid rgba(255,255,255,0.12);
  background:transparent; box-sizing:border-box; display:inline-block;
  flex-shrink:0;
}
.acf-checkbox input:checked ~ .acf-checkmark {
  background: linear-gradient(180deg, var(--accent), #5b00ff);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(138,43,255,0.15), inset 0 -2px 4px rgba(255,255,255,0.03);
}
.acf-label-text { display:inline-block; flex:1; }

/* Dropdown toggle (mobile only) */
.acf-filter-toggle {
  display: none;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  margin-bottom: 10px;
}
.acf-filter-toggle::after {
  content: "▾";
  float: right;
  font-size: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.acf-filter-toggle.active::after { transform: rotate(180deg); }

/* Skeleton (first paint before AJAX) */
.acf-skeleton { display:grid; gap:14px; padding:8px 0; }
.acf-skel-row {
  height:18px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  animation: acf-shimmer 1.1s linear infinite alternate;
}
@keyframes acf-shimmer {
  from { opacity: .45; }
  to   { opacity: .85; }
}

/* Two-column post cards */
.acf-post-card {
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:32px;
  padding:24px 0;
  border-bottom:1px solid rgba(255,255,255,0.1);
  background:transparent;
}
.acf-card-body {
  flex:1 1 60%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--text);
}
.acf-card-thumb {
  flex:0 0 40%;
  max-width:420px;
  height:220px;
  border-radius:12px;
  overflow:hidden;
  background:#111;
}
.acf-card-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Meta (author + date) */
.acf-meta-row {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--muted);
  margin-bottom:6px;
}
.acf-dot { opacity:0.6; }

/* Title */
.acf-card-title {
  font-size:20px;
  font-weight:700;
  color:var(--text);
  margin:0 0 10px 0;
}
.acf-card-title a {
  color:inherit;
  text-decoration:none;
}
.acf-card-title a:hover {
  color:var(--accent);
}

/* Excerpt */
.acf-card-excerpt {
  font-size:15px;
  color:var(--muted);
  line-height:1.6;
  margin-bottom:16px;
}

/* Read More */
.acf-read-more {
  align-self:flex-start;
  background:#fff;
  color:#000;
  padding:10px 30px;
  border-radius:6px;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  transition:background 0.2s ease;
  display:inline-block !important;
}
.acf-read-more:hover {
  background:#5b00ff;
  color:#fff;
}

/* Footer / Load more */
.acf-footer {
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
#acf-load-more {
  background:#8109E6;
  color:#fff;
  border:0;
  padding:10px 30px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  font-size:16px;
}
.acf-pagination-meta { color:var(--muted); font-size:13px; }

/* Responsive */
@media (max-width: 900px) {
  /* Collapse filter list */
  .acf-checkbox-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
  }
  .acf-checkbox-list.open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
  }

  /* Show toggle button */
  .acf-filter-toggle {
    display: block;
  }

  .acf-filters-header { display: none; }

  /* Post cards stack vertically */
  .acf-post-card { flex-direction: column; }
  .acf-card-thumb { order:-1; width:100%; height:200px; }
}