/* ==========================================
   donut-modern-overrides.css (load after donut.css)
   Goal: modernize visuals without changing templates
   ========================================== */

/* 1) Design tokens */
:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --primary: #6d28d9;        /* modern purple */
  --primary-2: #4c1d95;
  --accent: #f59e0b;

  --border: rgba(17,24,39,.10);
  --shadow: 0 8px 24px rgba(17,24,39,.08);
  --shadow-sm: 0 2px 10px rgba(17,24,39,.06);

  --radius: 14px;
  --radius-sm: 10px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;

  --maxw: 1100px;
}

/* 5) Cards: turn your bordered boxes into modern surfaces */
.qa-part-q-view,
.qa-feed,
.qa-widget-side,
.qa-nav-cat,
.qa-error,
.qa-sidebar,
.qa-form-table-boxed{
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}





/* ================================
   STEP 1 — Modernize Question List Items
   Scope: only the question list entries
   ================================ */

/* 1) Make each question row look like a modern card */
.qa-q-list-item {
  background: #fff;
/*  border: 1px solid rgba(0,0,0,.10);*/
  border-radius: 14px;
  padding: 10px 6px;
  margin: 0 0 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Hover: subtle lift */
.qa-q-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* 2) Remove “table-like” separators inside items if your theme adds them */
.qa-q-list-item * {
  border-top-color: transparent; /* harmless if not present */
}

/* 3) Give the main content area a clean rhythm (some themes wrap this differently) */
.qa-q-item-main,
.qa-q-list-item .qa-q-item-main {
  padding: 0; /* since we padded the card itself */
}

/* 4) Title hierarchy: stronger, more modern */
.qa-q-item-title a {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

/* 5) Meta text: smaller + calmer */
.qa-q-item-meta,
.qa-q-item-who,
.qa-q-item-when,
.qa-q-item-where {
  font-size: 13px;
  opacity: .75;
}

/* 6) Optional: tighten spacing between title and meta */
.qa-q-item-title {
  margin-bottom: 6px;
}
.qa-q-item-meta {
  margin-top: 6px;
}

/* ================================
   STEP 1.1 — Vertical spacing between list items
   ================================ */


/* Prevent accidental collapse caused by inner rows */
.qa-q-list-item > .row {
  margin-left: 0;
  margin-right: 0;
}

/* Ensure list container does not collapse margins */
.qa-q-list {
  display: block;
}


/* Sidebar currently purple; if you want a more modern “info card” */
.qa-sidebar{
  background: linear-gradient(135deg, rgba(109,40,217,.10), rgba(245,158,11,.08));
  color: var(--text);
  border-color: var(--border) !important;
}
.qa-sidebar a{ color: var(--primary-2); }

/* ================================
   STEP 2 — List item meta: vote/status becomes compact + modern
   ================================ */

/* ================================
   STEP 2 — List item meta: vote/status becomes compact + modern
   ================================ */

.qa-q-list-item .qa-voting,
.qa-q-list-item .qa-a-count,
.qa-q-list-item .qa-q-item-flags,
.qa-q-list-item .qa-q-item-status{
  border: 1px solid rgba(0,0,0,.08);
  background-color: rgba(0,0,0,.02); /* DO NOT use background: (keeps icons) */
  border-radius: 10px;
  box-shadow: none;
}

.qa-q-list-item .qa-voting{
  padding: 10px 12px;
}

.qa-q-list-item .qa-q-item-status{
  padding: 8px 10px;
}

.qa-q-list-item .qa-voting .qa-vote-count,
.qa-q-list-item .qa-voting .qa-vote-count-pad{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: rgba(0,0,0,.75);
}

.qa-q-list-item .qa-q-item-status,
.qa-q-list-item .qa-q-item-status *{
  font-size: 12px;
  color: rgba(0,0,0,.70);
  text-decoration: none;
}


/* ================================
   PATCH — FIX vote + status widgets
   ================================ */

.qa-q-list-item .qa-voting,
.qa-q-list-item .qa-q-item-status{
  border: 1px solid rgba(0,0,0,.08);
  background-color: rgba(0,0,0,.02); /* keep background-image intact */
  border-radius: 10px;
  box-shadow: none;
}

.qa-q-list-item .qa-voting{
  padding: 10px 12px;
}

.qa-q-list-item .qa-q-item-status{
  padding: 8px 10px;
}

/* vote count layout */
.qa-q-list-item .qa-voting .qa-vote-count{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: rgba(0,0,0,.75);
}

/* quieten only the label/buttons, not everything */
.qa-q-list-item .qa-voting .qa-vote-clear-button,
.qa-q-list-item .qa-voting .qa-vote-up-button,
.qa-q-list-item .qa-voting .qa-vote-down-button{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}
.qa-voting {
height: 80px;
}	

.qa-q-list-item .qa-voting {
    padding: 10px 9px;
}

.qa-vote-one-button {
    position: absolute;
    left: 1px;
    top: 17px;
}
.qa-netvote-count-data {
    display: block;
    margin-top: 16px;
    overflow: hidden;
    padding-left: 13px;
}