/* EBT Latest Posts Widget — Glassy Card Sidebar Style */
.ebt-latest-widget { 
  --ebt-surface: var(--surface, #ffffff);
  --ebt-elevated: var(--surface-elevated, #ffffff);
  --ebt-text: var(--color-text, rgba(0,0,0,.92));
  --ebt-border: var(--color-border, #eaeaea);
  --ebt-brand: var(--brand, var(--color-brand, #36a2ff));
}

/* Heading underline to match the screenshot */
.widget-title.ebt-heading,
.ebt-heading {
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--ebt-text);
  margin: 0 0 10px 0;
  position: relative;
  padding-bottom: 6px;
}
.widget-title.ebt-heading::after,
.ebt-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 3px;
  background: var(--ebt-brand);
  border-radius: 2px;
}

.ebt-posts { 
  list-style: none; 
  margin: 0; 
  padding: 6px 0 0; 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
}

.ebt-item { margin: 0; padding: 0; }

.ebt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.9));
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ebt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0,0,0,.09);
  border-color: rgba(0,0,0,.08);
}

.ebt-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 2px 10px rgba(0,0,0,.08);
}
.ebt-thumb.ebt-thumb--placeholder {
  display: inline-block;
  background: radial-gradient(circle at 30% 30%, #ececec, #d9d9d9);
}

.ebt-meta { 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
  min-width: 0; 
  color: var(--ebt-text);
}
.ebt-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1; 
  -webkit-box-orient: vertical;
}
.ebt-date {
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

.ebt-empty { 
  color: rgba(0,0,0,.6); 
  padding: 6px 2px; 
  font-size: 14px;
}

/* Dark mode (works with body.dark-mode or prefers-color-scheme) */
body.dark-mode .ebt-card,
@media (prefers-color-scheme: dark) {
  body.dark-mode .ebt-card, 
  .ebt-latest-widget .ebt-card {
    background: rgba(25,25,25,.7);
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 12px 34px rgba(0,0,0,.45);
  }
}
body.dark-mode .ebt-date { color: rgba(255,255,255,.65); }
