/* Estilos específicos de la Vista del Estudiante / Hijo */

/* Banner de Gamificación y Motivación */
.gamification-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-stats-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.stat-bubble {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-bubble .number {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
}

.stat-bubble .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.level-progress-wrapper {
  flex: 1;
  min-width: 200px;
}

.level-bar-bg {
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.level-bar-fill {
  background: #fbbf24;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Rejilla de Tareas del Estudiante */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.task-subject-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.task-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-PENDING { background: var(--color-pending-bg); color: var(--color-pending); }
.status-SUBMITTED { background: var(--color-submitted-bg); color: var(--color-submitted); }
.status-APPROVED { background: var(--color-approved-bg); color: var(--color-approved); }
.status-CORRECTION { background: var(--color-correction-bg); color: var(--color-correction); }

.task-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.task-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: auto;
}

.task-points-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-action-student {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-action-student:hover {
  background: var(--color-primary-hover);
}

.feedback-banner {
  background: #f0fdf4;
  border-left: 4px solid var(--color-approved);
  padding: 0.6rem 0.8rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
