/* Social Icons Container */
.eafe-social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Social Icon Item */
.eafe-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  line-height: 1;
}

/* Default View */
.eafe-social-view-default .eafe-social-icon {
  background: none !important;
  border: none !important;
}

/* Stacked View */
.eafe-social-view-stacked .eafe-social-icon {
  background-color: #666;
  color: white;
}

/* Framed View */
.eafe-social-view-framed .eafe-social-icon {
  border: 2px solid #666;
  background: transparent;
  color: #666;
}

/* Shapes */
.eafe-social-shape-circle .eafe-social-icon {
  border-radius: 50%;
}

.eafe-social-shape-square .eafe-social-icon {
  border-radius: 0;
}

.eafe-social-shape-rounded .eafe-social-icon {
  border-radius: 5px;
}

.eafe-social-shape-none .eafe-social-icon {
  border-radius: 0;
}

/* Icon Styling */
.eafe-social-icon i,
.eafe-social-icon svg {
  transition: all 0.3s ease;
}

.eafe-social-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Labels */
.eafe-social-label {
  font-size: 0.875em;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Hover Effects */
.eafe-social-icon:hover {
  transform: translateY(-2px);
}

.eafe-social-view-default .eafe-social-icon:hover {
  transform: translateY(-2px) scale(1.1);
}

/* Platform-specific colors (automatic) - Only apply when no custom colors */
.eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-facebook {
  color: #1877f2;
}
.eafe-social-view-stacked
  .eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-facebook,
.eafe-social-view-framed
  .eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-facebook:hover {
  background-color: #1877f2;
  border-color: #1877f2;
  color: white;
}

.eafe-social-icon:not([class*='elementor-repeater-item-']).eafe-social-twitter {
  color: #1da1f2;
}
.eafe-social-view-stacked
  .eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-twitter,
.eafe-social-view-framed
  .eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-twitter:hover {
  background-color: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

.eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-instagram {
  color: #e4405f;
}
.eafe-social-view-stacked
  .eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-instagram,
.eafe-social-view-framed
  .eafe-social-icon:not(
    [class*='elementor-repeater-item-']
  ).eafe-social-instagram:hover {
  background-color: #e4405f;
  border-color: #e4405f;
  color: white;
}

/* Add similar rules for other platforms... */

/* Individual icon colors will override these with !important */

/* No Link State */
.eafe-social-no-link {
  cursor: not-allowed;
  opacity: 0.6;
}

.eafe-social-no-link:hover {
  transform: none !important;
}

/* Focus States for Accessibility */
.eafe-social-link:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
  border-radius: 2px;
}

.eafe-social-icon:focus {
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .eafe-social-icons {
    justify-content: center;
  }

  .eafe-social-label {
    display: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .eafe-social-view-default
    .eafe-social-icon:not([class*='elementor-repeater-item-']) {
    color: #e2e8f0;
  }

  .eafe-social-view-framed
    .eafe-social-icon:not([class*='elementor-repeater-item-']) {
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .eafe-social-view-stacked
    .eafe-social-icon:not([class*='elementor-repeater-item-']) {
    background-color: #4a5568;
    color: #e2e8f0;
  }
}

/* Animation for better UX */
.eafe-social-icon {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .eafe-social-icon {
    animation: none;
    transition: none;
  }

  .eafe-social-icon:hover {
    transform: none;
  }
}
