.sidebar-popular {
  z-index: 50;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-dev-weekly {
  margin-bottom: 1rem;
}

.dev-weekly-ticket {
  position: relative;
  padding: 1.25rem;
  background: #ffffff;
  color: inherit;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dev-weekly-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.18s ease;
}

.dev-weekly-ticket-top:hover {
  opacity: 0.75;
  text-decoration: none;
}

.dev-weekly-ticket-top:hover .dev-weekly-issue {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #0085A1;
}

.dev-weekly-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dev-weekly-title-link:hover {
  text-decoration: none;
}

.dev-weekly-issue {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0085A1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dev-weekly-issue-icon {
  width: 14px;
  height: 12px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.125em;
}

.dev-weekly-issue em {
  font-style: normal;
  color: #2c3e50;
}

.dev-weekly-stamp {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #6c757d;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  white-space: nowrap;
}

.dev-weekly-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.dev-weekly-title-link:hover .dev-weekly-title {
  color: #0085A1;
}

.sidebar-sticky-ad {
  position: sticky;
  top: 80px;
  margin-top: 1.5rem;
  padding: 1rem;
  min-height: 620px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-align: center;
  contain: layout;
}

.sidebar-sticky-ad .adsbygoogle {
  width: 100%;
  display: block;
  min-height: 600px;
}

.sidebar-sticky-ad.ad-unfilled {
  display: none;
}

.sidebar-title {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2c3e50;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title i {
  color: #ff6b35;
  font-size: 1rem;
  width: 1em;
  height: 1em;
  display: inline-block;
}

.popular-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-post-item {
  margin-bottom: 1rem;
}

.popular-post-item:last-child {
  margin-bottom: 0;
}

.popular-post-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.625rem;
  margin: -0.625rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.popular-post-link:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.popular-post-link:hover .popular-post-title {
  color: #0085A1;
}

.popular-post-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.popular-post-link:hover .popular-post-thumb img {
  transform: scale(1.08);
}

.popular-post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.25rem;
}

.popular-post-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.popular-post-title {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.popular-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.popular-post-date {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  color: #868e96;
  font-weight: 500;
}

.popular-post-tag {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  color: #6c757d;
  background: #f2f2f2;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-weight: 500;
}

.sidebar-popular::-webkit-scrollbar {
  width: 4px;
}

.sidebar-popular::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-popular::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 2px;
}

.sidebar-popular::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
  margin: 1.25rem 0;
}

.sidebar-title-tools {
  margin-top: 0;
}

.sidebar-title-tools i {
  color: #0085A1;
}

.sidebar-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-tool-item {
  margin-bottom: 0.75rem;
}

.sidebar-tool-item:last-child {
  margin-bottom: 0;
}

.sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.625rem;
  margin: -0.625rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.sidebar-tool-link:hover {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  text-decoration: none;
}

.sidebar-tool-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0085A1 0%, #00a8cc 100%);
  color: white;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.sidebar-tool-link:hover .sidebar-tool-icon {
  transform: scale(1.05);
}

.sidebar-tool-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-tool-title {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.15s ease;
}

.sidebar-tool-link:hover .sidebar-tool-title {
  color: #0085A1;
}

.sidebar-tool-desc {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  color: #868e96;
}
