/* Social Networks */
.social-networks {
  margin-top: 61px;
  padding-top: 16px;
  text-align: left;
  margin-bottom: 26px;
  padding-bottom: 0;
}

.social-networks h3 {
  margin: 0 0 14px 12px;
  color: #666666;
  font-size: 13px;
  text-align: left;
}

.social-icons-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.social-icon-wrapper {
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5de24;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.social-icon-wrapper .hover-text {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #90773c !important;
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-icon-wrapper:hover .hover-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.social-icon {
  width: 16px;
  height: 16px;
  padding: 6px;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(42%) sepia(10%) saturate(1647%)
    hue-rotate(15deg) brightness(92%) contrast(87%);
}

.social-icon-wrapper:hover {
  transform: scale(1.1);
}

.social-icon-wrapper:hover .social-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

.social-icon-wrapper.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.social-icon-wrapper.has-url {
  cursor: pointer;
}

.social-icon-wrapper.has-url .social-icon:hover {
  transform: scale(1.1);
  border-color: #ffe725;
}

/* Social Modal */
.social-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 90%;
  max-width: 320px;
}

.social-modal.active {
  display: block;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-overlay.active {
  display: block;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.social-option {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s;
  font-size: 11px;
}

.social-option:hover {
  border-color: #ffe725;
}

/* Social Links and Input */
.url-input-container {
  display: none;
  margin-top: 12px;
  position: relative;
}

.url-input {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 8px;
  padding-left: 32px;
}

.url-input:focus {
  border-color: #ffe725;
  outline: none;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #454554;
  text-decoration: none;
  transition: background-color 0.2s;
  margin-bottom: 6px;
  font-size: 11px;
}

.social-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.social-link img {
  width: 16px;
  height: 16px;
}

.add-social {
  width: 100%;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 6px;
  color: #454554;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
}

.add-social:hover {
  background: rgba(0, 0, 0, 0.1);
}

.current-network-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.current-network-icon.visible {
  opacity: 1;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
