/**
 * Modern Updates Section
 * Card-based design with tags and avatars
 */

.updates-section {
  background: #f8f9fa;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.update-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #ff60c2;
}

.update-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff1493, #ff60c2);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 20, 147, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.update-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.update-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #ff60c2;
  box-shadow: 0 2px 8px rgba(255, 96, 194, 0.3);
}

.update-meta {
  flex: 1;
}

.update-meta h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.update-author {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.update-author strong {
  color: #ff60c2;
  font-weight: 600;
}

.update-date {
  color: #999;
  font-size: 12px;
}

.update-content {
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.update-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.update-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.update-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.update-tag.feature {
  background: #e3f2fd;
  color: #1976d2;
}

.update-tag.improvement {
  background: #f3e5f5;
  color: #7b1fa2;
}

.update-tag.event {
  background: #fff3e0;
  color: #f57c00;
}

.update-tag.update {
  background: #e8f5e9;
  color: #388e3c;
}

.update-tag.design {
  background: #fce4ec;
  color: #c2185b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .updates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .update-card {
    padding: 20px;
  }
  
  .update-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .update-avatar {
    width: 45px;
    height: 45px;
  }
  
  .update-meta h4 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .update-card {
    padding: 15px;
  }
  
  .update-header {
    gap: 12px;
  }
  
  .update-avatar {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }
  
  .update-meta h4 {
    font-size: 15px;
  }
  
  .update-content p {
    font-size: 13px;
  }
}
