/* Link Card Styling */
.link-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Golden shine effect */
.link-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.1) 40%,
    rgba(255, 215, 0, 0.3) 50%,
    rgba(255, 215, 0, 0.1) 60%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 1;
  z-index: 1;
  animation: goldenShine 1.5s ease-in-out infinite;
}

/* Golden border effect */
.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #ffd700,
    #ffed4e,
    #ffd700,
    #ffed4e,
    #ffd700
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.link-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15), 0 8px 25px rgba(0,0,0,0.1);
  border-color: transparent;
}

.link-card:hover::before {
  opacity: 1;
  animation: goldenShine 1.5s ease-in-out infinite;
}

.link-card:hover::after {
  opacity: 1;
}

/* Golden shine animation */
@keyframes goldenShine {
  0% {
    transform: rotate(45deg) translateX(-100%) translateY(-100%);
  }
  50% {
    transform: rotate(45deg) translateX(0%) translateY(0%);
  }
  100% {
    transform: rotate(45deg) translateX(100%) translateY(100%);
  }
}

/* Link Header */
.link-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.link-header h4 {
  margin: 0 0 8px 0;
  color: #000000;
  font-size: 1.2rem;
}

.link-url {
  margin: 0;
  color: #000000;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Link Actions */
.link-actions {
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 100;
}

.edit-btn, .hapus-btn {
  background: linear-gradient(135deg, #22c44d 0%, #16a34a 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(34, 196, 77, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 100 !important;
  min-width: 120px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.edit-btn::before, .hapus-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.edit-btn:hover::before, .hapus-btn:hover::before {
  left: 100%;
}

.edit-btn:hover, .hapus-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(34, 196, 77, 0.4) !important;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

/* Specific styling for hapus button */
.hapus-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3) !important;
}

.hapus-btn:hover {
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4) !important;
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
}

/* Enhanced testimonials list styling */
.testimonials-list {
  gap: 20px;
}

.testimonials-item {
  transition: all 0.3s ease;
}

.testimonials-item:hover {
  transform: scale(1.02);
}

/* Content card enhanced styling */
.content-card {
  padding: 25px;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* Ensure link text is above shine effects */
[data-testimonials-text] {
  position: relative;
  z-index: 100;
}

[data-testimonials-text] a {
  position: relative;
  z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .link-header h4 {
    font-size: 1.1rem;
  }
  
  .link-url {
    font-size: 0.9rem;
  }
  
  .edit-btn {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  .link-header h4 {
    font-size: 1rem;
  }
  
  .link-url {
    font-size: 0.85rem;
  }
  
  .edit-btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
  }
}

/* Testimonial Form Styling */
.testimonial-form-container {
  max-width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

.testimonial-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.testimonial-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c44d, #ffd700, #22c44d);
  background-size: 200% 100%;
  animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.form-group {
  margin-bottom: 25px;
}

.testimonial-textarea {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  transition: all 0.3s ease;
  resize: vertical;
  box-sizing: border-box;
}

.testimonial-textarea:focus {
  outline: none;
  border-color: #22c44d;
  box-shadow: 0 0 0 3px rgba(34, 196, 77, 0.1);
  transform: translateY(-2px);
}

.testimonial-textarea::placeholder {
  color: #6c757d;
  font-style: italic;
}

.form-actions {
  text-align: center;
}

.submit-testimonial-btn {
  background: linear-gradient(135deg, #22c44d 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(34, 196, 77, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.submit-testimonial-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.submit-testimonial-btn:hover::before {
  left: 100%;
}

.submit-testimonial-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(34, 196, 77, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.submit-testimonial-btn:active {
  transform: translateY(-1px);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  animation: rocketBounce 2s ease-in-out infinite;
}

@keyframes rocketBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Responsive form adjustments */
@media (max-width: 768px) {
  .testimonial-form-container {
    margin: 30px auto;
    padding: 0 15px;
  }
  
  .testimonial-form {
    padding: 25px;
  }
  
  .testimonial-textarea {
    padding: 16px;
    font-size: 0.95rem;
  }
  
  .submit-testimonial-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  /* Responsive tombol edit dan hapus */
  .edit-btn, .hapus-btn {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    min-width: 100px !important;
    height: 44px !important;
  }
}

@media (max-width: 480px) {
  .testimonial-form {
    padding: 20px;
  }
  
  .testimonial-textarea {
    padding: 14px;
    font-size: 0.9rem;
  }
  
  .submit-testimonial-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  /* Responsive tombol edit dan hapus untuk mobile kecil */
  .edit-btn, .hapus-btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    min-width: 90px !important;
    height: 40px !important;
  }
  
  /* Pastikan tombol tetap sejajar di mobile */
  .link-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .edit-btn, .hapus-btn {
    width: 100% !important;
    max-width: 200px !important;
  }
}
