/* Utility Classes */
.none {
  display: none;
  opacity: 0;
}

/* Blog List Widget */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.blog-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.blog-list__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.blog-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.blog-list__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.blog-list__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.blog-list__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.blog-list__author {
  color: var(--accent);
  font-weight: 600;
}

.blog-list__time {
  position: relative;
  padding-left: 10px;
}

.blog-list__time::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.blog-list__arrow {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.blog-list__item:hover .blog-list__arrow {
  color: var(--primary);
  transform: translateX(2px);
}

@media (max-width: 560px) {
  .blog-list__item {
    padding: 12px 14px;
    gap: 12px;
  }

  .blog-list__icon {
    width: 36px;
    height: 36px;
  }

  .blog-list__icon svg {
    width: 16px;
    height: 16px;
  }

  .blog-list__title {
    font-size: 14px;
  }

  .blog-list__arrow {
    display: none;
  }
}

/* Sidebar Search Widget */
.sidebar-search__wrapper {
  position: relative;
  flex: 1;
}

.search-popup {
  display: none;
  position: absolute;
  top: 100%;
  width: 350px;
  z-index: 9999;
  background: #1a1a2e;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .search-popup {
    left: 0;
    right: 0;
    width: auto;
  }
}

@media (min-width: 768px) {
  .search-popup {
    left: -10px;
  }
}

.search-popup.active {
  display: block;
}

.search-popup__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-popup__item:last-child {
  border-bottom: none;
}

.search-popup__item:hover,
.search-popup__item.active {
  background: rgba(255, 255, 255, 0.08);
}

.search-popup__image {
  width: 75px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #2a2a3e;
}

.search-popup__name {
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-popup__empty,
.search-popup__loading {
  padding: 14px 12px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.search-popup__footer {
  display: block;
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.15s ease;
}

.search-popup__footer:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #a0b0ff;
}

/* User Action Widget */
.btn-notification {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-notification.is-active {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.4);
}
.btn-notification.is-active svg {
  fill: #ffc107;
  stroke: #ffc107;
}
.btn-notification:hover {
  transform: translateY(-1px);
}
