/* Base Styles */
.ecb-button-wrapper {
  display: flex;
  width: 100%;
}

.ecb-button-wrapper.ecb-align-left {
  justify-content: flex-start;
}

.ecb-button-wrapper.ecb-align-center {
  justify-content: center;
}

.ecb-button-wrapper.ecb-align-right {
  justify-content: flex-end;
}

/* Common Button Styles */
.ecb-shimmer-button,
.ecb-rainbow-button,
.ecb-shiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

/* Size Variations */
.ecb-size-small {
  padding: 8px 16px;
  font-size: 14px;
}

.ecb-size-medium {
  padding: 12px 24px;
  font-size: 16px;
}

.ecb-size-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Shimmer Button */
.ecb-shimmer-button {
  background: var(--bg-color, #000);
  color: var(--text-color, #fff);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ecb-shimmer-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--shimmer-color, rgba(255, 255, 255, 0.3)), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.ecb-shimmer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ecb-shimmer-text {
  position: relative;
  z-index: 1;
}

/* Rainbow Button */
.ecb-rainbow-button {
  background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
  background-size: 300% 100%;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
}

.ecb-rainbow-button.ecb-speed-slow {
  animation: rainbow 6s linear infinite;
}

.ecb-rainbow-button.ecb-speed-normal {
  animation: rainbow 4s linear infinite;
}

.ecb-rainbow-button.ecb-speed-fast {
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.ecb-rainbow-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 128, 0.6);
}

.ecb-rainbow-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* Shiny Button */
.ecb-shiny-button {
  background: var(--primary-color, #6366f1);
  color: var(--text-color, #fff);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.ecb-shine-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.ecb-shiny-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.ecb-shiny-button:hover .ecb-shine-effect {
  animation: shine 1.5s infinite;
}

.ecb-shiny-text {
  position: relative;
  z-index: 1;
}

/* Custom Code Button Wrapper */
.ecb-custom-code-wrapper {
  display: flex;
  width: 100%;
}

.ecb-custom-code-wrapper.ecb-align-left {
  justify-content: flex-start;
}

.ecb-custom-code-wrapper.ecb-align-center {
  justify-content: center;
}

.ecb-custom-code-wrapper.ecb-align-right {
  justify-content: flex-end;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .ecb-size-small {
    padding: 6px 12px;
    font-size: 12px;
  }

  .ecb-size-medium {
    padding: 10px 20px;
    font-size: 14px;
  }

  .ecb-size-large {
    padding: 12px 24px;
    font-size: 16px;
  }
}

/* Animated List Styles */
.ecb-animated-list-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px;
}

.ecb-animated-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
}

.ecb-list-item {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-height: fit-content;
  cursor: pointer;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--item-border-radius, 16px);
  background-color: var(--item-bg-color, #ffffff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  animation: slideIn 0.5s ease-out;
  opacity: 0;
  transform: translateY(-20px);
  animation-fill-mode: forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ecb-hover-enabled .ecb-list-item:hover {
  transform: scale(1.03);
}

.ecb-list-item-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.ecb-list-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  flex-shrink: 0;
}

.ecb-list-item-icon span {
  font-size: 18px;
}

.ecb-list-item-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.ecb-list-item-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--item-text-color, #000);
  white-space: pre-wrap;
}

.ecb-list-item-name {
  font-size: 14px;
}

.ecb-list-item-separator {
  margin: 0 4px;
}

.ecb-list-item-time {
  font-size: 12px;
  color: #6b7280;
}

.ecb-list-item-description {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 2px;
}

.ecb-list-gradient {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 25%;
  background: linear-gradient(to top, var(--item-bg-color, #ffffff), transparent);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .ecb-list-item {
    background: transparent;
    backdrop-filter: blur(12px);
    box-shadow: 0 -20px 80px -20px rgba(255, 255, 255, 0.12) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ecb-list-item-description {
    color: rgba(255, 255, 255, 0.6);
  }

  .ecb-list-item-time {
    color: #9ca3af;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ecb-list-item {
    max-width: 100%;
    padding: 12px;
  }

  .ecb-list-item-icon {
    width: 36px;
    height: 36px;
  }

  .ecb-list-item-icon span {
    font-size: 16px;
  }

  .ecb-list-item-header {
    font-size: 14px;
  }

  .ecb-list-item-name {
    font-size: 12px;
  }

  .ecb-list-item-description {
    font-size: 12px;
  }
}
