/* ============================================
   Sidebar Widget (Base)
   ============================================ */
.sidebar-widget {
  margin-bottom: 4rem;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  background: var(--color-accent);
  border-radius: 0;
}

.widget-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--color-text);
  line-height: 1.3;
}

/* ============================================
   Popular Posts
   ============================================ */
.sidebar-widget.popular {
  background: #fff200;
  border: 1px solid #f0e6a0;
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  counter-reset: popular;
}

.popular-article {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: none;
  border: none;
  padding: 0;
  counter-increment: popular;
}

.popular-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 2rem;
  text-align: right;
}
.popular-number::before {
  content: counter(popular);
}

.popular-content {
  flex: 1;
}

.popular-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.popular-content h4 a {
  color: var(--color-text);
  text-decoration: none;
}

.popular-content h4 a:hover {
  color: var(--color-primary);
}

.popular-content time {
  display: none;
}

/* ============================================
   Categories
   ============================================ */
.sidebar-widget.categories {
  background: none;
  border: none;
  padding: 0;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.category-link {
  background: #fff;
  color: var(--color-text);
  padding: 0.6rem 1.2rem;
  border-radius: 0.1rem;
  font-size: 1.4rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.category-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ============================================
   Newsletter
   ============================================ */
.sidebar-widget.newsletter {
  background: lab(90% -5 15); /* pastel biru lembut */
  border: 1px solid #cfe2ff;
}

.sidebar-widget.newsletter p {
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input[type="email"] {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.4rem;
  font-size: 1.4rem;
  width: 100%;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form button:hover {
  background: #a00;
}

/* ============================================
   Sidebar Podcast
   ============================================ */
.sidebar-widget.podcast {
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 1.6rem;
  border-radius: 0;
}

.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.podcast-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.podcast-thumb {
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  overflow: hidden;
}

.podcast-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-info h4 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
}

.podcast-info h4 a {
  color: var(--color-text);
  text-decoration: none;
}

.podcast-info h4 a:hover {
  color: var(--color-primary);
}

/* Breaking News */
.sidebar-widget.breaking-widget {
  background: #bb1919;
  color: #fff;
  padding: 1.6rem;
  margin-bottom: 4rem;
  border-radius: 0;
  max-height: 40rem;
  overflow-y: auto;
}

.sidebar-widget.breaking-widget .widget-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff;
}

.breaking-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.breaking-scroll ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.breaking-scroll li {
  margin-bottom: 0.8rem;
  padding-left: 0;
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #fff;
}

.breaking-scroll li::before {
  content: "• ";
  color: #ffd312;
  font-weight: bold;
  margin-right: 0.6rem;
  display: inline-block;
  width: 1rem;
}

.breaking-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
}
.breaking-link:hover {
  text-decoration: none;
  color: #ffd312;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
  .sidebar-widget {
    padding: 1.6rem;
  }
}
