/* tasks.css */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-size: cover;
  color: white;
  padding: 16px;
}

.fondotasks {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url("/css/fondotasks.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.tasks-section {
  max-width: 400px;
  margin: 0 auto;
}

.tasks-title {
  text-align: center;
  color: orange;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.tasks-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 20px;
}

.task-card {
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(30, 30, 30, 0.8));
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.2);
  position: relative;
}

.task-card1 {
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(30, 30, 30, 0.8));
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.2);
  position: relative;
}

.task-card1.animated-border {
  position: relative;
  z-index: 0;
  border-radius: 16px;
  overflow: hidden;
}

.task-card1.animated-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(0deg, red, transparent, red);
  background-size: 400% 400%;
  animation: animated-border 3s linear infinite;
  z-index: -1;
}

@keyframes animated-border {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}


.task-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.task-label {
  position: absolute;
  top: 0;
  right: 0;
  background: rgb(255, 47, 0);
  color: black;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 12px;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.458);
}

.task-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.task-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

.task-body p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: orange;
}

.claim-btn {
  margin-top: 17px;
  margin-left: auto;
  background: orange;
  color: black;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
  transition: transform 0.2s;
}

.claim-btn:hover {
  transform: scale(1.05);
}

.tasks-subheader {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: bold;
  color: white;
}

.task-count {
  float: right;
  font-size: 0.9rem;
  color: orange;
}

.points-tag {
  margin-left: auto;
  background: orange;
  color: black;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 8px;
}


.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.4s ease forwards;
}

.modal-frame {
  width: 90%;
  max-width: 420px;
  height: 90%;
  border: none;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  background: #111;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.nav-btn {
  text-decoration: none;
}
.nav-btn:visited,
.nav-btn:hover,
.nav-btn:active {
  text-decoration: none;
}