:host {
  display: block;
  width: 100%;
  position: relative;
}

.support-section-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  overflow: hidden;
 
  ::ng-deep .p-card-body {
    padding: 0;
  }
 
  ::ng-deep .p-card-content {
    padding: 0;
  }
}

.support-content {
  position: relative;
  z-index: 1;
}

.support-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
 
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.25rem;
  }
}

.support-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  
  // Shimmer effect
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    transition: left 0.6s ease;
  }
 
  &:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--text-color);
    
    &::before {
      left: 100%;
    }
    
    .support-icon {
      transform: scale(1.05);
      
      &.github-icon {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
        
        .star-overlay {
          animation: twinkle-enhanced 0.6s ease-in-out;
        }
      }
      
      &.sponsor-icon {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
      }
      
      &.donate-icon {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
        animation: heartbeat-fast 0.4s ease-in-out infinite;
      }
    }
    
    .support-title {
      color: var(--primary-color);
    }
  }
 
  &.sponsor-placeholder {
    cursor: default;
    
    .support-description {
      animation: pulse-text 2s ease-in-out infinite;
    }
   
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      border-color: var(--surface-border);
      
      .support-icon {
        transform: scale(1.02);
      }
    }
  }
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  ::ng-deep i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
  }
 
  &.github-icon {
    background: linear-gradient(135deg, #24292e, #1a202c);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
   
    .star-overlay {
      position: absolute;
      font-size: 1rem;
      top: -3px;
      right: -3px;
      color: #ffc107;
      filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.6));
      animation: twinkle 3s ease-in-out infinite;
    }
  }
 
  &.sponsor-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
  }
 
  &.donate-icon {
    background: linear-gradient(135deg, #9300ff, #c266ff);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    animation: heartbeat 2.5s ease-in-out infinite;
  }
}

.support-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.support-title {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.support-description {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  opacity: 0.85;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

// Enhanced Animations
@keyframes heartbeat {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  }
}

@keyframes heartbeat-fast {
  0%, 100% { 
    transform: rotate(0deg) scale(1.1); 
  }
  50% { 
    transform: rotate(0deg) scale(1.2); 
  }
}

@keyframes twinkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
  }
  25% { 
    opacity: 0.5; 
    transform: scale(1.2) rotate(45deg); 
  }
  75% { 
    opacity: 0.8; 
    transform: scale(0.9) rotate(-45deg); 
  }
}

@keyframes twinkle-enhanced {
  0% { 
    transform: scale(1) rotate(0deg); 
    color: #ffc107;
  }
  50% { 
    transform: scale(1.4) rotate(180deg); 
    color: #ffeb3b;
  }
  100% { 
    transform: scale(1.2) rotate(360deg); 
    color: #ffc107;
  }
}

@keyframes pulse-text {
  0%, 100% { 
    opacity: 0.85; 
    transform: scale(1);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.02);
  }
}

/* Add a separate animation for the heart icon */
@keyframes heartbeat-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.support-icon.donate-icon {
  animation: heartbeat 2.5s ease-in-out infinite;
  
  ::ng-deep i {
    animation: heartbeat-icon 2.5s ease-in-out infinite;
    transition: none; /* Remove conflicting transition */
  }
}

// Loading animation for initial render
.support-link {
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
  
  &:nth-child(1) { animation-delay: 0.1s; }
  &:nth-child(2) { animation-delay: 0.2s; }
  &:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}