/* Modern Social Media widget. Colors are controlled per item in Theme Settings. */
.asanwp-social-widget {
  --asanwp-social-border: rgb(255 255 255 / 18%);
}

.asanwp-social-widget .asanwp-social-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asanwp-social-widget .asanwp-social-list > li {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asanwp-social-widget .asanwp-social-list > li::before,
.asanwp-social-widget .asanwp-social-list > li::marker {
  content: none;
  display: none;
}

.asanwp-social-card {
  display: flex !important;
  align-items: center;
  gap: .95rem;
  min-height: 58px;
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  color: var(--asanwp-social-color, #fff) !important;
  background: var(--asanwp-social-bg, #374151);
  border: 1px solid var(--asanwp-social-border);
  border-radius: 12px;
  box-shadow: 0 7px 20px rgb(15 23 42 / 10%);
  text-decoration: none;
  isolation: isolate;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.asanwp-social-card:hover,
.asanwp-social-card:focus-visible {
  color: var(--asanwp-social-hover-color, #fff) !important;
  background: var(--asanwp-social-hover-bg, #1f2937);
  box-shadow: 0 12px 26px rgb(15 23 42 / 16%);
  text-decoration: none;
  transform: translateY(-2px);
}

.asanwp-social-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary-color, #ffc21f) 45%, transparent);
  outline-offset: 2px;
}

.asanwp-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: currentColor;
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 10px;
}

.asanwp-social-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
}

.asanwp-social-icon i::before {
  display: block;
  margin: 0 auto;
}

.asanwp-social-name {
  min-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asanwp-social-external {
  color: currentColor;
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.asanwp-social-card:hover .asanwp-social-external,
.asanwp-social-card:focus-visible .asanwp-social-external {
  opacity: 1;
  transform: translate(-2px, -2px);
}

[data-theme="dark"] .asanwp-social-card {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 8px 22px rgb(0 0 0 / 18%);
}

@media (min-width: 768px) {
  .widget-area:not(.sidebar-column) .asanwp-social-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .asanwp-social-card,
  .asanwp-social-external {
    transition: none;
  }
}
