/* Sidebar Styles for SiteReview Theme */
.widget-area {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.widget {
  margin-bottom: 30px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.widget ul li a:hover {
  color: var(--secondary-color);
}

/* Popular Sites Widget */
.popular-sites ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popular-site-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.popular-site-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.popular-site-item .site-logo {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
}

.popular-site-item .site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-site-item .site-info {
  flex: 1;
}

.popular-site-item h3 {
  font-size: 14px;
  margin: 0 0 5px 0;
}

.popular-site-item .star-rating {
  font-size: 12px;
}

/* Site Categories Widget */
.site-categories ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-categories ul li a {
  display: flex;
  align-items: center;
}

.site-categories ul li a:before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
  color: var(--secondary-color);
}

/* Recent Posts Widget */
.widget_recent_entries li {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.widget_recent_entries li a {
  font-weight: 500;
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 12px;
  color: #b2bec3;
  margin-top: 3px;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 12px !important;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Search Widget */
.widget_search .search-form {
  position: relative;
}

.widget_search .search-field {
  width: 100%;
  padding: 10px 15px;
  padding-right: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

.widget_search .search-submit {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* Calendar Widget */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
}

.widget_calendar caption {
  margin-bottom: 10px;
  font-weight: 600;
}

.widget_calendar th,
.widget_calendar td {
  padding: 5px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget_calendar tbody a {
  display: block;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto;
  text-decoration: none;
}

/* Media Queries */
@media (max-width: 991px) {
  .widget-area {
    margin-top: 30px;
  }
}