/* ===== Social Tasks - Modern Glassmorphism Redesign ===== */

/* Social Platforms Filter */
.social-platforms-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  animation: cardFloat 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-platforms-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.8),
    rgba(139, 92, 246, 0.8),
    rgba(236, 72, 153, 0.8),
    transparent
  );
  border-radius: 0 0 20px 20px;
  filter: blur(6px);
}

.platform-filter-btn {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.platform-filter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.platform-filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.platform-filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.6);
  color: white;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.platform-filter-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
  color: white;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.platform-filter-btn.active::before {
  background: rgba(255, 255, 255, 0.3);
}

/* Interaction Types Filter */
.interaction-types-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  animation: cardFloat 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.interaction-types-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.8),
    rgba(34, 197, 94, 0.8),
    rgba(132, 204, 22, 0.8),
    transparent
  );
  border-radius: 0 0 20px 20px;
  filter: blur(6px);
}

.interaction-filter-btn {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.interaction-filter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.interaction-filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.interaction-filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  border-color: rgba(16, 185, 129, 0.6);
  color: white;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.interaction-filter-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(34, 197, 94, 0.4));
  color: white;
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
  transform: translateY(-3px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.interaction-filter-btn.active::before {
  background: rgba(255, 255, 255, 0.3);
}

/* Social Task Card */
.social-task-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 6px solid rgba(59, 130, 246, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: cardFloat 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.social-task-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.social-task-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.social-task-card:hover::before {
  opacity: 1;
}

/* Social Task Header */
.social-task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.social-task-platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  font-size: 15px;
  padding: 10px 18px;
  background: rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.social-task-platform:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.social-task-points {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.8));
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.social-task-points::before {
  content: "★";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0;
  transition: all 0.4s ease;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.social-task-points:hover::before {
  left: 12px;
  opacity: 1;
}

.social-task-points:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

/* Social Task Content */
.social-task-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.4;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.social-task-card:hover .social-task-title {
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.social-task-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 500;
}

.social-task-url {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  word-break: break-all;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-task-url:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Social Task Actions */
.social-task-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-task-actions button {
  padding: 12px 28px;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-task-actions button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.social-task-actions button:hover::before {
  width: 300px;
  height: 300px;
}

.social-task-actions button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-task-actions .btn-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.social-task-actions .btn-primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(139, 92, 246, 0.6));
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.social-task-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-task-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Social Task Stats */
.social-task-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-task-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-task-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.social-task-stat i {
  color: #60a5fa;
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

/* No Social Tasks */
.no-social-tasks {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
  animation: cardFloat 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.no-social-tasks::before {
  content: "📋";
  display: block;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* Social Task Completed */
.social-task-completed {
  background: rgba(16, 185, 129, 0.15);
  border-left-color: rgba(16, 185, 129, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
}

.social-task-completed .social-task-points {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.social-task-completed .social-task-title {
  color: rgba(255, 255, 255, 0.9);
}

.social-task-completed .social-task-description {
  color: rgba(255, 255, 255, 0.8);
}

.social-task-completed::after {
  content: "✓";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card Float Animation */
@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .social-platforms-filter,
  .interaction-types-filter {
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .platform-filter-btn,
  .interaction-filter-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .social-task-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 20px;
  }

  .social-task-header {
    flex-direction: column;
    gap: 1rem;
  }

  .social-task-title {
    font-size: 1.2rem;
  }

  .social-task-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .social-task-actions {
    flex-direction: column;
  }

  .social-task-actions button {
    width: 100%;
  }

  .no-social-tasks {
    padding: 3rem 1.5rem;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .social-task-card {
    padding: 1.5rem;
  }

  .social-task-title {
    font-size: 1.1rem;
  }

  .social-task-platform {
    font-size: 14px;
    padding: 8px 14px;
  }

  .social-task-points {
    padding: 8px 16px;
    font-size: 13px;
  }

  .no-social-tasks {
    padding: 2.5rem 1rem;
    font-size: 1rem;
  }

  .no-social-tasks::before {
    font-size: 3rem;
  }
}