/* ─── AV Sidebar Widgets Stylesheet ─── */

/* Shared Card styles */
.av-sidebar-card {
  background: var(--av-bg, #faf7f2);
  border-radius: var(--av-r-lg, 14px);
  padding: 24px;
  border: 1px solid var(--av-line, #e7e1d6);
  display: flex;
  flex-direction: column;
}

.av-sidebar-card-title {
  font-family: var(--av-font-display, inherit);
  font-size: 14px;
  font-weight: 800;
  color: var(--av-navy, #1a1a1f);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--av-rust, #c4202e);
}

/* 1. Categories Widget styles */
.av-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.av-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--av-r, 10px);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  color: var(--av-ink-2, #3a3a40);
  font-size: 14px;
  font-weight: 500;
}

.av-cat-item:hover,
.av-cat-item.av-active {
  background: var(--av-navy, #1a1a1f);
  color: var(--av-paper, #ffffff);
}

.av-cat-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--av-line, #e7e1d6);
  color: var(--av-ink-3, #6b6b73);
  transition: background .15s, color .15s;
}

.av-cat-item:hover .av-cat-count,
.av-cat-item.av-active .av-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--av-paper, #ffffff);
}

/* 2. Most Popular Posts Widget styles */
.av-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.av-pop-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  cursor: pointer;
}

.av-pop-num {
  font-family: var(--av-font-display, inherit);
  font-size: 20px;
  font-weight: 800;
  color: var(--av-line, #e7e1d6);
  flex-shrink: 0;
  line-height: 1;
  width: 24px;
}

.av-pop-title {
  font-family: var(--av-font, inherit);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-navy, #1a1a1f);
  line-height: 1.4;
  transition: color .15s;
}

.av-pop-item:hover .av-pop-title {
  color: var(--av-rust, #c4202e);
}

.av-pop-meta {
  font-family: var(--av-font, inherit);
  font-size: 11px;
  color: var(--av-ink-3, #6b6b73);
  margin-top: 3px;
}

/* 3. Sidebar CTA Widget styles */
.av-sidebar-cta {
  background: var(--av-navy, #1a1a1f);
  border-radius: var(--av-r-lg, 14px);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.av-sidebar-cta h3 {
  font-family: var(--av-font-display, inherit);
  font-size: 16px;
  font-weight: 800;
  color: var(--av-paper, #ffffff);
  margin: 0 0 8px;
  line-height: 1.3;
}

.av-sidebar-cta p {
  font-family: var(--av-font, inherit);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
  line-height: 1.55;
}

.av-sidebar-cta .av-btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 12px;
  box-sizing: border-box;
}

.av-sidebar-cta .av-btn + .av-btn {
  margin-top: 8px;
}

/* 4. Sidebar Service Areas Widget styles */
.av-sidebar-areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.av-sidebar-area-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.av-sidebar-area-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--av-paper, #ffffff);
}
