/* CSS cho Related Posts Widget - Text Only Version */
.link-whisper-related-posts.lwrp {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.link-whisper-related-posts.lwrp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.lwrp-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lwrp-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.lwrp-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lwrp-list.lwrp-list-double-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.lwrp-list-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  max-width: none !important;
  width: 100% !important;
  min-height: 120px;
}

.lwrp-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lwrp-list-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.lwrp-list-item:hover::before {
  opacity: 1;
}

.lwrp-list-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  padding: 20px;
  display: flex;
  align-items: center;
}

.lwrp-list-link-title-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #334155;
  transition: color 0.3s ease;
  position: relative;
  padding-right: 30px;
  flex: 1;
}

.lwrp-list-item:hover .lwrp-list-link-title-text {
  color: #3b82f6;
}

.lwrp-list-link-title-text::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  transition: all 0.3s ease;
  color: #3b82f6;
  font-weight: bold;
  font-size: 20px;
}

.lwrp-list-item:hover .lwrp-list-link-title-text::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Gradient accent for variety */
.lwrp-list-item:nth-child(4n+1) {
  border-left: 4px solid #3b82f6;
}

.lwrp-list-item:nth-child(4n+2) {
  border-left: 4px solid #8b5cf6;
}

.lwrp-list-item:nth-child(4n+3) {
  border-left: 4px solid #06b6d4;
}

.lwrp-list-item:nth-child(4n+4) {
  border-left: 4px solid #10b981;
}

/* Number badges for visual hierarchy */
.lwrp-list-item::after {
  content: counter(item-counter);
  counter-increment: item-counter;
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.lwrp-list-container {
  counter-reset: item-counter;
}

.lwrp-list-item:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .link-whisper-related-posts.lwrp {
    padding: 20px;
    margin: 24px 0;
  }
  
  .lwrp-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .lwrp-list.lwrp-list-double-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .lwrp-list-item {
    min-height: 100px;
  }
  
  .lwrp-list-link {
    padding: 16px;
  }
  
  .lwrp-list-link-title-text {
    font-size: 15px;
    padding-right: 25px;
  }
}

@media (max-width: 480px) {
  .link-whisper-related-posts.lwrp {
    padding: 16px;
    border-radius: 16px;
  }
  
  .lwrp-title {
    font-size: 22px;
  }
  
  .lwrp-list-item {
    border-radius: 12px;
    min-height: 90px;
  }
  
  .lwrp-list-link {
    padding: 14px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .link-whisper-related-posts.lwrp {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .lwrp-title {
    color: #f1f5f9;
  }
  
  .lwrp-list-item {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .lwrp-list-link-title-text {
    color: #e2e8f0;
  }
  
  .lwrp-list-item:hover .lwrp-list-link-title-text {
    color: #60a5fa;
  }
}

/* Smooth loading animation */
.lwrp-list-item {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.lwrp-list-item:nth-child(1) { animation-delay: 0.1s; }
.lwrp-list-item:nth-child(2) { animation-delay: 0.2s; }
.lwrp-list-item:nth-child(3) { animation-delay: 0.3s; }
.lwrp-list-item:nth-child(4) { animation-delay: 0.4s; }
.lwrp-list-item:nth-child(5) { animation-delay: 0.5s; }
.lwrp-list-item:nth-child(6) { animation-delay: 0.6s; }
.lwrp-list-item:nth-child(7) { animation-delay: 0.7s; }
.lwrp-list-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}