/**
 * BBCPress - Custom Widgets Styling
 */

/* Common Widget Card Item */
.bbc-widget-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bbc-border-color);
  align-items: flex-start;
}

.bbc-widget-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.bbc-widget-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--bbc-grey-bg);
}

.bbc-widget-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bbc-widget-item:hover .bbc-widget-thumb img {
  transform: scale(1.05);
}

.bbc-widget-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bbc-widget-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--bbc-red);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bbc-widget-title {
  font-family: var(--bbc-font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bbc-charcoal);
  margin-bottom: 4px;
}

.bbc-widget-item:hover .bbc-widget-title {
  text-decoration: underline;
}

.bbc-widget-time {
  font-size: 11px;
  color: var(--bbc-grey-mid);
}

/* =========================================
   Popular News Widget (with 1-5 Rank Badges)
   ========================================= */
.bbc-popular-item {
  position: relative;
}

.bbc-popular-rank {
  font-family: 'Outfit', 'BBC Reith Sans', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--bbc-black);
  line-height: 1;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

/* =========================================
   Category List Widget (with Images)
   ========================================= */
.bbc-cat-widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bbc-cat-widget-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bbc-grey-bg);
  border-left: 3px solid var(--bbc-charcoal);
  transition: all var(--bbc-transition-fast);
}

.bbc-cat-widget-item:hover {
  background-color: #ededed;
  border-left-color: var(--bbc-red);
}

.bbc-cat-widget-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bbc-charcoal);
}

.bbc-cat-widget-count {
  font-size: 11px;
  font-weight: 600;
  background-color: var(--bbc-white);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--bbc-grey-dark);
}

/* =========================================
   Newsletter Box Widget
   ========================================= */
.bbc-newsletter-widget {
  background-color: var(--bbc-grey-bg);
  border: 1px solid var(--bbc-grey-border);
  padding: 20px;
}

.bbc-newsletter-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.bbc-newsletter-desc {
  font-size: 13px;
  color: var(--bbc-grey-mid);
  margin-bottom: 14px;
}

.bbc-newsletter-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--bbc-grey-border);
  margin-bottom: 8px;
}

.bbc-newsletter-btn {
  width: 100%;
  background-color: var(--bbc-black);
  color: var(--bbc-white);
  border: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bbc-newsletter-btn:hover {
  background-color: var(--bbc-grey-dark);
}
